import type { Game } from './game.js'; import { Tween } from './tween.js'; /** What a tween can be attached to: any object, or a list of them. */ export type TweenTarget = object | object[]; export declare class TweenManager { game: Game; _tweens: Tween[]; _add: Tween[]; easeMap: Record number>; /** * Creates a new TweenManager instance. * @param {Game} game - The game instance this manager belongs to. */ constructor(game: Game); /** * Get all tweens managed by this manager. * @returns {Tween[]} An array of all active tweens. */ getAll(): Tween[]; /** * Remove all tweens from the manager. * This method removes all active and pending tweens. */ removeAll(): void; /** * Remove tweens associated with an object or its children. * @param {object} obj - The object to remove tweens from. * @param {object[]} children - Optional array of child objects to remove tweens from. */ removeFrom(obj: TweenTarget, children?: object[] | null): void; /** * Add a tween to the manager. * @param {Tween} tween - The tween to add. */ add(tween: Tween): void; /** * Create a new tween for an object. * @param {object} object - The object to create a tween for. * @returns {Tween} The created Tween object. */ create(object: TweenTarget): Tween; /** * Remove a tween from the manager. * @param {Tween | null | undefined} tween - The tween to remove. */ remove(tween: Tween | null | undefined): void; /** * Update all tweens managed by this manager. * @returns {boolean} True if any tweens were updated, false otherwise. */ update(): boolean; /** * Check if an object is currently being tweened. * @param {object} object - The object to check. * @returns {boolean} True if the object is being tweened, false otherwise. */ isTweening(object: unknown): boolean; /** * Pause all tweens managed by this manager. * This method pauses all active tweens. */ _pauseAll(): void; /** * Resume all tweens managed by this manager. * This method resumes all paused tweens. */ _resumeAll(): void; /** * Pause all tweens managed by this manager. * This method pauses all active tweens. */ pauseAll(): void; /** * Resume all tweens managed by this manager. * This method resumes all paused tweens. */ resumeAll(): void; } //# sourceMappingURL=tween_manager.d.ts.map