import * as events from "./events"; export interface SQLConnectionPoolAbstraction { pool: TPool; getConnection: ( pool: TPool, eventEmitter: events.SQLEventEmitter | undefined, ) => Promise; } export declare type CloseConnection = () => Promise; export declare const useConnectionPoolAsync: ( { pool, getConnection }: SQLConnectionPoolAbstraction, eventEmitter: events.SQLEventEmitter | undefined, use: (connection: TConnection) => Promise, ) => Promise;