/** * Classify a failed regression/test command's output as a *diagnosed * environment failure* — something the sandbox cannot provide (a missing system * library, no display, no root) rather than a genuine code regression. * * When `defaults.environmentFailureOnce` is on, the regression loop records such * a failure once ("could not run, and why") and continues, instead of re-running * and re-reporting it up to five times. Run 2 (vscode-project-manager #947) * retried the same `libnspr4.so` loader failure five times — this classifier * stops that. * * Deterministic and pure. House style: a `Record` lookup table of signature → * human reason (no `switch`). Signatures are anchored to specific loader/display/ * privilege phrases so ordinary log noise (a test that merely prints "cannot * open display" in passing) does not trip it — and the classifier is only ever * run on a command that actually FAILED (non-zero exit). */ export interface EnvironmentFailureResult { isEnvironmentFailure: boolean; /** The matched human reason, or null when not an environment failure. */ reason: string | null; } /** * Inspect `output` for a known environment-failure signature. Returns * `{ isEnvironmentFailure, reason }`; `reason` is the matched human string or * null. Empty/whitespace output never classifies as an environment failure. */ export declare function classifyEnvironmentFailure(output: string): EnvironmentFailureResult; //# sourceMappingURL=environment-failure.d.ts.map