export interface RunBugState { bugId: string; phaseIndex: number; iterationCounts: Record; halted: boolean; /** Set on cancellation so the resume prompt says "cancelled" vs "halted". */ status?: "cancelled" | "halted" | "running"; lastError?: string; savedAt: string; } export declare function readBugState(cwd: string, bugId: string, sessionId?: string): RunBugState | null; export declare function writeBugState(cwd: string, state: RunBugState): void; export declare function deleteBugState(cwd: string, bugId: string): void; export declare function isBugStateStale(state: RunBugState): boolean;