import { EditorView, Panel } from "@codemirror/view";
import { StateField } from "@codemirror/state";
import { HighlightedSearch } from "../utils/search";
export interface CommandResult {
    id: string;
    type: 'create-file' | 'rename-file';
    icon: string;
    query: string;
    requiresInput?: boolean;
}
export type SearchResult = HighlightedSearch | CommandResult;
export interface NamingMode {
    active: boolean;
    type: 'create-file' | 'rename-file';
    originalQuery: string;
    languageExtension?: string;
}
export declare const setSearchResults: import("@codemirror/state").StateEffectType<SearchResult[]>;
export declare const searchResultsField: StateField<SearchResult[]>;
export declare const toolbarPanel: (view: EditorView) => Panel;
