import Event from './utils/Event'; /** * @summary * * Lifecycle hook: * start, pause, resume, stop, frame, rest * * Binding method: * const animation = new Animation (); animation.on ('start | frame | rest ', () => {}); */ export default class Animation extends Event { _config: Record; _props: Record; _from: Record; _to: Record; _delay: number; _currentVelocity: Record; _currentStyle: Record; _lastIdealStyle: Record; _lastIdealVelocity: Record; _frameCount: number; _prevTime: number; _timer: any; _startedTime: number; _ended: boolean; _stopped: boolean; _wasAnimating: boolean; _started: boolean; _paused: boolean; _accumulatedTime: Record; _pausedTime: number; _destroyed: boolean; constructor(props?: {}, config?: {}); _wrapConfig(object: { [x: string]: any; }, config: { delay?: string; }): {}; initStates(props?: Record, config?: Record): void; animate(): void; start(): void; end(): void; pause(): void; resume(): void; stop(): void; destroy(): void; resetPlayStates(): void; reset(): void; reverse(): void; getCurrentStates(): { [x: string]: any; }; getInitialStates(): {}; getFinalStates(): {}; }