import { type SQL } from "drizzle-orm"; export interface SqlExecutor { execute(query: SQL): Promise; } export declare function executeRows(db: SqlExecutor, query: SQL): Promise; /** * Emit a Postgres `ARRAY[$1, $2, ...]::text[]` literal instead of the * naive `${jsArray}::text[]` form. Drizzle's `sql` template spreads * JS arrays into a row constructor (`($1, $2)`) which Postgres * refuses to cast to `text[]`. Empty input returns `ARRAY[]::text[]`. */ export declare function sqlTextArray(values: readonly string[]): SQL;