/** * Report model for `cadence doctor`. A check's `severity` is the source of * truth for roll-up; `status` mirrors it so the rendered/JSON shape carries both * (the SPEC's machine contract lists `status` and `severity` per check). */ export type DoctorSeverity = 'ok' | 'warning' | 'error'; export interface DoctorCheck { name: string; status: DoctorSeverity; severity: DoctorSeverity; detail: string; remediation: string | null; /** * Stable id of a deterministic repair `cadence doctor --fix` can apply for this * finding, or `null` when the finding has no safe auto-repair (the fix-planner * classifies by this id, never by parsing `detail`). Phase 131. */ fixId: string | null; } export interface DoctorReport { /** True iff no check is `error`-severity (warnings do not fail). */ ok: boolean; checks: DoctorCheck[]; } /** Environment injected into checks so they stay deterministic + testable. */ export interface DoctorEnv { nodeVersion: string; platform: NodeJS.Platform; } export declare function pass(name: string, detail: string): DoctorCheck; export declare function fail(name: string, severity: 'warning' | 'error', detail: string, remediation: string, fixId?: string | null): DoctorCheck; export declare function rollup(checks: DoctorCheck[]): DoctorReport; //# sourceMappingURL=model.d.ts.map