export interface Checkpoint { id: string; label: string; timestamp: number; commitRef: string; } /** * Manages lightweight checkpoints using git commits on a shadow branch. * Checkpoints allow undo/restore of working tree state. */ export declare class CheckpointManager { private stack; private enabled; constructor(); get isEnabled(): boolean; /** * Create a checkpoint of the current working tree state. */ createCheckpoint(label: string): string | undefined; /** * Restore the last checkpoint, undoing changes made since it was created. */ restoreLastCheckpoint(): { success: boolean; label?: string; }; /** * List all checkpoints in the stack. */ listCheckpoints(): readonly Checkpoint[]; /** * Remove checkpoints older than maxAge milliseconds. */ pruneOldCheckpoints(maxAgeMs: number): number; /** * Clear all checkpoints. */ clear(): void; private getCurrentHead; } //# sourceMappingURL=checkpoint.d.ts.map