import { ConnectOptions } from './base/connection'; import { PoolOptions } from './base/pool'; export interface LubeConfig { defaultConnection: string; defaultPool: string; connections: { [key: string]: ConnectOptions; }; pools: { [key: string]: PoolOptions & { connection: string; }; }; } export declare function loadConfig(): Promise; export declare function getDefaultConnectionOptions(): Promise; export declare function getConnectionOptions(key: string): Promise; export declare function getDefaultPoolOptions(): Promise; export declare function getPoolOptions(key: string): Promise; export declare function parseConnectionUrl(url: string): ConnectOptions; /** * 准备连接选项 */ export declare function parseConnectOption(optOrUrlOrCfg?: ConnectOptions | string): Promise;