import type { HierarchicalDatum, HierarchicalNodeElement } from '../interface/common'; import type { TreemapNodeElement } from '../treemap/interface'; export declare const calculateNodeValue: >(subTree: Datum[], output: NodeElement[], depth?: number, flattenIndex?: number, parent?: NodeElement, getNodeKey?: (datum: Datum) => string, valueField?: string) => { sum: number; maxDepth: number; flattenIndex: number; }; export declare const eachBefore: (subTree: NodeElement[], callback: (node: NodeElement, index?: number, parent?: NodeElement, ctx?: ContextType) => ContextType, parent?: NodeElement, ctx?: ContextType) => ContextType; export declare const eachAfter: (subTree: NodeElement[], callback: (node: NodeElement, index?: number, parent?: NodeElement, ctx?: ContextType) => ContextType, parent?: NodeElement, ctx?: ContextType) => ContextType; export declare const flattenNodes: (nodes: TreemapNodeElement[], output?: T[], options?: { maxDepth?: number; callback?: (node: TreemapNodeElement) => T; }) => T[];