import type { Container } from "./Classes/Container"; import type { IOptions } from "./Interfaces/Options/IOptions"; import type { RecursivePartial } from "./Types/RecursivePartial"; import { IShapeDrawer } from "./Interfaces/IShapeDrawer"; import { ShapeDrawerFunction } from "./Types/ShapeDrawerFunction"; declare global { interface Window { particlesJS: any; tsParticles: Main; pJSDom: () => Container[]; } } declare class Main { constructor(); loadFromArray(tagId: string, params: RecursivePartial[], index?: number): Promise; load(tagId: string, params: RecursivePartial): Promise; loadJSON(tagId: string, pathConfigJson: string): Promise; setOnClickHandler(callback: EventListenerOrEventListenerObject): void; dom(): Container[]; domItem(index: number): Container | undefined; addShape(shape: string, drawer: IShapeDrawer | ShapeDrawerFunction): void; addPreset(preset: string, options: RecursivePartial): void; } declare const tsParticles: Main; export { tsParticles };