import type { Store } from "./store.js"; export type DoctorSeverity = "ok" | "warn" | "fail"; export interface DoctorCheck { id: string; status: DoctorSeverity; message: string; detail?: string; /** * Which runtime the check actually looked at. Left unset on the local path, * where there is only one runtime; stamped on the hosted path, where a * scope-less check is precisely how a clean report about the wrong runtime * gets read as a clean report about the failing one. */ scope?: "machine" | "control-plane"; } export interface DoctorReport { ok: boolean; checks: DoctorCheck[]; } /** * Checks that describe THIS MACHINE's ability to execute a loop: data dir, * toolchain, machine topology, provider binaries, and the resolved connection * wiring. They are valid whether the client reads a local sqlite file or a * hosted control plane, because they answer "can work run here", not "what does * the scheduler hold". */ export declare function localRuntimeChecks(): DoctorCheck[]; export declare function runDoctor(store: Store): DoctorReport;