interface TreeNode { [key: string]: any; } interface TreeOptions { idKey: string; parentKey: string; sortKey: string; childrenKey: string; } export declare function arrayToTree(data: Record[], options: TreeOptions, key?: any): TreeNode[]; export declare function searchTree(tree: TreeNode[], func: (item: TreeNode) => boolean, findArr?: TreeNode[]): any; export declare function treeToArr(tree: TreeNode[], idKey: string | number, childrenKey: string): T[]; export {};