import { RefObject } from 'react';
import { SearchHandler } from '../../types';
type Result = {
    onEscape: () => void;
    onSearch: SearchHandler;
    search: string;
    searchId: string;
    searchRef: RefObject<HTMLInputElement>;
};
export declare function useSearch(isDisabled?: boolean): Result;
export {};
