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