import { TFunction } from 'i18next'; import { useApp } from '../../../hooks/useApp'; import { DialogMode, HistoryState } from '../types'; /** The slice of the editor the search feature needs to read and mutate. */ export interface NotepadEditorHandle { content: string; setContent: (value: string) => void; setIsModified: (value: boolean) => void; pushHistory: () => void; editorStateRef: React.MutableRefObject; setTextareaSelection: (start: number, end: number) => void; textareaRef: React.RefObject; } interface UseNotepadFindReplaceArgs { editor: NotepadEditorHandle; api: ReturnType; t: TFunction; setDialogMode: (mode: DialogMode) => void; } export declare function useNotepadFindReplace({ editor, api, t, setDialogMode, }: UseNotepadFindReplaceArgs): { findQuery: string; setFindQuery: import('react').Dispatch>; replaceQuery: string; setReplaceQuery: import('react').Dispatch>; replaceWith: string; setReplaceWith: import('react').Dispatch>; findInputRef: import('react').RefObject; replaceFindInputRef: import('react').RefObject; findStartIndexRef: import('react').MutableRefObject; replaceStartIndexRef: import('react').MutableRefObject; handleFind: () => void; handleOpenReplace: () => void; handleFindNext: () => void; handleReplaceFindNext: () => void; handleReplace: () => void; handleReplaceAll: () => void; }; export {};