import Animator from "./Animator"; import Keyframe from "./Keyframe"; export interface IAnimation { name: string; currentValues: T; deltaValues: T; update(time: number): IAnimation; clone(): IAnimation; } export default class Animation implements IAnimation { protected animators: Animator[]; protected time: number; name: string; currentValues: T; deltaValues: T; constructor(name: string, keyframes: Keyframe[]); set keyframes(keyframes: Keyframe[]); get keyframes(): Keyframe[]; protected _createCurrentValues(): void; private _saveCurrentValues; update(time: number): this; clone(): Animation; }