export interface SQLChunk { sql: string; params: unknown[]; _type?: T; } /** * Safely offsets parameter indices (e.g., $1 -> $5) in a SQL string. * Ignores $N inside single quotes (') and double quotes ("). */ export declare function shiftParams(sql: string, paramsLength: number, offset: number): string; /** * Tagged template literal for safe parameterized SQL. * * Usage: * sql`SELECT * FROM users WHERE id = ${userId}` * // => { sql: 'SELECT * FROM users WHERE id = $1', params: [userId] } */ export declare function sql(strings: TemplateStringsArray, ...values: unknown[]): SQLChunk; export declare function isSQLChunk(value: unknown): value is SQLChunk; /** Combine multiple SQL chunks with a separator */ export declare function sqlJoin(chunks: SQLChunk[], separator?: string): SQLChunk; /** Raw SQL — no parameterization, use with caution (only for trusted strings) */ export declare function rawSql(query: string): SQLChunk; /** Format a JavaScript array into a Postgres array literal string: {"elem1","elem2"} */ export declare function toPgArray(val: unknown[]): string; /** Resolve a column reference to its qualified SQL name */ export declare function colName(c: string | { name: string; tableName?: string; } | SQLChunk): string; //# sourceMappingURL=sql.d.ts.map