export declare const flatten: (tree: Node_1[], childrenKey: string) => Node_1[]; export declare const unFlatten: (list: T[], pIdKey: string, idKey: string, childrenKey: string, convert?: (node: T) => T) => T[]; export declare const dfsTree: (tree: T[], idKey: string, childrenKey: string, cb: (node: T, parent: T, parentResult: O, path: string[]) => O) => void;