import { IConnection } from "./IConnection"; import { IConnectionManager } from "./IConnectionManager"; import { IDriver } from "./IDriver"; import { IConnectionPoolOption } from "../Data/Interface/IConnectionOption"; import { PooledConnection } from "./PooledConnection"; import { QueuedTimeout } from "../Common/QueuedTimeout"; interface IResolver { resolve: (item: T) => void; reject: (reason: any) => void; } export declare class PooledConnectionManager implements IConnectionManager { readonly driver: IDriver; readonly poolOption?: IConnectionPoolOption; constructor(driver: IDriver, poolOption?: IConnectionPoolOption); readonly poolSize: number; protected _waitQueues: Array<(value: PooledConnection) => void>; connectionCount: number; readonly waitingQueue: QueuedTimeout>; readonly pools: QueuedTimeout; getConnection(writable?: boolean): Promise; getAllConnections(): Promise; release(connection: PooledConnection): Promise; reset(): void; } export {};