import { Extension } from '@tiptap/core'; export interface FindReplaceStorage { query: string; results: { from: number; to: number; }[]; current: number; caseSensitive: boolean; regex: boolean; } interface FindOptions { caseSensitive?: boolean; regex?: boolean; wholeWord?: boolean; } declare module '@tiptap/core' { interface Commands { findReplace: { findText: (query: string, options?: FindOptions) => ReturnType; replaceText: (query: string, replacement: string, options?: FindOptions) => ReturnType; replaceAllText: (query: string, replacement: string, options?: FindOptions) => ReturnType; goToNextMatch: () => ReturnType; goToPreviousMatch: () => ReturnType; clearSearch: () => ReturnType; }; } } export declare const FindReplace: Extension; export {};