import React from 'react'; import type { Option } from '../../internals/types'; export interface UseSelectProps { data: Option[]; childrenKey: string; labelKey: string; valueKey: string; onSelect?: (node: Option, cascadePaths: Option[], event: React.SyntheticEvent) => void; getChildren?: (node: Option) => Option[] | Promise[]>; } declare const useSelect: (props: UseSelectProps) => { columnData: (readonly Option[])[]; setColumnData: React.Dispatch[])[]>>; flattenData: Option[]; selectedPaths: Option[] | undefined; setSelectedPaths: React.Dispatch[] | undefined>>; handleSelect: (...args: any[]) => any; }; export default useSelect;