import { AnyRecord, Nullish } from "../types"; import { BaseFlattedTreeNode, BaseTreeNode } from "./types"; /** * Flattened tree data structure based on pre-order traversal. */ export declare const flattenTree: >(tree: T[], transform: (node: BaseFlattedTreeNode, indexes: number[]) => any, options?: FlattenTreeOptions) => BaseFlattedTreeNode[]; /** * Check is Tree Root */ export declare const isTreeRoot: (node: Nullish | T) => node is Nullish; export interface FlattenTreeOptions { childrenFieldName?: (node: BaseTreeNode) => BaseTreeNode[]; } export interface FlattenTreeNodeRoot { depth: number; children: T[]; } //# sourceMappingURL=flatten.d.ts.map