import type { Client, QueryConfig, QueryResult, QueryResultRow } from 'pg'; export type Database = Pick & { query(queryConfig: QueryConfig): Promise, 'rows' | 'rowCount'>>; }; type StopFn = () => Promise; type PostgresConfig = { /** * The name of the database. */ name: string; /** * The location where the data should be persisted to. */ databaseDir: string; /** * Default is 'postgres'. */ user?: string; /** * Default is 'password'. */ password?: string; /** * Default is 54321. */ port?: number; /** * When set to fale, the database will be deleted when the DB is stopped. * Default is true. */ persistent?: boolean; }; /** * Creates and opens a DB backed by Postgres */ export declare function createEmbeddedPostgres(config: PostgresConfig): Promise<{ db: Database; stop: StopFn; }>; export {};