interface UseSearchProps<T = unknown> {
    data: T[];
    filter: (item: T, keyword: string) => boolean;
    sorter?: (a: T, b: T) => number;
}
export declare function useSearch<T>(props: UseSearchProps<T>): {
    onSearch: (keyword: string) => void;
    isNoResult: boolean;
    result: T[];
};
export {};
