import * as react from 'react';

type UseSearchProps<T> = {
    list: T[];
    searchMapping: (item: T) => string[];
    initialSearch?: string;
};
declare const useSearch: <T>({ list, initialSearch, searchMapping, }: UseSearchProps<T>) => {
    result: T[];
    hasResult: boolean;
    allItems: T[];
    setItems: react.Dispatch<react.SetStateAction<T[]>>;
    search: string;
    setSearch: react.Dispatch<react.SetStateAction<string>>;
};

export { type UseSearchProps, useSearch };
