import { Metrics, type Counter, type Gauge } from "../incident/Metrics.js"; /** * The gateway's families. Label values are verdicts, states, codes, and the * action names and fingerprint digest the configuration itself produced, * never anything a caller sent, so the cardinality is the configuration's and * no value can leak through a label. A latency is a running sum and a count, which is what a * scraper needs to compute a rate and a mean between two scrapes. */ export interface GatewayMetrics { readonly registry: Metrics; readonly requests: Counter; readonly interceptions: Counter; readonly decisions: Counter; readonly allows: Counter; readonly blocks: Counter; readonly escalations: Counter; readonly shadowDecisions: Counter; readonly authorityErrors: Counter; readonly indeterminate: Counter; readonly ungoverned: Counter; readonly effects: Counter; readonly refusalObservations: Counter; /** Money releases by what the exposure ledger said, and how their reservations ended. */ readonly exposure: Counter; readonly held: Gauge; /** 1, labelled with the digest of what this gateway is; the label changes only with a rebuild. */ readonly fingerprint: Gauge; /** 1 while the last decision that named one came from a release checked against another action space. */ readonly actionSpaceDrift: Gauge; observeAuthorityLatency(ms: number): void; observeForwardLatency(ms: number): void; } export declare function gatewayMetrics(registry?: Metrics): GatewayMetrics; //# sourceMappingURL=GatewayMetrics.d.ts.map