import type { SQL, Column, DB } from './types.js'; import type { IntervalUnit } from './expressions.js'; import type { SQLWrapper } from '../query/sql/sql.js'; /** `now() - interval '5 minutes'`. Composes `now`, `subtract`, and `interval`. */ export declare function ago(amount: number, unit: IntervalUnit): SQL; /** Shorthand for `cast(expr, 'uuid')`. */ export declare function castUuid(expression: SQL | Column | SQLWrapper): SQL; /** Shorthand for `cast(expr, 'jsonb')`. */ export declare function castJsonb(expression: SQL | Column | SQLWrapper): SQL; /** Shorthand for `cast(expr, 'timestamptz')`. */ export declare function castTimestamp(expression: SQL | Column | SQLWrapper): SQL; /** Shorthand for `cast(expr, 'boolean')`. */ export declare function castBoolean(expression: SQL | Column | SQLWrapper): SQL; /** Shorthand for `cast(expr, 'numeric')`. */ export declare function castNumeric(expression: SQL | Column | SQLWrapper): SQL; /** Shorthand for `cast(expr, 'integer')`. */ export declare function castInteger(expression: SQL | Column | SQLWrapper): SQL; /** Shorthand for `cast(expr, 'text')`. */ export declare function castText(expression: SQL | Column | SQLWrapper): SQL; /** `COALESCE((SELECT MAX(column) FROM table WHERE condition), 0) + 1`. Composes scalar, coalesce, max, increment. */ export declare function nextSequence(db: DB, column: Column, where?: SQL): SQL; //# sourceMappingURL=composed.d.ts.map