// generated by diplomat-tool import type { NucleationError } from "./NucleationError.mjs" import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; /** * A reusable set of property tracks, modelled after Anime.js object animations. */ export class AnimationEffect { /** @internal */ get ffiValue(): pointer; /** @internal */ constructor(); static create(durationMs: number): AnimationEffect; static instant(): AnimationEffect; static popIn(durationMs: number): AnimationEffect; static dropIn(durationMs: number, height: number): AnimationEffect; static dropAndPop(durationMs: number, height: number): AnimationEffect; static spinIn(durationMs: number, turns: number): AnimationEffect; static turntable(durationMs: number): AnimationEffect; /** * Add a two-key property tween. Property names follow Anime.js/Three.js: * `x`, `y`, `z`, `rotateX`, `rotateY`, `rotateZ`, `scale`, `opacity`, * `tintR/G/B/A`, and `emissiveR/G/B`. */ addTween(propertyName: string, start: number, end: number, easingName: string): void; /** * Add a normalised keyframe (`at` in `0..=1`) to a property track. */ addKeyframe(propertyName: string, at: number, value: number, easingName: string): void; setRepeatForever(): void; }