/** * `doctor --read-only` and `doctor --offline` (issue #335): a health check a * caller can run without it changing anything or touching the network. * doc/agent-exec-protocol.md ยง10. * * Read-only is the default under `--json` (mono-agent's checks never change * anything) unless `--fix`/`--install` asks for writes. It is about files, not * the network: the version check still asks the npm registry, through a * throwaway npm cache. `--offline` skips every check that needs the network. */ import type { CommandOption, CommandResult } from '../types.js'; import type { HealthCheck } from './doctor-env-checks.js'; export interface DoctorMode { readOnly: boolean; offline: boolean; } export type SkipReason = 'read-only' | 'offline'; export declare const DOCTOR_MODE_OPTIONS: CommandOption[]; export declare function resolveDoctorMode(flags: Record): DoctorMode & { error?: string; }; /** `Mode: read-only, offline` for the human header, or '' for a plain run. */ export declare function modeLabel(mode: DoctorMode): string; /** A run refused before any check (e.g. `--read-only --fix`). */ export declare function doctorError(error: string): CommandResult; /** The result for a check this mode skips, or null when it runs. */ export declare function skippedCheck(component: string, mode: DoctorMode, single: boolean): HealthCheck | null; //# sourceMappingURL=doctor-mode.d.ts.map