import { GridStatusBarAggregates } from '../models'; export type AggregateFunction = 'sum' | 'avg' | 'count' | 'min' | 'max'; /** Compute a single aggregate across a numeric field */ export declare function computeAggregate>(data: T[], field: string, fn: AggregateFunction): number | string; /** Compute all aggregates for a set of values (for status bar) */ export declare function computeStatusBarAggregates(values: unknown[]): GridStatusBarAggregates; /** Compute group-level aggregates for all aggregatable columns */ export declare function computeGroupAggregates>(items: T[], aggregateDefs: { field: string; fn: AggregateFunction; }[]): Record; /** Format aggregate value for display (respects locale) */ export declare function formatAggregateValue(value: number | string, fn: AggregateFunction): string;