export default class RequestAnimation { private requestID?; private active; private runner; constructor({ backgroundThrottling }?: { backgroundThrottling?: boolean; }); /** * Resolve the animation loop calculates time elapsed since the last loop * and only draws if your specified fps interval is achieved * * @param {function} animationFunc - Function for animation * @param {number} fps - Frames per Second * @param {number} limit - Frames summary * * @returns {undefined} */ run(animationFunc: FrameRequestCallback, fps?: number, limit?: number): void; /** * Resolve the animation loop calculates time elapsed since the last loop * and only draws if your specified fps interval is achieved * * @param {function} animationFunc - Function for animation * @param {number} fps - Frames per Second * @param {number} limit - Frames summary * * @returns {undefined} */ runAsync(animationFunc: FrameRequestCallback, fps?: number, limit?: number): Promise; /** * Request single call * * @param {function} animationFunc - Function for animation * * @returns {undefined} */ request(animationFunc: FrameRequestCallback): void; /** * cancelRequest * * @returns {undefined} */ cancelRequest(): void; /** * activate * * @returns {undefined} */ activate(): void; /** * deactivate * * @returns {undefined} */ deactivate(): void; }