import type monaco from 'monaco-editor'; export interface KQLEditorProps { className?: string; maxHeight?: number | string; fontSize?: number; size?: 'small' | 'middle' | 'large'; theme?: 'light' | 'dark'; value?: string; placeholder?: string; enableAutocomplete?: boolean; readOnly?: boolean; disabled?: boolean; variables?: string[]; onChange?: (value: string) => void; onEnter?: (value: string) => void; onBlur?: (value: string) => void; onFocus?: (value: string) => void; editorDidMount?: (editor: monaco.editor.IStandaloneCodeEditor) => void; /** Async provider for field names. `nestedPath` is set when completing inside path:{ }. */ fetchFieldNames?: (nestedPath?: string) => Promise; /** Async provider for field values. Receives the (dotted) field name. */ fetchFieldValues?: (fieldName: string) => Promise; }