/**
 * Loop State Manager
 * CCW Loop System - JSON state persistence layer
 * Reference: .workflow/.scratchpad/loop-system-complete-design-20260121.md section 4.1
 */
import type { LoopState, TaskLoopControl } from '../types/loop.js';
export declare class LoopStateManager {
    private baseDir;
    constructor(workflowDir: string);
    /**
     * Create new loop state
     */
    createState(loopId: string, taskId: string, config: TaskLoopControl): Promise<LoopState>;
    /**
     * Read loop state
     */
    readState(loopId: string): Promise<LoopState>;
    /**
     * Update loop state
     */
    updateState(loopId: string, updates: Partial<LoopState>): Promise<LoopState>;
    /**
     * Delete loop state
     */
    deleteState(loopId: string): Promise<void>;
    /**
     * List all loop states
     */
    listStates(): Promise<LoopState[]>;
    /**
     * Read state with recovery from backup
     */
    readStateWithRecovery(loopId: string): Promise<LoopState>;
    /**
     * Get state file path
     */
    getStateFilePath(loopId: string): string;
    /**
     * Ensure directory exists
     */
    private ensureDir;
    /**
     * Write state file with automatic backup
     */
    private writeState;
}
//# sourceMappingURL=loop-state-manager.d.ts.map