import type { SearchState } from "../types.js"; export type UseSearchProps = { state: SearchState; onChange: (config: SearchState) => void; onSearchPrev: (config: SearchState) => void; onSearchNext: (config: SearchState) => void; onReplaceNext: (config: SearchState) => void; onReplaceAll: (config: SearchState) => void; }; export declare function useSearch({ state, onChange, onSearchPrev, onSearchNext, onReplaceNext, onReplaceAll, }: UseSearchProps): { isCompact: boolean; searchState: SearchState; handlers: { onExpand: () => void; onSearchChange: (value: string) => void; onReplaceChange: (value: string) => void; onWholeWordChange: (val: boolean) => void; onCaseSensitiveChange: (val: boolean) => void; onFindPrevious: () => void; onFindNext: () => void; onReplace: () => void; onReplaceAll: () => void; }; };