/** * Leaper Agent – Checkpoint Manager * Save/restore agent state via shadow git repositories. */ import type { ToolDefinition } from './registry.js'; export interface CheckpointInfo { hash: string; message: string; timestamp: string; author: string; } export interface CheckpointResult { success: boolean; checkpoint_hash?: string; message?: string; error?: string; } export interface RestoreResult { success: boolean; restored_files?: number; error?: string; } export interface DiffResult { success: boolean; diff?: string; error?: string; } export declare function shadowRepoPath(dir: string): string; export declare class CheckpointManager { private dir; private repoPath; private initialized; constructor(dir?: string); private ensureInit; ensureCheckpoint(reason?: string, turnId?: string): Promise; listCheckpoints(): Promise; restore(hash: string, filePath?: string): Promise; diff(hash?: string): Promise; } export declare const defaultCheckpointManager: CheckpointManager; export declare const checkpointTool: ToolDefinition; //# sourceMappingURL=checkpoint.d.ts.map