/** * Library made to simplify accessing / connecting to postgres databases, * and to cleanly handle when the pg module isn't installed. * @author mia-pi-git */ import type * as PG from 'pg'; import type { SQLStatement } from 'sql-template-strings'; import * as Streams from './streams'; interface MigrationOptions { table: string; migrationsFolder: string; baseSchemaFile: string; } export declare class PostgresDatabase { private pool; constructor(config?: AnyObject); query(statement: string | SQLStatement, values?: any[]): Promise; static getConfig(): AnyObject; transaction(callback: (conn: PG.PoolClient) => any, depth?: number): Promise; stream(query: string): Streams.ObjectReadStream; ensureMigrated(opts: MigrationOptions): Promise; } export {};