/**
 * Task WAL (Write-Ahead Log)
 *
 * Handles append-only logging of task state transitions for crash recovery.
 */
import { WAL_ACTIONS } from "../../../shared/index.js";
import type { ParallelTask } from "../interfaces/parallel-task.interface.js";
export interface WALEntry {
    timestamp: string;
    action: keyof typeof WAL_ACTIONS;
    taskId: string;
    data: Partial<ParallelTask>;
}
export declare class TaskWAL {
    private walPath;
    private initialized;
    constructor(customPath?: string);
    init(): Promise<void>;
    log(action: WALEntry["action"], task: ParallelTask): Promise<void>;
    readAll(): Promise<Map<string, ParallelTask>>;
    /**
     * Compact the WAL by writing only the current active tasks
     */
    compact(activeTasks: ParallelTask[]): Promise<void>;
}
export declare const taskWAL: TaskWAL;
