import { QueryDef, QueryDefAggregation } from '../types.js'; import { StepInput, aggFnOptions } from './types.js'; import { QueryBranch } from '../BasedDbQuery.js'; import { AggregateType } from '@based/protocol/db-read'; export declare const aggregateToBuffer: (aggregates: QueryDefAggregation) => Uint8Array; export declare const groupBy: (q: QueryBranch, field: string, StepInput: StepInput) => void; export declare const addAggregate: (query: QueryBranch, type: AggregateType, propNames: string[], option?: aggFnOptions) => void; export declare const isRootCountOnly: (def: QueryDef, filterSize: number) => boolean;