import { SearchOptions, MatchValue } from '../types';
export declare const useSearch: (options?: SearchOptions, initialSearch?: string) => {
    search: string;
    setSearch: import('react').Dispatch<import('react').SetStateAction<string>>;
    loading: boolean;
    matches: MatchValue[];
    totalMatches: number;
    currentMatchPosition: number;
    currentMatch: MatchValue | null;
    nextMatch: () => void;
    prevMatch: () => void;
    currentMatchElement: HTMLElement | null;
    setCurrentMatchElement: import('react').Dispatch<import('react').SetStateAction<HTMLElement | null>>;
};
