import { ParticleEffect, ParticleEffectObject } from "./particleEffect"; export declare class ParticleSystem { effects: ParticleEffect[]; addParticleEffectListeners: ((effect: ParticleEffect) => unknown)[]; removeParticleEffectListeners: ((effect: ParticleEffect) => unknown)[]; update(dt: number): void; addParticleEffect(): ParticleEffect; removeParticleEffect(particleEffect: ParticleEffect): void; /** * Wrap the properties of the whole particle system into a JSON containing only primitive JavaScript data types * (such as numbers, strings, etc.) that can be serialized into strings natively. */ toObject(): ParticleSystemObject; static fromObject(object: ParticleSystemObject, options?: { hideWarnings?: boolean; }): ParticleSystem; } interface ParticleSystemObject { effects: Array; } export {};