import { Pool, QueryResult } from 'pg';
/**
 * PostgreSQL Connection Pool
 * Manages database connections with pooling for performance
 */
declare const pool: Pool;
/**
 * Test database connection
 */
export declare function testConnection(): Promise<boolean>;
/**
 * Execute query with connection from pool
 */
export declare function query(text: string, params?: any[]): Promise<QueryResult>;
/**
 * Get a client from the pool for transactions
 */
export declare function getClient(): Promise<import("pg").PoolClient>;
/**
 * Close all connections in the pool
 */
export declare function closePool(): Promise<void>;
/**
 * Get pool statistics
 */
export declare function getPoolStats(): {
    totalCount: number;
    idleCount: number;
    waitingCount: number;
};
export { pool };
//# sourceMappingURL=database.d.ts.map