import { Plugin, type EditorState, type Transaction } from "prosemirror-state"; import { DecorationSet } from "prosemirror-view"; export interface Match { from: number; to: number; } interface SearchListener { onUpdate(): void; } export declare const setSearchTerm: (state: EditorState, term: string, selected?: number | false, listener?: SearchListener | false) => { tr: Transaction; matches: Match[]; selected: number | false; }; export declare const endSearch: (state: EditorState) => Transaction; export declare const selectNextSearchMatch: (state: EditorState) => Transaction; export declare const selectPreviousSearchMatch: (state: EditorState) => Transaction; export declare const deselectSearchMatch: (state: EditorState) => Transaction; export declare const getSearchMatches: (state: EditorState) => { matches: Match[]; selected: number | false; }; interface SearchPluginOptions { editor: any; } export declare const searchPlugin: (_options: SearchPluginOptions) => Plugin<{ term: string; decos: DecorationSet; matches: never[]; selected: number; listener: boolean; }>; export {}; //# sourceMappingURL=search.d.ts.map