/** * Batch archive completed tasks. * @task T4461 * @epic T4454 */ import { type EngineResult } from '../engine-result.js'; import type { DataAccessor } from '../store/data-accessor.js'; /** Options for archiving tasks. */ export interface ArchiveTasksOptions { /** Only archive tasks completed before this date (ISO string). */ before?: string; /** Specific task IDs to archive. */ taskIds?: string[]; /** Archive cancelled tasks too. Default: true. */ includeCancelled?: boolean; /** Dry run mode. */ dryRun?: boolean; } /** Result of archiving tasks. */ export interface ArchiveTasksResult { archived: string[]; skipped: string[]; total: number; dryRun?: boolean; } /** * Archive completed (and optionally cancelled) tasks. * Moves them from active task data to archive. * @task T4461 */ export declare function archiveTasks(options?: ArchiveTasksOptions, cwd?: string, accessor?: DataAccessor): Promise; /** * Archive completed tasks, wrapped in EngineResult. * * @param projectRoot - Absolute path to the project root * @param taskId - Optional specific task ID to archive * @param before - Optional ISO date string; archives tasks completed before this date * @param opts - Additional options (taskIds, includeCancelled, dryRun) * @returns EngineResult with count and list of archived task IDs * * @task T1568 * @epic T1566 */ export declare function taskArchive(projectRoot: string, taskId?: string, before?: string, opts?: { taskIds?: string[]; includeCancelled?: boolean; dryRun?: boolean; }): Promise; }>>; //# sourceMappingURL=archive.d.ts.map