import type { ECSCollector } from '../types'; /** * Remap GE mask references after ge2ir round-trip. * * ge2ir carries each masked component's raw `mask` object verbatim (via * `IRLayerNode.metadata.ge2ir.geMask`), but `mask.reference.id` still points at the * ORIGINAL (GE1) mask-source component id, which ir2ge has regenerated. This * pass rewrites every target's `reference.id` from the stale GE1 id to the * freshly-minted GE2 component id, using the `geComponentId → newId` map built * during the layer walk. * * Mirrors `applyParenting`: an IR-side reference (here the stale id stored in * data) → map → regenerated id → written in place. Mask SOURCE components have * no `reference` and are skipped. Dangling references (source not regenerated — * e.g. dropped by the null+sprite merger) have their `mask` removed so the GE * runtime doesn't choke on an id that resolves to nothing. */ export declare function applyGeMaskRemap(collector: ECSCollector, geComponentIdToNewId: Record): void;