UNPKG

616 BTypeScriptView Raw
1import type { IOptions } from "./Options/Interfaces/IOptions";
2import type { Container } from "./Core/Container";
3import type { Main } from "./main";
4import type { RecursivePartial } from "./Types";
5export interface IParticlesJS {
6 (tagId: string, options: RecursivePartial<IOptions>): Promise<Container | undefined>;
7 load(tagId: string, pathConfigJson: string, callback: (container?: Container) => void): void;
8 setOnClickHandler(callback: EventListenerOrEventListenerObject): void;
9}
10declare const initPjs: (main: Main) => {
11 particlesJS: IParticlesJS;
12 pJSDom: Container[];
13};
14export { initPjs };