1 | import { Container } from "./Container";
|
2 | import type { IOptions } from "../Options/Interfaces/IOptions";
|
3 | import type { RecursivePartial } from "../Types";
|
4 | import type { Particle } from "./Particle";
|
5 | import type { SingleOrMultiple } from "../Types";
|
6 | export 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 | }
|