import { EasingFunction, UnknownProps, InterpolationFunction } from './types'; import { Group } from './group'; export declare const mainGroup: Group; export declare class Tween { static autoStartOnUpdate: boolean; private _isPaused; private _pauseStart; private _valuesStart; private _valuesEnd; private _valuesStartRepeat; private _duration; private _isDynamic; private _initialRepeat; private _repeat; private _repeatDelayTime?; private _yoyo; private _isPlaying; private _reversed; private _delayTime; private _startTime; private _easingFunction; private _interpolationFunction; private _chainedTweens; private _onStartCallback?; private _onStartCallbackFired; private _onEveryStartCallback?; private _onEveryStartCallbackFired; private _onUpdateCallback?; private _onRepeatCallback?; private _onCompleteCallback?; private _onStopCallback?; private _id; private _isChainStopped; private _propertiesAreSetUp; private _object; private _group?; /** * @param object - The object whose properties this Tween will animate. * @param group - The object whose properties this Tween will animate. */ constructor(object: T, group?: Group); getId(): number; isPlaying(): boolean; isPaused(): boolean; getDuration(): number; to(target: UnknownProps, duration?: number): this; duration(duration?: number): this; dynamic(dynamic?: boolean): this; start(time?: number, overrideStartingValues?: boolean): this; startFromCurrentValues(time?: number): this; private _setupProperties; stop(): this; end(): this; pause(time?: number): this; resume(time?: number): this; stopChainedTweens(): this; /** * Removes the tween from the current group it is in, if any, then adds the * tween to the specified `group`. */ group(group: Group): this; /** * @deprecated The argless call signature has been removed. Use * `tween.group(group)` or `group.add(tween)`, instead. */ group(): this; /** * Removes the tween from whichever group it is in. */ remove(): this; delay(amount?: number): this; repeat(times?: number): this; repeatDelay(amount?: number): this; yoyo(yoyo?: boolean): this; easing(easingFunction?: EasingFunction): this; interpolation(interpolationFunction?: InterpolationFunction): this; chain(...tweens: Array>): this; onStart(callback?: (object: T) => void): this; onEveryStart(callback?: (object: T) => void): this; onUpdate(callback?: (object: T, elapsed: number) => void): this; onRepeat(callback?: (object: T) => void): this; onComplete(callback?: (object: T) => void): this; onStop(callback?: (object: T) => void): this; private _goToEnd; /** * @returns true if the tween is still playing after the update, false * otherwise (calling update on a paused tween still returns true because * it is still playing, just paused). * * @param autoStart - When true, calling update will implicitly call start() * as well. Note, if you stop() or end() the tween, but are still calling * update(), it will start again! */ update(time?: number, autoStart?: boolean): boolean; private _updateProperties; private _handleRelativeValue; private _swapEndStartRepeatValues; }