import type { AnimationClip } from '@flighthq/animation/contract'; import type { ImportDiagnostic } from '@flighthq/importdiagnostics/contract'; import type { DisplayObject } from '@flighthq/scene2d/contract'; import type { RiveArtboardGraph, RiveAnimationClip, RiveSkeleton2DImport, RiveCoreObject, RiveImportRegistry } from './contract.scene2d-formats-types.ts'; /** * Samples a Rive clip, applying both the shared display-object channels and the format-owned ones * that drive geometry and paint. Playback stays explicit, as it does for Lottie. */ export declare function applyAnimationClipToRiveDocument(clip: Readonly, time: number): void; export declare function createRiveAnimationClips(objects: readonly Readonly[], range: Readonly<{ end: number; start: number; }>, nodes: ReadonlyArray, artboard: Readonly, rebuilds: ReadonlyMap void>, skeleton?: Readonly | null, diagnostics?: ImportDiagnostic[]): RiveAnimationClip[]; /** * Builds one `AnimationClip` per Rive linear animation. * * Animations are not components: they follow their artboard in the stream but sit outside the * artboard's numbering, so they are read from the raw object list while their `objectId` references * point back into that numbering. Time comes from the animation's own frame rate rather than the * document's, since each animation states its own. */ /** * Registers the artboard's animation clips. * * ★ A FAMILY SINCE THE AUDIT, AND THE LARGEST THING THAT WAS NOT ONE. The clip reader used to be called unconditionally * by the artboard import, so every Rive build carried the whole keyframe, interpolation and binding reader whatever it * registered — measured at 24,926 unminified bytes, 30% of an import that registered no family at all. A clip is not a * component: it shares the artboard's stream span but sits outside its numbering, which is why this is a pass over that * span rather than a component handler, the same shape the state machine family already had. * * ★ REGISTERED LAST IN THE BUILT-IN PRESET, AND THAT ORDER IS LOAD-BEARING. A Rive keyframe states an absolute value and * the binder composes a delta from the skeleton's setup pose, so the skeleton has to exist first; the clip reader also * reads `context.rebuilds`, which the shape pass fills. Running last preserves exactly the position the unconditional * call had — after every other artboard pass. */ export declare function registerRiveAnimationHandlers(registry: RiveImportRegistry): void; //# sourceMappingURL=riveAnimation.d.ts.map