import { DataRow, DataNode } from '../../types/data-structures';
export interface DftTotalConfig {
    func: string;
    field: string;
}
/**
 * Parses a DftTotals string into an array of { func, field } objects.
 * Example: "SUM(XXXA)|COUNT(XXX1)" => [ { func: "SUM", field: "XXXA" }, { func: "COUNT", field: "XXX1" } ]
 */
export declare function parseDftTotals(dftTotals: string): DftTotalConfig[];
/**
 * Computes group totals (SUM, COUNT, AVG) for the specified fields and function types.
 *
 * @param {DataRow[] | DataNode[]} records - The data rows in the group.
 * @param {DftTotalConfig[]} totals - Array of total configs specifying function and field.
 * @returns {Record<string, number>} An object with field names as keys and computed totals as values.
 */
export declare function computeGroupTotals(records: DataRow[] | DataNode[], totals: DftTotalConfig[]): Record<string, number>;
//# sourceMappingURL=totals-utils.d.ts.map