export interface ArchiveRecord { sourceId: string; kind: string; content: string; title?: string; sessionId?: string; memoryType?: string; facts?: string[]; concepts?: string[]; filesRead?: string[]; filesModified?: string[]; occurredAt?: string; } export interface FourGroupArchive { version: 1; format: 'vault-memory-groups'; observations: ArchiveRecord[]; sessions: ArchiveRecord[]; summaries: ArchiveRecord[]; prompts: ArchiveRecord[]; } export declare function normalizeArchiveRecord(value: unknown, fallbackId: string): ArchiveRecord | null; export declare function recordsFromExport(value: unknown): ArchiveRecord[]; export declare function groupArchive(records: ArchiveRecord[]): FourGroupArchive; export declare function flattenArchive(archive: FourGroupArchive): ArchiveRecord[];