UNPKG

@accounter/server

Version:
15 lines (14 loc) 431 B
declare const DEBUG_ENABLED: boolean | undefined; export declare const debugLog: (...args: unknown[]) => void; export type PoolLike = { totalCount: number; idleCount: number; waitingCount: number; }; export declare function isPoolHealthy(pool: PoolLike): { total: number; idle: number; waiting: number; }; export declare function emitMetrics(label: string, pool?: PoolLike): void; export { DEBUG_ENABLED };