import { type ColumnDef, type RowNode } from '../../core/types/index.js'; import { type CellRead } from '../../core/grid/index.js'; import type { Aggregation, GroupRowValues } from './grouping.types.js'; export declare function groupPathId(prefix: string, path: { columnId: string; key: string; }[]): string; export declare function footerNodeId(path: { columnId: string; key: string; }[]): string; export declare const GRAND_TOTAL_ID = "total:grand"; export declare function totalsKindOf(id: string): 'footer' | 'grandTotal' | null; export declare function aggregateRowValues(members: RowNode[], columns: ColumnDef[], aggregations: Record>, read?: CellRead): GroupRowValues; interface BuildFooterNodeOptions { read?: CellRead; columns: ColumnDef[]; aggregations: Record>; footerLabel: (key: string, count: number, columnId: string) => string; } export declare function buildFooterNode(path: { columnId: string; key: string; }[], members: RowNode[], level: number, options: BuildFooterNodeOptions): RowNode; interface BuildGrandTotalNodeOptions { read?: CellRead; columns: ColumnDef[]; aggregations: Record>; labelColumnId?: string; grandTotalLabel: (count: number) => string; } export declare function buildGrandTotalNode(leaves: RowNode[], options: BuildGrandTotalNodeOptions): RowNode; export {};