/** * Translates raw auto-continue engine error strings into human-readable * decision context suitable for operator display. * * Used at decision creation time to enrich the `summary` field and * generate structured options when the engine produces terse diagnostics. */ export interface HumanizedSliceFailure { /** One-line human headline, e.g. "Agent work stopped unexpectedly" */ headline: string; /** Multi-sentence explanation for operators */ explanation: string; /** Parsed structured data extracted from the raw string */ structuredDetails: { exitCode?: string; signal?: string; elapsedMs?: string; idleMs?: string; server?: string; reason?: string; }; /** Severity for UI theming */ severity: "critical" | "warning" | "info"; } /** * Translate a raw auto-continue error/context string into a human-friendly * decision description. Falls back gracefully for unrecognised patterns. */ export declare function humanizeSliceFailure(raw: string): HumanizedSliceFailure; /** * Generate a human-friendly summary string from a raw error, suitable for * the `summary` field when creating decisions. Combines the headline and * explanation into a concise paragraph. */ export declare function humanizeSliceFailureSummary(raw: string): string;