import "../../../../../options-B5K8QEV1.mjs"; import "../../../../../types-BCOU_CXE.mjs"; import "../../../../../types-XJPFqvc1.mjs"; import "../../../../../authz-cKSuylYa.mjs"; import "../../../../../index-HRJ8DhHY.mjs"; import "../../../../../runner-Bnq68jCZ.mjs"; import "../../../../../index-BFUET8yL.mjs"; import "../../../../../types-C2avdenh.mjs"; import "../../../../../hreflang-BktsQIF_.mjs"; import "../../../../../validate-3945fzPI.mjs"; import { EmDashHandlers, EmDashManifest } from "../../../../types.mjs"; import { t as TaxonomyImportPlan } from "../../../../../wxr-taxonomies-BX4yQL9s.mjs"; import { WxrPost } from "@premium-cms/emdash"; import { APIRoute } from "astro"; //#region src/astro/routes/api/import/wordpress/execute.d.ts declare const prerender = false; interface ImportConfig { /** Map WordPress post types to EmDash collections */ postTypeMappings: Record; /** Whether to skip items that already exist (by slug) */ skipExisting: boolean; /** Whether to import reusable blocks (wp_block) as sections */ importSections?: boolean; /** Author mappings (WP author login -> EmDash user ID) */ authorMappings?: Record; /** BCP 47 locale for all imported items. When omitted, defaults to defaultLocale. */ locale?: string; } interface ImportResult { success: boolean; imported: number; skipped: number; errors: Array<{ title: string; error: string; }>; byCollection: Record; /** Sections import results (if enabled) */ sections?: { created: number; skipped: number; }; /** Taxonomy import results (categories, tags, custom taxonomies). */ taxonomies?: { /** Terms newly created during this import, keyed by taxonomy name. */termsCreated: Record; /** Existing terms that were re-used, keyed by taxonomy name. */ termsReused: Record; /** Total pivot rows (post <-> term) written to `content_taxonomies`. */ assignments: number; /** * Custom taxonomy names from the WXR file that had no matching EmDash * definition and were therefore skipped. Lets the admin UI surface a * "create taxonomy X first" hint without re-running the import. */ missingTaxonomies: string[]; }; } declare const POST: APIRoute; declare function importContent(posts: WxrPost[], config: ImportConfig, emdash: EmDashHandlers, manifest: EmDashManifest, attachmentMap: Map, locale: string | undefined, authorDisplayNames: Map | undefined, taxonomyPlan: TaxonomyImportPlan): Promise; //#endregion export { ImportConfig, ImportResult, POST, importContent, prerender }; //# sourceMappingURL=execute.d.mts.map