/** * Auto-checkpoint trigger types */ type TriggerType = 'task_count' | 'file_changes' | 'destructive_operation' | 'time_elapsed'; /** * Auto-checkpoint options */ interface AutoCheckpointOptions { taskThreshold?: number; fileChangeThreshold?: number; timeThreshold?: number; maxRetention?: number; } /** * Check if auto-checkpoint should be triggered */ declare function shouldTriggerCheckpoint(projectRoot: string, trigger: TriggerType, options?: AutoCheckpointOptions): Promise; /** * Increment task counter */ declare function incrementTaskCount(projectRoot: string): Promise; /** * Record file changes */ declare function recordFileChanges(projectRoot: string, linesChanged: number): Promise; /** * Run auto-checkpoint check */ declare function runAutoCheckpoint(projectRoot: string, trigger: TriggerType, options?: AutoCheckpointOptions): Promise<{ triggered: boolean; checkpointId?: string; }>; /** * Check for destructive operation patterns */ declare function isDestructiveOperation(command: string): boolean; /** * CLI entry point */ declare function main(): Promise; export { type AutoCheckpointOptions, type TriggerType, incrementTaskCount, isDestructiveOperation, main, recordFileChanges, runAutoCheckpoint, shouldTriggerCheckpoint };