//#region src/metrics.d.ts declare namespace Metrics { type DomainSources = { workers(): Promise; placements(): Promise; resolutions(): Record; /** Distinct hostname / env counts among live workers. */ worlds(): Promise<{ hostnames: number; envs: number; }>; }; type RequestTrack = { route: string; done(statusCode: number): void; }; type Instance = { forwardsTotal: { inc(labels: { kind: string; }): void; }; forwardFailuresTotal: { inc(labels: { outcome: string; }): void; }; takeoversTotal: { inc(labels: { strategy: string; outcome: string; }): void; }; degradedHeartbeatsTotal: { inc(labels: { reason: string; }): void; }; registerRejectionsTotal: { inc(labels: { account: string; pool: string; reason: string; }): void; }; dataPlaneConnections: { inc(): void; dec(): void; }; internalError(source: string): void; guarded(source: string, fn: () => unknown): () => void; trackHttpRequest(method: string): RequestTrack; setDomainSources(sources: DomainSources): void; close(): void; }; } declare const guardedWith: (onError: (source: string) => void) => Metrics.Instance["guarded"]; declare const noopMetrics: Metrics.Instance; declare const normalizeRegistryRoute: (pathname: string) => string; //#endregion export { Metrics, guardedWith, noopMetrics, normalizeRegistryRoute }; //# sourceMappingURL=metrics.d.ts.map