/** * `harn doctor`: runtime + dependency check. * * Walks through every dependency harnery touches and reports presence, * version, and OS-specific install hints. Returns a checklist: * * ✓ ok: dep is present and recent enough * ⚠ warn: optional dep missing (feature degrades) * ✗ fail: required dep missing (commands will throw) * * Exits 0 unless a required dep is missing. */ import type { Command } from "commander"; import type { EmitContext } from "../commander.js"; import { type CodexHookAuthorizationResult } from "../core/hooks/codex-authorization.js"; import { type CodexWslBridgeStatus } from "../core/hooks/codex-wsl-bridge.js"; type Severity = "ok" | "warn" | "fail"; export interface Check { name: string; severity: Severity; detail: string; hint?: string; } export declare function registerDoctorCommand(program: Command, emit: EmitContext): void; export declare function runChecks(): Promise; export declare function codexWslBridgeCheck(status: CodexWslBridgeStatus | null, recentMidFlightCount?: number): Check | null; /** Count bounded, privacy-safe recovery diagnostics so a healthy environment * now does not hide an intermittent Codex-to-WSL identity drop. */ export declare function countRecentCodexMidFlightOnboardings(coordRoot: string, nowMs?: number, windowMs?: number): number; export declare function codexAuthorizationCheck(result: CodexHookAuthorizationResult): Check; export {}; //# sourceMappingURL=doctor.d.ts.map