import { TreeNodeOptions, TreeNodeBase, TreeNode } from './types.js'; /** * * 根据路径获取节点对象 * getByPath(treedata,"a/b") * * getByPath(treedata,"a/b",{pathKey:"name"}) * */ interface GetByIdOptions extends TreeNodeOptions { } declare function getById(treeObj: Node | Node[], nodeId: Node[IdKey], options?: GetByIdOptions): Node | null; export { type GetByIdOptions, getById };