export declare const MetricTag: { readonly ERROR_SOURCE: "error_source"; readonly DISCOVERY_METHOD: "discovery_method"; }; export interface MetricFields { domain: string; scope: string; event: string; result: 'OK' | 'ERROR'; outcome?: string; tags?: Record; } export interface Metric { toPayload(): MetricFields; } export declare class CounterMetric implements Metric { private readonly fields; constructor(fields: MetricFields); toPayload(): MetricFields; } /** A timer metric with duration in milliseconds. */ export declare class TimerMetric implements Metric { private readonly fields; private readonly durationMs; constructor(fields: MetricFields, durationMs: number); toPayload(): { duration: number; domain: string; scope: string; event: string; result: "OK" | "ERROR"; outcome?: string; tags?: Record; }; } export declare class GaugeMetric implements Metric { private readonly fields; private readonly measurement; constructor(fields: MetricFields, measurement: number); toPayload(): { measurement: number; domain: string; scope: string; event: string; result: "OK" | "ERROR"; outcome?: string; tags?: Record; }; }