/** * Utils related to timers and loops. */ export declare let requestAnimationFrame: (callback: FrameRequestCallback) => number; export declare let cancelAnimationFrame: (handle: number) => void; /** * Holds a list of callback functions that are invoked repeatedly with a fixed * time delay between each call, as provided to the constructor. The default is * 200ms. The interval will stop when the list is empty and resume when it is * not empty. */ export declare class IntervalList { private _interval; private _callbacks; private _id; /** * @param {number} interval Time in ms. */ constructor(interval?: number); /** * Add a callback to the list. If the list was empty before this action, * the interval will be started. * * @param {Function} callback */ add(callback: Function): void; /** * Remove a callback from the list. If this action results in an empty list, * the interval will be stopped. * * @param {Function} callback */ remove(callback: Function): void; /** * Start the interval. */ start(): void; /** * Stop the interval. */ stop(): void; } //# sourceMappingURL=timerUtils.d.ts.map