/**
 * Mission Loop - Persistent Execution System
 *
 * Ensures the mission continues until all TODO items are complete.
 * This system moves away from explicit signaling (seals) and relies
 * strictly on file-based state verification.
 */
export interface MissionLoopState {
    /** Whether loop is active */
    active: boolean;
    /** Current iteration number */
    iteration: number;
    /** Maximum allowed iterations */
    maxIterations: number;
    /** Original task prompt */
    prompt: string;
    /** Session ID */
    sessionID: string;
    /** When loop started */
    startedAt: string;
    /** Last activity timestamp */
    lastActivity?: string;
}
export interface MissionLoopOptions {
    /** Maximum iterations before stopping (default: 1000) */
    maxIterations?: number;
    /** Countdown seconds before auto-continue (default: 3) */
    countdownSeconds?: number;
}
/**
 * Read loop state from disk
 */
export declare function readLoopState(directory: string): MissionLoopState | null;
/**
 * Write loop state to disk
 */
export declare function writeLoopState(directory: string, state: MissionLoopState): boolean;
/**
 * Clear loop state (delete file)
 */
export declare function clearLoopState(directory: string): boolean;
/**
 * Increment iteration counter
 */
export declare function incrementIteration(directory: string): MissionLoopState | null;
/**
 * Start a mission loop
 */
export declare function startMissionLoop(directory: string, sessionID: string, prompt: string, options?: MissionLoopOptions): boolean;
/**
 * Cancel an active mission loop
 */
export declare function cancelMissionLoop(directory: string, sessionID: string): boolean;
/**
 * Check if loop is active for session
 */
export declare function isLoopActive(directory: string, sessionID: string): boolean;
/**
 * Generate continuation prompt for mission loop
 */
export declare function generateMissionContinuationPrompt(state: MissionLoopState, verificationSummary?: string): string;
/**
 * Generate completion notification
 */
export declare function generateCompletionNotification(state: MissionLoopState): string;
/**
 * Generate max iterations reached notification
 */
export declare function generateMaxIterationsNotification(state: MissionLoopState): string;
