export interface CheckpointSummary { seq: number; label: string; ts: number; fileCount: number; messageCount: number; } export interface RewindResult { found: boolean; restored: string[]; skipped: string[]; /** * The conversation message count recorded when this checkpoint was opened * (i.e. the number of messages BEFORE the prompt that opened it). The TUI * passes this to agent.rewindConversation so /rewind also discards the * prompt's turn + everything after it from the LLM context (grok-style * conversation rewind), not only restoring files. Undefined when the * checkpoint predates message-count tracking. */ messageCount?: number; } export declare class FileCheckpointStore { private readonly dir; private checkpoints; private seq; constructor(opts: { runtimeDir: string; sessionKey: string; }); open(label: string, messageCount?: number): void; trackBeforeWrite(absPath: string): void; noteAfterWrite(absPath: string): void; hasCheckpoints(): boolean; list(): CheckpointSummary[]; rewindTo(seq: number): RewindResult; private isSafeToRestore; } export declare function checkpointTargetPaths(toolName: string, input: Record, workspaceDir: string, parsePatchPaths: (patch: string) => string[]): string[]; //# sourceMappingURL=file-checkpoint.d.ts.map