export declare const ARCHIVE_RETENTION_MS: number; export interface ArchiveResult { readonly archivedCompleted: number; readonly archivedInFlight: number; readonly gcDeleted: number; } /** Build the canonical archive dir for a given session + slice id. */ export declare function archiveDir(projectRoot: string, sessionId: string, sliceId: string): string; /** Build the in-flight subdir (records not yet disposed). */ export declare function inFlightArchiveDir(projectRoot: string, sessionId: string, sliceId: string): string; /** * Archive the current `.peaks/_sub_agents//` tree under * `` (per the sliceId), separating completed vs in-flight. * Then run the 30-day GC over the archive dir. */ export declare function archiveSubAgentRecords(projectRoot: string, options: { sessionId: string; sliceId: string; now?: () => Date; }): ArchiveResult;