import { QueryDef, QueryDefAggregation } from '../types.js';
import { AggregateType } from './types.js';
export declare const aggregateToBuffer: (aggregates: QueryDefAggregation) => Uint8Array;
export declare const groupBy: (def: QueryDef, field: string) => void;
export declare const addAggregate: (type: AggregateType, def: QueryDef, fields: (string | string[])[]) => void;
export declare const isRootCountOnly: (def: QueryDef, filterSize: number) => boolean;
