import type { IConnectionDiagnosticError } from "./connectionDiagnostics.js"; type ConnectionTelemetryErrorCategory = "authentication" | "authorization" | "notFound" | "offline" | "timeout" | "cancelled" | "connectionClosed" | "dns" | "tls" | "network" | "throttled" | "httpClient" | "httpServer" | "protocol" | "unknown"; export interface IConnectionTelemetryError { readonly errorCategory?: ConnectionTelemetryErrorCategory; readonly errorCode?: number; readonly statusCode?: number; } export type ConnectionTelemetryErrorClassification = { errorCategory?: { classification: "SystemMetaData"; purpose: "PerformanceAndHealth"; comment: "Allowlisted failure category derived from structured codes, never error text."; }; errorCode?: { classification: "SystemMetaData"; purpose: "PerformanceAndHealth"; isMeasurement: true; comment: "Known JSON-RPC or AHP error code; arbitrary server codes are omitted."; }; statusCode?: { classification: "SystemMetaData"; purpose: "PerformanceAndHealth"; isMeasurement: true; comment: "Validated HTTP status from the failure or its bounded cause chain."; }; }; /** Reads structured metadata only; diagnostic messages, names, request IDs and details are never returned. */ export declare function getConnectionTelemetryError(error: IConnectionDiagnosticError | undefined): IConnectionTelemetryError; export {};