type ProbeFailureKind = 'timeout' | 'network_error' | 'auth_error' | 'bad_status' | 'bad_json' | 'not_routecodex' | 'not_guardian'; type ProbeSuccess = { ok: true; kind: 'ok'; status: number; body: T; bodySnippet?: string; }; type ProbeFailure = { ok: false; kind: ProbeFailureKind; status?: number; bodySnippet?: string; parseOk?: boolean; errorMessage?: string; }; type ProbeResult = ProbeSuccess | ProbeFailure; export type RouteCodexHealthBody = { server?: string; status?: string; ready?: boolean; pipelineReady?: boolean; }; export type RouteCodexHealthProbeResult = ProbeResult; export type GuardianHealthBody = { ok?: boolean; }; export type GuardianHealthProbeResult = ProbeResult; export declare function describeHealthProbeFailure(result: ProbeFailure): string; export declare function probeRouteCodexHealth(args: { fetchImpl: typeof fetch; host: string; port: number; timeoutMs?: number; }): Promise; export declare function probeGuardianHealth(args: { fetchImpl: typeof fetch; port: number; token: string; timeoutMs?: number; }): Promise; export {};