import type { ServerStats } from '../types.js'; /** * Returns a Prometheus collector config provider for server-stats metrics. * * The return type is a plain `{ resolver }` object instead of the concrete * `ConfigProvider` type. This avoids type incompatibilities when * the package is symlinked via `file:` dependency — TypeScript would otherwise * see two different copies of `@adonisjs/core` types and reject the assignment. * * At runtime the shape is identical to `configProvider.create(...)`. */ export declare function serverStatsCollector(): { type: 'provider'; resolver: (app: unknown) => Promise; }; export declare const ServerStatsCollector: { instance: { update(stats: Partial): void; } | null; }; /** * Drop the module-level collector singleton on shutdown. * * The `ServerStatsCollector.instance` reference outlives an individual app * lifecycle. Leaving it set means a restart (common in tests / HMR) re-runs * `register()` against a still-populated prom-client registry, which can throw * "Metric already registered". Nulling it lets the next boot register cleanly. */ export declare function resetServerStatsCollector(): void;