import type { MeasureDefinition, MeasureOptions } from './types.js'; export declare function validatePercentileLevel(level: number): void; declare function createPercentileMeasure(field: string, level: number, opts?: MeasureOptions): MeasureDefinition; export declare const measure: { readonly sum: (field: string, opts?: MeasureOptions) => MeasureDefinition; readonly count: (field: string, opts?: MeasureOptions) => MeasureDefinition; readonly countDistinct: (field: string, opts?: MeasureOptions) => MeasureDefinition; readonly avg: (field: string, opts?: MeasureOptions) => MeasureDefinition; readonly min: (field: string, opts?: MeasureOptions) => MeasureDefinition; readonly max: (field: string, opts?: MeasureOptions) => MeasureDefinition; /** Approximate percentile of a numeric field (ClickHouse `quantile(level)`). */ readonly percentile: typeof createPercentileMeasure; /** Median — sugar for `percentile(field, 0.5)`. */ readonly median: (field: string, opts?: MeasureOptions) => MeasureDefinition; /** * Value of `field` on the row where `by` is greatest (ClickHouse `argMax`). * The runtime value follows `field`'s type; aggregate result columns are * exposed as strings to match the dataset result contract. * Measure filters are not supported on argMax/argMin. */ readonly argMax: (field: string, by: string, opts?: Omit) => MeasureDefinition; /** Value of `field` on the row where `by` is smallest (ClickHouse `argMin`). */ readonly argMin: (field: string, by: string, opts?: Omit) => MeasureDefinition; /** Sample standard deviation (ClickHouse `stddevSamp`). */ readonly stddev: (field: string, opts?: MeasureOptions) => MeasureDefinition; /** Sample variance (ClickHouse `varSamp`). */ readonly variance: (field: string, opts?: MeasureOptions) => MeasureDefinition; }; export {}; //# sourceMappingURL=measure.d.ts.map