/** * A bounded producer-owned explanation of an external connection failure. * This changes error reporting only: it never proves remote acceptance, * authorizes a retry, or turns a failed run into a success. */ declare const gitReasons: readonly ["authentication_failed", "repository_unavailable", "invalid_remote", "dns_failure", "connection_refused", "network_unreachable", "connection_reset", "connection_timeout", "tls_failure", "rate_limited", "remote_unavailable"]; declare const hermesConfigurationReasons: readonly ["endpoint_missing", "endpoint_invalid", "insecure_transport", "credentials_missing"]; declare const hermesRequestReasons: readonly ["authentication_failed", "endpoint_not_found", "rate_limited", "remote_unavailable", "connection_refused", "dns_failure", "network_unreachable", "connection_reset", "connection_timeout", "tls_failure"]; export type GitConnectionFailure = { schemaVersion: 1; provider: "git"; operation: "clone"; reason: typeof gitReasons[number]; }; export type ConnectionFailure = GitConnectionFailure | ({ schemaVersion: 1; provider: "hermes_gateway"; } & ({ operation: "configuration"; reason: typeof hermesConfigurationReasons[number]; } | { operation: "create_run"; reason: typeof hermesRequestReasons[number]; })) | { schemaVersion: 1; provider: "mcp_http"; operation: "discover_tools"; reason: typeof hermesRequestReasons[number]; }; /** Unknown versions, combinations and extra payload fields remain reportable. */ export declare function readConnectionFailure(value: unknown): ConnectionFailure | null; export {}; //# sourceMappingURL=connection-failure.d.ts.map