import { Module } from "../module"; export declare abstract class ParticleGenerator extends Module { /** * Interval between generated particles as milliseconds * (as long as `Generator.active === true`) */ interval: number; private _timer; /** * List of timestamps when a batch of particles can be generated. * * `time` is seconds since the particle effect was created, * and `count` is number of particles to generate. * * Optional `repeat` property can be supplied to supply a second interval which the batch is automatically repeated with afterwards. */ bursts: Burst[]; private _updateCounter; update(dt: number): void; /** * Function that can be used to generate a single particle. */ abstract generateParticle(): void; } export declare type Burst = { time: number; count: number; repeat?: number; };