import { type Container, type RecursivePartial } from "@tsparticles/engine"; import type { IFireworkOptions } from "./IFireworkOptions.js"; type FireworksFunc = ((idOrOptions: string | RecursivePartial, sourceOptions?: RecursivePartial) => Promise) & { version: string; }; declare global { interface Window { fireworks: FireworksFunc & { create: (canvas: HTMLCanvasElement, options: RecursivePartial) => Promise; init: () => Promise; version: string; }; } } declare class FireworksInstance { private readonly _container; constructor(container: Container); pause(): void; play(): void; stop(): void; } export type { FireworksInstance }; export declare function fireworks(idOrOptions?: string | RecursivePartial, sourceOptions?: RecursivePartial): Promise; export declare namespace fireworks { var create: (canvas: HTMLCanvasElement, options?: RecursivePartial) => Promise; var init: () => Promise; var version: string; }