/** * Counter — a monotonically increasing cumulative metric. * * Counters are the simplest Prometheus primitive: a numeric value that only * goes up. Each distinct label-value combination gets its own independent * value so labeled increments never collide. */ import type { LabelValues, MetricDescriptor } from './types.js'; import { type LabelKey } from './types.js'; /** * Opaque handle to a counter metric. Consumers of the module import these * via `createMetricsRegistry()` and call `inc()` at instrumentation points. */ export interface Counter { readonly descriptor: MetricDescriptor; /** Increment by 1 (default) or by an explicit non-negative delta. */ inc(labels: LabelValues, delta?: number): void; /** Test-only: read current values keyed by serialized label string. */ snapshot(): ReadonlyMap; /** Render this counter as a Prometheus text-exposition block (without trailing newline). */ render(): string; } export declare function createCounter(descriptor: MetricDescriptor): Counter; //# sourceMappingURL=counter.d.ts.map