import { Editor } from '@tiptap/react';
import { SetSearchTermData, SetReplaceTermData } from '../types';
/**
 * Hook to handle search and replace actions in the HTML editor.
 *
 * @param editor - The TipTap editor instance.
 * @param setSearchTerm - State setter for search term.
 * @param setSearchResults - State setter for search results count.
 * @param setSearchResultIndex - State setter for current result index.
 * @returns Object with search and replace handler functions.
 */
export default function useHtmlEditorSearchAction(editor: Editor | null, setSearchTerm: (term: string) => void, setSearchResults: (count: number) => void, setSearchResultIndex: (index: number) => void): {
    handleSetSearchTerm: (data: SetSearchTermData) => void;
    handleSetReplaceTerm: (data: SetReplaceTermData) => void;
    handleNextSearchResult: () => void;
    handlePreviousSearchResult: () => void;
    handleReplace: () => void;
    handleReplaceAll: () => void;
    handleResetSearch: () => void;
};
