import type { SuggesterOptionType } from './SuggesterType'; import { SearchStore } from '../../utils/search/SuggestersDatabase'; type Props = { store: SearchStore; storeState: State; setStoreState: (s: State) => any; selectedOptions: SuggesterOptionType[]; allowArbitrary: boolean; }; export declare const OTHER_VALUE = "OTHER"; type State = 'success' | 'loading' | 'error'; export declare function useStore({ storeName }: { storeName: string; }): { store: { error: string; search?: undefined; index?: undefined; } | { error: null; search: import("../../utils/search/SearchInterface").SearchInterface; index: () => Promise; }; storeState: State; setStoreState: import("react").Dispatch>; getLabelById: (id: any) => string; }; export declare function useSuggestions({ store, storeState: state, setStoreState: setState, selectedOptions, allowArbitrary, }: Props): { search: string; setSearch: (s: string) => void; state: State; options: SuggesterOptionType[]; onBlur: () => void; onFocus: () => void; }; export {};