UNPKG

@dash0hq/codemirror-promql

Version:
6 lines (5 loc) 350 B
import { SyntaxNode } from '@lezer/common'; import { EditorState } from '@codemirror/state'; import { Matcher } from '../types'; export declare function buildLabelMatchers(labelMatchers: SyntaxNode[], state: EditorState): Matcher[]; export declare function labelMatchersToString(metricName: string, matchers?: Matcher[], labelName?: string): string;