/** * Doctor — system/environment health checks * Node, npm, git, disk, TypeScript, Claude CLI, version freshness */ import { type ClaudeCodeInfo } from '../orgrt/claude-sdk.js'; export declare const MAX_DOCTOR_PKG_BYTES: number; export declare const MAX_DOCTOR_CONFIG_BYTES: number; export declare const MAX_DOCTOR_GITIGNORE_BYTES: number; export declare const MAX_DOCTOR_PID_BYTES = 64; export declare const MAX_DOCTOR_HELPER_BYTES: number; export declare const MAX_DOCTOR_BUILD_LOG_SCAN_BYTES: number; export interface HealthCheck { name: string; claude_code?: ClaudeCodeInfo; status: 'pass' | 'warn' | 'fail' | 'info' | 'skipped'; message: string; /** Why a `skipped` check did not run (doctor-mode.ts). */ skippedReason?: 'read-only' | 'offline'; fix?: string; /** * How `fix` is applied, when it differs by result rather than by component * (see FIX_APPLY in doctor-json.ts); `doctor --json`'s `fix_safety`. */ fixSafety?: 'auto' | 'confirm' | 'manual'; } export declare function runCommand(command: string, timeoutMs?: number, env?: NodeJS.ProcessEnv): Promise; /** * Runs npm with a throwaway cache (doctor --read-only, issue #335): every npm * command writes into its cache dir — `npm view` cache entries, a debug log * even for `npm root -g`, an update-notifier stamp — which is ~/.npm otherwise. */ export declare function withThrowawayNpmCache(fn: (env: NodeJS.ProcessEnv) => Promise): Promise; export declare function checkNodeVersion(version?: string): Promise; export declare function checkNpmVersion(): Promise; export declare function checkGit(): Promise; export declare function checkGitRepo(): Promise; export declare function checkDiskSpace(): Promise; export declare function checkBuildTools(): Promise; export declare function checkVersionFreshness(opts?: { readOnly?: boolean; }): Promise; export declare function checkClaudeCode(): Promise; /** * i-055-cli: crash reporting had no in-product surfacing at all, and its * opt-out command (`monomind crash-reporting disable`) is undiscoverable * without this — `doctor` must state the current state and the exact * command to change it. Registered in doctor.ts's alwaysOnChecks and * componentMap (deferred until i-066 released that registry — see * i-055-doctor-followup). */ export declare function checkCrashReporting(): Promise; export declare function installClaudeCode(): Promise; export declare function checkClaudeRuntime(): Promise; //# sourceMappingURL=doctor-env-checks.d.ts.map