import { type SQL, type AnyColumn } from "drizzle-orm"; /** * TiDB aggregate helpers that are not provided by `drizzle-orm` aggregate exports. * * Do NOT duplicate `count`, `countDistinct`, `sum`, `sumDistinct`, `avg`, `avgDistinct`, * `min`, and `max` because those already exist in `drizzle-orm/sql/functions/aggregate`. * * JSON aggregates are implemented in `JsonTiDB` (`jsonArrayAgg`, `jsonObjectAgg`). */ export type AggregateSqlInput = SQL | AnyColumn | string | number | boolean; /** `GROUP_CONCAT(expr)` or `GROUP_CONCAT(expr SEPARATOR sep)` */ export declare function groupConcat(expr: AggregateSqlInput, separator?: AggregateSqlInput): SQL; /** `GROUP_CONCAT(DISTINCT expr)` or `... SEPARATOR sep` */ export declare function groupConcatDistinct(expr: AggregateSqlInput, separator?: AggregateSqlInput): SQL; /** `VARIANCE(expr)` — alias of `VAR_POP` */ export declare function variance(expr: AggregateSqlInput): SQL; /** `VAR_POP(expr)` */ export declare function varPop(expr: AggregateSqlInput): SQL; /** `STD(expr)` — alias of `STDDEV_POP` */ export declare function std(expr: AggregateSqlInput): SQL; /** `STDDEV(expr)` — alias of `STDDEV_POP` */ export declare function stddev(expr: AggregateSqlInput): SQL; /** `STDDEV_POP(expr)` */ export declare function stddevPop(expr: AggregateSqlInput): SQL; /** `VAR_SAMP(expr)` */ export declare function varSamp(expr: AggregateSqlInput): SQL; /** `STDDEV_SAMP(expr)` */ export declare function stddevSamp(expr: AggregateSqlInput): SQL; /** `APPROX_PERCENTILE(expr, percentage)` where percentage is in [1,100]. */ export declare function approxPercentile(expr: AggregateSqlInput, percentage: number): SQL; /** `APPROX_COUNT_DISTINCT(expr [, expr ...])` */ export declare function approxCountDistinct(first: AggregateSqlInput, ...rest: AggregateSqlInput[]): SQL; //# sourceMappingURL=AggregateTiDB.d.ts.map