import { DataSourceState, SearchConfig } from '../../../../../../types'; import { ITree } from '../../ITree'; import { CreateTreeInstance } from '../../treeStructure/helpers/types'; /** * Search tree hook props. */ export interface UseSearchTreeProps extends SearchConfig, CreateTreeInstance { /** * Tree with data. */ tree: ITree; /** * State of the dataSource. */ dataSourceState: DataSourceState; /** * Are data loading. */ isLoading?: boolean; } /** * Search tree by criteria. * @returns tree with search-matching records. */ export declare function useSearchTree({ tree, newTreeInstance, dataSourceState: { search }, getSearchFields, sortSearchByRelevance, }: UseSearchTreeProps, deps?: any[]): ITree; //# sourceMappingURL=useSearchTree.d.ts.map