import { TreeDataNode } from 'antd'; /** * 在树结构中查找第一个符合条件的元素 * @param {TreeNode} node - 当前节点 * @param {(node: TreeNode) => boolean} predicate - 用于测试每个元素的函数,返回 true 表示符合条件 * @param {keyof TreeNode} [childrenKey='children'] - 子节点属性名,默认为 'children' * @returns {TreeNode | null} - 返回第一个符合条件的元素,若未找到则返回 null */ export declare function findInTree>(node: T, predicate: (node: T, path: string[]) => boolean, childrenKey?: keyof T, pathKey?: keyof T, currentPath?: string[]): T | null; export declare const getDataSourceTreeData: (dataSource: any, rowKey: string, path: string[]) => TreeDataNode[]; export declare const getDataSourceMap: (dataSource: any, rowKey?: string, path?: string[]) => {};