import type { ResultCacheTelemetry } from '../result-cache/types.js'; import type { DecisionTelemetrySpan, TelemetryAttributes } from './types.js'; export interface DecisionMetricPoint { name: string; value: number; dimensions: TelemetryAttributes; } /** Record operational metrics without using result IDs or answer-level batch usage. */ export declare function recordDecisionSpanMetrics(span: DecisionTelemetrySpan, metrics: BoundedDecisionMetrics): void; /** * Feed one D15 result-cache event into the D14 metric pipeline. Only the event name * becomes a dimension; the operation ID and reason never do. Savings are recorded for * hits only, labelled as estimates, and null usage or cost is skipped, never zeroed. */ export declare function recordResultCacheMetrics(event: ResultCacheTelemetry, metrics: BoundedDecisionMetrics): void; /** A `DecisionResultCache` telemetry sink that records metrics and then forwards the event. */ export declare function resultCacheMetricsSink(metrics: BoundedDecisionMetrics, next?: (event: ResultCacheTelemetry) => void): (event: ResultCacheTelemetry) => void; export declare class BoundedDecisionMetrics { private readonly capacity; private readonly maximumDimensionValues; private readonly points; private readonly approvedDimensions; constructor(capacity?: number, maximumDimensionValues?: number, trustedDimensionValues?: Readonly>); record(name: string, value: number, attributes: TelemetryAttributes): boolean; snapshot(): DecisionMetricPoint[]; } //# sourceMappingURL=metrics.d.ts.map