import type { IRComposition, IRLayerNode } from '@vvfx/animation-ir'; /** * How the generator should handle a layer's anchor offset. * * - `inline-anchor` — emit one VFX item with `renderer.anchor` baked into the * GE renderer and `anchorOffset` shifted into `transform.position`. Centered * layers also use this kind with `anchorScale = [0.5, 0.5]` and * `anchorOffset = [0, 0]`. * - `split-null-sprite` — emit a null+sprite hierarchy so the transform pivot * sits at the anchor; the sprite carries the visual content and is parented * to the null with an anchor-relative position. * * The split decision is read from `IRLayerNode.transformSplit` when set by the * producer; for lottie IR without that flag the accessor falls back to * runtime geometry checks (rotation/scale animation + off-center anchor). */ export type AnchorStrategy = { kind: 'inline-anchor'; anchorScale: [number, number]; anchorOffset: [number, number]; } | { kind: 'split-null-sprite'; }; export declare function getStaticAnchorBehavior(ir: IRComposition, layer: IRLayerNode): AnchorStrategy;