/** * `helix unreal doctor` — the CLI face of the HELIX Unreal Project Doctor. * * One implementation, three surfaces (ADR-0001 applied to the Unreal lane): * the Creator Kit panel, this CLI, and MCP all call the same * `-run=HelixProjectDoctor` commandlet in the project's own engine install. * This module owns none of the diagnosis logic — it locates the editor, * drives the commandlet, and returns its machine-readable report verbatim. * * The commandlet's exit code is ordered by WHO MUST ACT and is part of its * contract: 0 pass · 1 fixable · 2 creator action · 3 unsupported. Callers * branch on `verdict`, never by parsing log text. */ export declare const DOCTOR_REPORT_SCHEMA = "helix.project-doctor-report/1"; export type UnrealDoctorVerdict = 'pass' | 'fixable' | 'creator-action' | 'unsupported'; export interface UnrealDoctorFinding { checkId: string; status: UnrealDoctorVerdict; message: string; fix?: string; } export interface UnrealDoctorReport { schema: typeof DOCTOR_REPORT_SCHEMA; projectDir: string; verdict: UnrealDoctorVerdict; findings: UnrealDoctorFinding[]; } export interface UnrealDoctorResult { report: UnrealDoctorReport; /** The verdict's who-must-act ordinal (0..3), derived from the REPORT. */ exitCode: number; uproject: string; /** Set when the editor process exit disagreed with the report — measured on * real projects: the engine pollutes its exit code with error-logged asset * loads, so the report file is the only channel the engine cannot touch. */ processExitMismatch?: number; } /** How the editor is invoked; injectable so tests never need a real engine. */ export interface UnrealEditorInvocation { command: string; prefixArgs: string[]; } export declare function locateEditorCmd(ueRoot?: string | undefined): UnrealEditorInvocation; export declare function findUProject(projectDir: string): string; export declare function runUnrealDoctor(options: { projectDir: string; fix?: boolean; editor?: UnrealEditorInvocation; timeoutMs?: number; }): UnrealDoctorResult;