import { type Pool as PgPool, type PoolClient as PgPoolClient } from 'pg'; import { type MaybePromise, type ClientConfiguration, type Connection, type DatabasePool, type DatabasePoolConnection, type Logger, type TaggedTemplateLiteralInvocation } from '../types'; declare type ConnectionHandlerType = (connectionLog: Logger, connection: PgPoolClient, boundConnection: DatabasePoolConnection, clientConfiguration: ClientConfiguration) => MaybePromise; declare type PoolHandlerType = (pool: DatabasePool) => Promise; export declare const createConnection: (parentLog: Logger, pool: PgPool, clientConfiguration: ClientConfiguration, connectionType: Connection, connectionHandler: ConnectionHandlerType, poolHandler: PoolHandlerType, query?: TaggedTemplateLiteralInvocation | null) => Promise; export {};