import { type WhichFn } from '../util/which.js'; export interface DoctorCheck { readonly name: string; readonly bin: string; readonly required: boolean; readonly found: string | null; readonly version: string | null; readonly note?: string; } interface DoctorDeps { readonly which?: WhichFn; /** Read a bin's version output (default argv `--version`; sbx passes `['version']`); injected so in-process tests never spawn. */ readonly readVersion?: (binPath: string, args?: readonly string[]) => Promise; /** Injectable so both the launchd and systemd probes are exercised from any one machine's tests. */ readonly platform?: NodeJS.Platform; } /** * Probe the environment cradle depends on: `pi` (always required), `nono` and * `sbx` (each required only for runs on its backend — see the notes), `mise` * (recommended toolchain manager), and the platform's scheduling backend * (`launchctl`/`systemctl`, recommended for `cradle schedule`; skipped * entirely on a platform with neither). */ export declare function runDoctor(deps?: DoctorDeps): Promise; export declare function formatDoctorReport(checks: readonly DoctorCheck[]): string; /** Exit non-zero when any required dependency is missing. */ export declare function doctorExitCode(checks: readonly DoctorCheck[]): number; export {};