import type { Option } from '../../internals/types'; import type { SelectNode } from '../types'; export interface UseSelectProps { value?: T | null; valueKey: string; childrenKey: string; selectedItem?: Option; childrenMap: any; onSelect?: (node: SelectNode, event: React.SyntheticEvent) => void; onChange?: (value: T, event: React.SyntheticEvent) => void; getChildren?: (node: Option) => readonly Option[] | Promise[]>; } /** * Hook for handling the state after the option is selected */ declare const useSelect: (props: UseSelectProps) => { loadingItemsSet: any; activeItem: Option | undefined; setActiveItem: import("react").Dispatch | undefined>>; handleSelect: (...args: any[]) => any; }; export default useSelect;