/** * Metrics registry - collects and formats Prometheus metrics. */ import { type CounterMetric, type GaugeMetric, type HistogramMetric } from './types.js'; /** * Metrics registry for collecting and exporting metrics. */ export declare class MetricsRegistry { private metrics; /** * Register a counter metric. */ registerCounter(name: string, help: string): CounterMetric; /** * Register a gauge metric. */ registerGauge(name: string, help: string): GaugeMetric; /** * Register a histogram metric. */ registerHistogram(name: string, help: string, buckets?: number[]): HistogramMetric; /** * Increment a counter. */ incCounter(metric: CounterMetric, labels?: Record, value?: number): void; /** * Set a gauge value. */ setGauge(metric: GaugeMetric, value: number, labels?: Record): void; /** * Increment a gauge. */ incGauge(metric: GaugeMetric, labels?: Record, value?: number): void; /** * Decrement a gauge. */ decGauge(metric: GaugeMetric, labels?: Record, value?: number): void; /** * Observe a value in a histogram. */ observeHistogram(metric: HistogramMetric, value: number, labels?: Record): void; /** * Start a timer for a histogram observation. */ startTimer(metric: HistogramMetric, labels?: Record): () => void; /** * Format all metrics as Prometheus text format. */ format(): string; } /** Global metrics registry instance. */ export declare const globalRegistry: MetricsRegistry; //# sourceMappingURL=registry.d.ts.map