type TreeNode = { value: T; children?: TreeNode[]; label?: string; path?: string; }; export type FlattenedNode = { value: T; parent?: T; depth: number; label?: string; path?: string; children?: TreeNode[]; }; export declare function flattenTree(tree: TreeNode[], parent?: TreeNode | null, depth?: number, path?: string): FlattenedNode[]; export {};