UNPKG

984 BTypeScriptView Raw
1import { Container } from "./Container";
2import type { IOptions } from "../Options/Interfaces/IOptions";
3import type { RecursivePartial } from "../Types";
4import type { Particle } from "./Particle";
5import type { SingleOrMultiple } from "../Types";
6export declare class Loader {
7 static dom(): Container[];
8 static domItem(index: number): Container | undefined;
9 static load(tagId: string, options?: SingleOrMultiple<RecursivePartial<IOptions>>, index?: number): Promise<Container | undefined>;
10 static set(id: string, domContainer: HTMLElement, options?: SingleOrMultiple<RecursivePartial<IOptions>>, index?: number): Promise<Container | undefined>;
11 static loadJSON(tagId: string, jsonUrl: SingleOrMultiple<string>, index?: number): Promise<Container | undefined>;
12 static setJSON(id: string, domContainer: HTMLElement, jsonUrl: string): Promise<Container | undefined>;
13 static setOnClickHandler(callback: (evt: Event, particles?: Particle[]) => void): void;
14}