import type { IRComposition } from '@vvfx/animation-ir'; import type { ECSCollector, ProcessedItem } from '../types'; import { type MaskLayerLookup } from './mask'; export type { MaskLayerLookup } from './mask'; /** * Post-emit state populated by the unified pipeline's per-layer walk. * All fields beyond `collector` + `processedItems` are optional — each * post-process step is gated on the presence of the data it needs, not * on `ir.source`. Steps that only apply to certain sources naturally * no-op when the relevant data is absent (e.g. dsl IR has no masks). */ export interface PostProcessState { collector: ECSCollector; processedItems: ProcessedItem[]; /** Per-layer lookups consumed by the shared mask post-process. */ maskLookup?: MaskLayerLookup; layerToItemId?: Record; parentIndexSet?: Set; ratio?: number; width?: number; height?: number; frameRate?: number; /** GE1→GE2 component-id map for remapping ge2ir mask passthrough references. */ geComponentIdToNewId?: Record; } /** * Run post-emit mutations on the collector before `assembleScene`. * Order: parenting → mask → visibility. Each step is gated on whether * the pipeline supplied the required tracking state. */ export declare function applyPostProcess(ir: IRComposition, state: PostProcessState): void;