import { Range, type Dispatch } from '@tiptap/core'; import { PluginKey, type EditorState, type Transaction } from '@tiptap/pm/state'; import { Node as PMNode } from '@tiptap/pm/model'; import { ProcessedSearches } from './types.ts'; export declare const getRegex: (s: string, disableRegex: boolean, caseSensitive: boolean) => RegExp; export declare function processSearches(doc: PMNode, searchTerm: RegExp, searchResultClass: string, resultIndex: number): ProcessedSearches; export declare const replace: (replaceTerm: string, results: Range[], resultIndex: number, { state, dispatch }: { state: EditorState; dispatch: Dispatch; }) => void; export declare const rebaseNextResult: (replaceTerm: string, index: number, lastOffset: number, results: Range[]) => [number, Range[]] | null; export declare const replaceAll: (replaceTerm: string, results: Range[], { tr, dispatch }: { tr: Transaction; dispatch: Dispatch; }) => void; export declare const searchAndReplacePluginKey: PluginKey;