import type { MetricCollector } from './collector.js'; /** Minimal interface for a Knex connection pool. */ export interface KnexPool { numUsed?(): number; numFree?(): number; numPendingAcquires?(): number; max?: number; } /** Extract pool stats from a Knex pool object, defaulting to 0. */ export declare function extractPoolMetrics(pool: Partial): { dbPoolUsed: number; dbPoolFree: number; dbPoolPending: number; dbPoolMax: number; }; /** * Options for {@link dbPoolCollector}. */ export interface DbPoolCollectorOptions { /** * Lucid database connection name to monitor. * * Must match a key in your `config/database.ts` connections object. * * @default 'postgres' */ connectionName?: string; } /** * Monitors the Knex connection pool for a Lucid database connection. * * **Peer dependencies:** `@adonisjs/lucid` */ export declare function dbPoolCollector(opts?: DbPoolCollectorOptions): MetricCollector;