export interface Branch { id: string; label: string; depth: number; value: number; datum: Row | null; children: Branch[]; } /** Leaf-only paths avoid ambiguous parent totals and reject ancestor/leaf collisions. */ export declare function hierarchy(data: readonly Row[], path: string, value: string): Branch | string;