import type { RetentionConfig } from "./type.js";
export interface ArchiveResult {
    success: boolean;
    archiveFile?: string;
    archivedTraces: number;
    archivedSpans: number;
    duration: number;
    error?: string;
    checksum?: string;
}
/**
 * Archive old traces to separate database file
 * Implements the 7-stage archive process defined in Intent document
 */
export declare function archiveOldTraces(dbPath: string, config: RetentionConfig): Promise<ArchiveResult>;
/**
 * Check for incomplete archive from previous crash
 * Returns true if incomplete archive was found and reset
 */
export declare function checkIncompleteArchive(dbPath: string): Promise<boolean>;
