import { IDatabaseAdapter } from './IDatabaseAdapter'; /** * Connection pool statistics */ export interface IPoolStats { /** Total number of connections in pool */ totalConnections: number; /** Number of active (in-use) connections */ activeConnections: number; /** Number of idle (available) connections */ idleConnections: number; /** Number of requests waiting for a connection */ waitingRequests: number; } /** * Connection pool interface * Manages database connection lifecycle */ export interface IConnectionPool { /** * Acquire a connection from the pool * @returns Database adapter connection * @throws Error if pool is exhausted or timeout occurs */ acquire(): Promise; /** * Return a connection to the pool * @param connection - Connection to release */ release(connection: IDatabaseAdapter): Promise; /** * Close all connections in the pool */ closeAll(): Promise; /** * Get pool statistics * @returns Current pool statistics */ stats(): IPoolStats; } //# sourceMappingURL=IConnectionPool.d.ts.map