import { type MemberRecord } from "../../member/identity.js"; import { type ArchiveCatalogSource } from "../../member/archive.js"; import { type UpgradeImportContext, type LegacySourceEntry } from "./inventory.js"; import { type MemberSourceImport } from "./records.js"; import { type Database } from "../../data/database.js"; export interface FiredArchiveSource { archivePath: string; member: Pick & Partial>; persona?: { path: string; format: "plain" | "frontmatter"; hasContent: boolean; }; } export declare function catalogFromFiredExport(source: FiredArchiveSource): ArchiveCatalogSource; export interface LegacyArchiveManifestSource { archivePath: string; members: Array<{ name: string; sourceAgent?: string; credentialId?: string; conflicts?: string[]; rooms?: Array<{ room: string; hasPrinciples?: boolean; hasMainline?: boolean; }>; personaPath?: string; hasPersona?: boolean; }>; } export declare function catalogFromLegacyManifest(source: LegacyArchiveManifestSource): ArchiveCatalogSource[]; /** Archive manifests are imported once. Immutable export contents remain backups, * not another live source consulted by archive listing/import or member lookup. */ export declare function importLegacyArchives(ctx: UpgradeImportContext, entries: readonly LegacySourceEntry[]): Set; /** Current layouts and old copy-forward layouts remain separate document identities. * History is never fabricated from today's body; body assets stay outside SQLite. */ export declare function importLegacyDocuments(ctx: UpgradeImportContext, entries: readonly LegacySourceEntry[], personas: MemberSourceImport["personas"]): Promise>; /** Current SQL identity and document ownership must have a regular persona asset. * No content/hash comparison: legitimate current body edits remain authoritative. * Tombstones intentionally have no live directory. Pending archives are not active: * verify their recorded directory identity so activation can finish existing recovery. */ export declare function verifyActiveMemberAssets(root: string, db: Database): void; //# sourceMappingURL=assets.d.ts.map