1 | import type { IOptions } from "./Options/Interfaces/IOptions";
|
2 | import type { Container } from "./Core/Container";
|
3 | import type { IShapeDrawer } from "./Core/Interfaces/IShapeDrawer";
|
4 | import type { ShapeDrawerAfterEffectFunction, ShapeDrawerDestroyFunction, ShapeDrawerDrawFunction, ShapeDrawerInitFunction, RecursivePartial, SingleOrMultiple } from "./Types";
|
5 | import type { IPlugin } from "./Core/Interfaces/IPlugin";
|
6 | import type { Particle } from "./Core/Particle";
|
7 | import type { IMovePathGenerator } from "./Core/Interfaces/IMovePathGenerator";
|
8 | export declare class MainSlim {
|
9 | #private;
|
10 | constructor();
|
11 | init(): void;
|
12 | loadFromArray(tagId: string, options: RecursivePartial<IOptions>[], index?: number): Promise<Container | undefined>;
|
13 | load(tagId: string, options: SingleOrMultiple<RecursivePartial<IOptions>>): Promise<Container | undefined>;
|
14 | set(id: string, element: HTMLElement, options: RecursivePartial<IOptions>): Promise<Container | undefined>;
|
15 | loadJSON(tagId: string, pathConfigJson: SingleOrMultiple<string>, index?: number): Promise<Container | undefined>;
|
16 | setOnClickHandler(callback: (e: Event, particles?: Particle[]) => void): void;
|
17 | dom(): Container[];
|
18 | domItem(index: number): Container | undefined;
|
19 | addShape(shape: string, drawer: IShapeDrawer | ShapeDrawerDrawFunction, init?: ShapeDrawerInitFunction, afterEffect?: ShapeDrawerAfterEffectFunction, destroy?: ShapeDrawerDestroyFunction): void;
|
20 | addPreset(preset: string, options: RecursivePartial<IOptions>): void;
|
21 | addPlugin(plugin: IPlugin): void;
|
22 | addPathGenerator(name: string, generator: IMovePathGenerator): void;
|
23 | }
|