import { Plugin, PluginKey, EditorState, Transaction } from 'prosemirror-state'; export declare const findReplaceKey: PluginKey; export interface FindMatch { from: number; to: number; } export interface FindState { query: string; caseSensitive: boolean; matches: FindMatch[]; activeIndex: number; } /** * Find & replace: match highlighting with an active match, controlled via * transaction meta. Replacement itself is a normal text transaction issued * by the host (see findReplaceCommands). */ export declare function findReplacePlugin(): Plugin; export declare function getFindState(state: EditorState): FindState; export declare function searchTr(state: EditorState, query: string, caseSensitive?: boolean): Transaction; export declare function findStepTr(state: EditorState, direction: 'next' | 'prev'): Transaction; export declare function clearFindTr(state: EditorState): Transaction; /** Replaces the active match. Returns the transaction, or null when idle. */ export declare function replaceActiveTr(state: EditorState, replacement: string): Transaction | null; /** Replaces every match in one transaction. Returns null when idle. */ export declare function replaceAllTr(state: EditorState, replacement: string): Transaction | null;