import type { Knex } from 'knex'; import type { Ctx } from '../types'; type WhereCtx = Ctx & { alias?: string; isGroupRoot?: boolean; }; /** * Process where parameter */ declare function processWhere(where: Record, ctx: WhereCtx): Record; declare function processWhere(where: Record[], ctx: WhereCtx): Record[]; type Where = { $and?: Where[]; $or?: Where[]; $not?: Where; [key: string]: any; } | Array; declare const applyWhere: (qb: Knex.QueryBuilder, where: Where) => Knex.QueryBuilder | undefined; /** * Prefix unaliased root column keys with `alias` (e.g. `published_at` → `t0.published_at`). * Used for update/delete subqueries that join other tables sharing column names. * Group operators are walked; already-qualified keys (`t1.title`) and operator keys are left as-is. */ declare function qualifyRootColumns(where: Record, alias: string): Record; declare function qualifyRootColumns(where: Record[], alias: string): Record[]; export { applyWhere, processWhere, qualifyRootColumns }; //# sourceMappingURL=where.d.ts.map