import { Bt as ContentEntryCompletion, Ct as ContentSchema, sn as Sanitize, t as Actor, zt as ContentEntry } from "./authz-CFBezbW-.js";
import { Querier, TransactionalDatabase } from "@platform-modules/db";
//#region src/migrate.d.ts
type ContentArchiveEntry = Omit<ContentEntry, keyof ContentEntryCompletion> & Partial<ContentEntryCompletion>;
interface ContentArchive {
  version: 1;
  exportedAt: string;
  entries: ContentArchiveEntry[];
  settings?: Record<string, unknown>;
}
declare class ContentMigrateError extends Error {
  readonly detail: string;
  readonly name = "ContentMigrateError";
  constructor(detail: string);
}
declare function exportContent(db: Querier<ContentSchema>, opts: {
  actor: Actor;
  types?: string[];
  includeSettings?: boolean;
}): Promise<ContentArchive>;
declare function importContent(db: Querier<ContentSchema> | TransactionalDatabase<ContentSchema>, archive: ContentArchive, opts: {
  actor: Actor;
  mode: 'merge' | 'replace';
  sanitize: Sanitize;
}): Promise<{
  imported: number;
  skipped: number;
  conflicts: string[];
}>;
//#endregion
export { type Actor, ContentArchive, ContentArchiveEntry, ContentMigrateError, type Sanitize, exportContent, importContent };