/** * This class is a Timer that passes all items pushed during each interval `time` to the callback `fn` as an Array */ export default class BulkTimer { private time; private fn; /** @internal */ private interval; /** @internal */ private next; /** @internal */ private pending; constructor(time: number, fn: any); /** * This methods stops the interval and destroys the Timer. Call it when you're done using it */ destroy(): void; /** * @ignore */ private ontick; /** * This method adds an item to the batch that gets passed to `fn` every `time` interval */ push(info: any): void; }