export interface LedgerEntry {
    runId: string;
    timestamp: number;
    state: any;
}
/**
 * Persistent Work Ledger
 *
 * Provides crash recovery by backing execution state into a local Git repository.
 * Every significant state change is written to a JSON file and committed,
 * allowing the system to robustly recover from unexpected failures and
 * preserving a complete history of the execution steps.
 */
export declare class PersistentWorkLedger {
    private ledgerDir;
    constructor(baseDir?: string);
    private initGit;
    private execGit;
    /**
     * Records the current state for a run and commits it to the ledger.
     */
    record(runId: string, state: any, message?: string): void;
    /**
     * Recover the latest saved state for a given run ID.
     */
    recover(runId: string): LedgerEntry | null;
    /**
     * List all available runs in the ledger.
     */
    listRuns(): string[];
    /**
     * Gets the git commit hash for the latest change to a specific run.
     */
    getLatestCommitHash(runId: string): string | null;
}
