import { Counter, type Labels } from './metrics-counter.js'; import { Histogram } from './metrics-histogram.js'; import { Gauge, type GaugeSeries } from './metrics-gauge.js'; import { RingBuffer } from './metrics-ringbuffer.js'; export declare class MetricsRegistry { private counters; private histograms; private gauges; private rings; private enabled; counter(name: string, help: string): Counter; histogram(name: string, help: string, buckets?: number[]): Histogram; gauge(name: string, help: string, collect: () => GaugeSeries[]): Gauge; ringBuffer(name: string, capacity: number): RingBuffer; setEnabled(v: boolean): void; isEnabled(): boolean; reset(): void; format(): string; toJSON(): { counters: Array<{ name: string; help: string; series: Array<{ labels: Labels; value: number; }>; }>; histograms: Array<{ name: string; help: string; series: Array<{ labels: Labels; count: number; sum: number; cumulativeCounts: number[]; }>; }>; gauges: Array<{ name: string; help: string; series: Array<{ labels: Labels; value: number; }>; }>; rings: Array<{ name: string; size: number; capacity: number; items: unknown[]; }>; }; } export declare const metrics: MetricsRegistry; //# sourceMappingURL=metrics.d.ts.map