import type { TaskStore } from "../types.js"; import type { ArchiveConfig } from "./config.js"; /** * Default auto-archive configuration. * Auto-archive is OFF by default (opt-in). */ export declare const DEFAULT_ARCHIVE_CONFIG: Required; /** * Result of an auto-archive operation. */ export interface AutoArchiveResult { /** Number of tasks archived */ archivedCount: number; /** IDs of archived tasks */ archivedIds: string[]; } /** * Perform auto-archiving on the task store. * * This function: * 1. Finds tasks eligible for auto-archiving (based on age and count criteria) * 2. Archives them to archive.jsonl * 3. Removes them from the active task store * 4. Logs the operation to archive.log * * @param store The task store (will be mutated to remove archived tasks) * @param storagePath Path to the storage directory * @param config Archive configuration * @returns Result with count and IDs of archived tasks */ export declare function performAutoArchive(store: TaskStore, storagePath: string, config?: ArchiveConfig): AutoArchiveResult; //# sourceMappingURL=auto-archive.d.ts.map