/** * Function that is used to populate the select menu. * * @param filter The current select input filter. * @return A promise of the items to be populated. */ export type AsyncSelectLoadFn = (filter: string) => Promise; export declare function useAsyncSelect(loadItems: AsyncSelectLoadFn, debounceMs?: number): { getSelectProps: () => { items: T[]; loading: boolean; onFilterChange: (filter: string) => void; }; };