import { type DeferredPromise } from 'p-defer'; import { type Pool as PgPool, type PoolClient as PgClientPool } from 'pg'; import { type TypeOverrides } from './types'; declare type PoolState = { ended: boolean; mock: boolean; poolId: string; typeOverrides: Promise | null; }; declare type PoolClientState = { activeQuery?: DeferredPromise; connectionId: string; mock: boolean; poolId: string; terminated: Error | null; transactionDepth: number | null; transactionId: string | null; }; export declare const poolStateMap: WeakMap; export declare const poolClientStateMap: WeakMap; export declare const getPoolState: (pool: PgPool) => PoolState; export declare const getPoolClientState: (poolClient: PgClientPool) => PoolClientState; export {};