UNPKG

tsparticles-fireworks

Version:

Easily create highly customizable particle animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.

22 lines (21 loc) 825 B
import { type Container, type RecursivePartial } from "tsparticles-engine"; import type { IFireworkOptions } from "./IFireworkOptions"; declare global { interface Window { fireworks: ((idOrOptions: string | RecursivePartial<IFireworkOptions>, sourceOptions?: RecursivePartial<IFireworkOptions>) => Promise<FireworksInstance | undefined>) & { version: string; }; } } declare class FireworksInstance { private readonly _container; constructor(container: Container); pause(): void; play(): void; stop(): void; } export declare function fireworks(idOrOptions: string | RecursivePartial<IFireworkOptions>, sourceOptions?: RecursivePartial<IFireworkOptions>): Promise<FireworksInstance | undefined>; export declare namespace fireworks { var version: string; } export {};