export interface PostgresScriptRows extends Array> { count?: number; } export interface PostgresScriptQueryOptions { /** * Have the server refuse text with more than one statement. Set it for * agent-written SQL, so the database enforces what the guards checked. */ singleStatement?: boolean; } export interface PostgresScriptClient { unsafe(sql: string, args?: unknown[], options?: PostgresScriptQueryOptions): Promise; begin(fn: (tx: PostgresScriptClient) => Promise): Promise; end(): Promise; } export declare function setRawDbStatementTimeout(client: Pick): Promise; export declare function withPostgresStatementDeadline(client: Pick, timeoutMs?: number): Pick; export declare function createPostgresScriptClient(url: string): Promise;