import { Option } from '../../internals/types'; interface SearchPanelProps { labelKey: string; childrenKey: string; parentMap: WeakMap, Option>; flattenedData: Option[]; parentSelectable?: boolean; onSearch: (value: string, items: Option[], event: React.SyntheticEvent) => void; } declare function useSearch(props: SearchPanelProps): { searchKeyword: string; setSearchKeyword: import("react").Dispatch>; items: Option[]; handleSearch: (...args: any[]) => any; }; export default useSearch;