import { PoolConfig } from 'pg';
import type { DatabaseDriver, DriverConnection } from '../driver';
export interface PgPoolLike {
    connect(): Promise<PgClientLike>;
    end(): Promise<void>;
}
export interface PgClientLike {
    query<T = Record<string, unknown>>(text: string, values?: unknown[]): Promise<{
        rows: T[];
        rowCount: number | null;
    }>;
    release(): void;
}
export declare class PostgresDriver implements DatabaseDriver {
    readonly dialect: 'postgres';
    private pool;
    constructor(configOrPool: PoolConfig | PgPoolLike);
    connect(): Promise<void>;
    close(): Promise<void>;
    acquire(): Promise<DriverConnection>;
}
//# sourceMappingURL=postgres.d.ts.map