export type AttemptPhase = "preparing-workspace" | "running-step" | "succeeded" | "failed" | "canceled"; export type FailureCategory = "workspace_error" | "prompt_render_error" | "agent_startup_error" | "step_failed" | "step_timeout" | "agent_crashed" | "canceled"; export interface AttemptState { phase: AttemptPhase; step?: string; failure?: FailureCategory; failedStep?: string; error?: string; } export declare const ATTEMPT_TRANSITIONS: Readonly>; type TransitionContext = Partial>; export declare function transitionPhase(current: AttemptState | null, next: AttemptPhase, ctx: TransitionContext): AttemptState; export {};