/** * Ask the relayer's public `/health` why a call went unanswered: down, * unreachable from this machine, configured wrong, or up with one call stuck. * Each wants a different next step, so the bridge probes before it answers. */ export type HealthProbe = { kind: "ok"; ms: number; version?: string; writesUnavailable?: boolean; } | { kind: "http"; ms: number; status: number; } | { kind: "unreachable"; ms: number; code: string; } | { kind: "timeout"; ms: number; }; /** Override via `MEMWAL_MCP_HEALTH_PROBE_MS`, mostly for tests. */ export declare function resolveHealthProbeMs(): number; /** `GET {baseUrl}/health`, bounded by `timeoutMs`. Never rejects: a probe * that fails is itself the answer. */ export declare function probeRelayerHealth(baseUrl: string, timeoutMs: number): Promise; /** `health` is the value for a `Relayer health:` line; `verdict` says what * it means for the call; `reachable` is whether a plain retry can help. */ export declare function describeHealthProbe(probe: HealthProbe, relayerUrl: string): { health: string; verdict: string; reachable: boolean; }; //# sourceMappingURL=health-probe.d.ts.map