import { Track } from './animation/tracks/track'; import * as Data from './data'; import { ZComponent } from './zcomponent'; import { Clip } from './animation/clips/clip'; import { Animation } from './animation/animation'; import { LayerClip } from './animation/layerclip'; import { Layer } from './animation/layer'; import { ByID } from './data'; import { Bezier } from './animation/bezier'; import { Keyframe } from './animation/keyframe'; /** * Creates a track from the provided data. * * This function processes the given track data and creates an appropriate track instance based on the track type. * @param zcomp - The ZComponent instance. * @param anim - The Animation instance to which the track will belong. * @param data - The data object defining the track. * @returns A Track instance if successful, or undefined if the track cannot be created. */ export declare function createTrackFromData(zcomp: ZComponent, anim: Animation, data: Data.Track): Track | undefined; /** * Processes keyframe data to handle easing via bezier curves. * * This function iterates over the provided keyframes and applies bezier curve transformations to keyframes with defined easing properties. * @param keyframes - The object containing keyframe data. * @param beziers - The object containing bezier curve definitions. * @returns A transformed set of keyframes with bezier curves applied. */ export declare function processKeyframes(keyframes: ByID, beziers: ByID): { [id: string]: Keyframe; }; /** * Creates a Clip instance from provided data. * * This function constructs a new Clip instance using the given data, determining its length either from the data or by calculating it from track keyframes. * @param zcomp - The ZComponent instance. * @param anim - The Animation instance to which the clip will belong. * @param data - The data object defining the clip. * @returns A new Clip instance. */ export declare function createClipFromData(zcomp: ZComponent, anim: Animation, data: Data.Clip): Clip; /** * Updates a Clip instance with data from a Data.Clip object. * * This function modifies an existing Clip instance, updating its properties and tracks based on the provided data. * @param zcomp - The ZComponent instance. * @param clip - The Clip instance to update. * @param data - The data object defining the updates for the clip. */ export declare function updateClipFromData(zcomp: ZComponent, clip: Clip, data: Data.Clip): void; /** * Creates a LayerClip from provided data. * * This function constructs a new LayerClip instance using the given data, setting properties like playback speed, looping, and play-at-start. * @param zcomp - The ZComponent instance. * @param layer - The Layer instance to which the LayerClip will belong. * @param data - The data object defining the LayerClip. * @returns A new LayerClip instance if successful, or undefined if the clip cannot be created. */ export declare function createLayerClipFromData(zcomp: ZComponent, layer: Layer, data: Data.LayerClip): LayerClip | undefined; /** * Creates a Layer from provided data. * * This function constructs a new Layer instance using the given data, setting properties like active state and default fade parameters. * @param zcomp - The ZComponent instance. * @param anim - The Animation instance to which the layer will belong. * @param data - The data object defining the Layer. * @returns A new Layer instance if successful, or undefined if the layer cannot be created. */ export declare function createLayerFromData(zcomp: ZComponent, anim: Animation, data: Data.Layer): Layer | undefined; /** * Populates an Animation instance with tracks from provided data. * * This function iterates over the provided animation data, creating and adding tracks to the animation's clips. * @param zcomp - The ZComponent instance. * @param anim - The Animation instance to populate. * @param data - The data object containing information about the animation. */ export declare function populateAnimationTracksFromData(zcomp: ZComponent, anim: Animation, data: Data.Animation): void; /** * Constructs the structure of an Animation instance from provided data. * * This function builds the structure of an animation, including creating clips, layers, and setting up bezier curves. * @param zcomp - The ZComponent instance. * @param anim - The Animation instance to construct. * @param data - The data object containing information about the animation. */ export declare function populateAnimationStructureFromData(zcomp: ZComponent, anim: Animation, data: Data.Animation): void;