import type { Transaction } from '@codemirror/state'; import type { EditorView, Command, ViewUpdate } from '@codemirror/view'; import { ViewPlugin } from '@codemirror/view'; import type { CompletionResult } from './completion.js'; import { CompletionContext } from './completion.js'; import { ActiveSource } from './state.js'; export declare function moveCompletionSelection(forward: boolean, by?: 'option' | 'page'): Command; export declare const acceptCompletion: Command; export declare const startCompletion: Command; export declare const closeCompletion: Command; declare class RunningQuery { readonly active: ActiveSource; readonly context: CompletionContext; time: number; updates: Transaction[]; done: undefined | CompletionResult | null; constructor(active: ActiveSource, context: CompletionContext); } declare const enum CompositionState { None = 0, Started = 1, Changed = 2, ChangedAndMoved = 3 } export declare const completionPlugin: ViewPlugin<{ debounceUpdate: NodeJS.Timeout | -1; running: RunningQuery[]; debounceAccept: NodeJS.Timeout | -1; composing: CompositionState; readonly view: EditorView; update(update: ViewUpdate): void; startUpdate(): void; startQuery(active: ActiveSource): void; scheduleAccept(): void; accept(): void; }, undefined>; export {}; //# sourceMappingURL=view.d.ts.map