import { type Container, type RecursivePartial } from "tsparticles-engine"; import type { IConfettiOptions } from "./IConfettiOptions"; export type ConfettiFirstParam = string | RecursivePartial; declare global { interface Window { confetti: ConfettiFunc & { create: (canvas: HTMLCanvasElement, options: RecursivePartial) => Promise; version: string; }; } } type ConfettiFunc = (idOrOptions: ConfettiFirstParam, confettiOptions?: RecursivePartial) => Promise; export declare function confetti(idOrOptions: ConfettiFirstParam, confettiOptions?: RecursivePartial): Promise; export declare namespace confetti { var create: (canvas: HTMLCanvasElement, options: RecursivePartial) => Promise; var version: string; } export {};