import Animation, { IAnimation } from "./Animation"; import Player from "./Player"; import KeyframeGenerator from "./KeyframesGenerator"; import { EasingFunction } from "./easings"; declare function defaultOnComplete(): void; export default class Motion { protected currentDuration: number; protected keyframeGenerator: KeyframeGenerator; protected player: Player; protected animation: IAnimation; protected animationAfterSegue: IAnimation; protected onComplete: typeof defaultOnComplete; constructor(render: (animation: IAnimation) => void, initialValue: T, duration?: number); inject(animation: IAnimation): this; segueTo(to: IAnimation, duration?: number, easing?: EasingFunction, onComplete?: typeof defaultOnComplete): this; segueToLoop(to: IAnimation, duration: number | undefined, easing: EasingFunction, onComplete?: typeof defaultOnComplete): this; private createTransition; stop(): this; play(): this; protected makeAnimationFromValues(values: any): Animation; } export {};