import { Kysely } from "kysely"; //#region src/import/wxr-taxonomies.d.ts /** * Result of pre-importing taxonomy terms from a WXR file. */ interface TaxonomyImportPlan { /** terms created during this run (per taxonomy name) */ termsCreated: Record; /** terms that already existed and were reused (per taxonomy name) */ termsReused: Record; /** custom taxonomies (`wp:term`) skipped because no matching EmDash def exists */ missingTaxonomies: string[]; /** * Lookup table: `taxonomy name` -> `term slug` -> term id. * Used by `attachPostTaxonomies` to translate WXR assignments into pivot rows. */ termIdByNameAndSlug: Map>; /** * Lookup table: `taxonomy name` -> set of collection slugs the def allows. * Empty (or missing) means "any collection" — we only enforce the filter * when the def explicitly lists collections. */ collectionsByTaxonomy: Map>; /** * Lookup table: `term id` -> the term's `translation_group` (or `null` * if the term doesn't exist any more). Populated lazily by helpers that * need to check pivot existence without repeating per-term DB reads. */ translationGroupByTermId: Map; } //#endregion export { TaxonomyImportPlan as t }; //# sourceMappingURL=wxr-taxonomies-BX4yQL9s.d.mts.map