import * as Knex from "knex"; export declare type AggregateSql = (dialect: string, ...measureNames: string[]) => string; export declare class Aggregate { sql: AggregateSql; constructor(sql: AggregateSql); toSql(db: Knex | undefined, ...measureNames: string[]): string; } export declare const countAggregate: Aggregate; export declare const countDistinctAggregate: Aggregate; export declare const minAggregate: Aggregate; export declare const maxAggregate: Aggregate; export declare const sumAggregate: Aggregate; export declare const averageAggregate: Aggregate; export declare const averageDistinctAggregate: Aggregate;