import type { LottieShapeItemContext } from './contract.scene2d-formats-types.ts'; /** * The trim-path item: the arc of each path in the group that stays visible. * * ★ THE TRIM IS A POST-WALK MODIFIER, WHICH IS WHY IT IS A CLOSURE. It reshapes every path in its group, including the * ones declared after it, so it cannot do its work while its own item is being read — and that is why the trimming used * to live in the shape layer, putting `dashPath`, `createPath` and `getPathLength` into every build that read a shape * layer whether or not the caller registered this item. The handler now pushes a modifier and the layer only runs it. * * ★ ONE TRIM PER GROUP, CLAIMED RATHER THAN COUNTED. Lottie applies a group's trim once; a second trim item is ignored, * not composed, which is what the reading in the shape layer did when it took `items.find`. The claim keeps that rule * here: the first trim takes `LOTTIE_TRIM_CLAIM` out of the group's claim set and a later one finds it taken and does * nothing. The layer still runs every modifier it is given and knows nothing about trims. * * ANIMATED TRIM IS UNCARRIED. Flight trims once, at import, so a keyframed start, end or offset is reported as a skip * and the paths are left whole — a partially-applied trim that never moves would be worse than an untrimmed path. * * Lottie's units: start and end are PERCENT along the path, offset is DEGREES of rotation around it. */ export declare function lottieTrimPathShapeItemHandler(context: LottieShapeItemContext): void; //# sourceMappingURL=lottieTrimPathShapeItem.d.ts.map