import { TreeNodeBase, TreeNode } from './types.js'; type PathGenerator = (node: Node) => any; /** * 根据输入的path参数生成一个path生成器 * * path参数可以是一个函数,也可以是一个字符串代表节点的属性名 * * * @param node * @param pathParam * @param idKey * @returns */ declare function buildPathGenerator(pathParam: string | ((node: Node) => any) | undefined, idKey: string): PathGenerator; /** * 将[1,2,3],[{id,...},{id,...}]转换为'1/2/3' * 如果path中的元素是对象,则取对象的idKey属性作为路径元素 * * @param path * @param idKey * @returns */ declare function getFullPath(paths: Path[], idKey?: string, delimiter?: string): string; export { type PathGenerator, buildPathGenerator, getFullPath };