import type { Path } from '@flighthq/path/contract'; import type { LottieShapePath } from './contract.scene2d-formats-types.ts'; /** * Lottie's bezier-path value: how to read one, how to build a Path from one, and how to flatten it for animation. * * ★ TWO OWNERS, WHICH IS WHY THIS IS NOT IN THE PATH ITEM'S MODULE. The `sh` shape item reads these, and so does the * core's MASK reader — a Lottie mask is a bezier path, and masks are read for every layer. So this code is live in * any Lottie build, and the honest consequence is that omitting the path shape item saves its builder and its * channel wiring but not this. Making masks selectable is the next boundary if that cost matters; it would change * what `createScene2DFromLottieDocument` reads by default, so it is not taken here. */ export declare function createLottieBezierPath(value: Readonly): Path; export declare function flattenLottieShapePath(path: Readonly): number[]; /** * A shape path as the file states it, whichever way it states it. * * A static path is the object itself; an **animated** one wraps that object in a single-element * array inside each keyframe. Across a corpus of eighteen real exports the wrapper is the majority * form — 896 keyframed paths against 627 bare — so reading only the bare form crashes on most files. */ export declare function toLottieShapePath(value: unknown): Readonly | undefined; export declare function unflattenLottieShapePath(template: Readonly, values: readonly number[]): LottieShapePath; //# sourceMappingURL=lottieBezierPath.d.ts.map