1 | import { Background } from "./Background/Background";
|
2 | import { BackgroundMask } from "./BackgroundMask/BackgroundMask";
|
3 | import type { Container } from "../../Core/Container";
|
4 | import type { Engine } from "../../engine";
|
5 | import { FullScreen } from "./FullScreen/FullScreen";
|
6 | import type { IOptionLoader } from "../Interfaces/IOptionLoader";
|
7 | import type { IOptions } from "../Interfaces/IOptions";
|
8 | import { Interactivity } from "./Interactivity/Interactivity";
|
9 | import { ManualParticle } from "./ManualParticle";
|
10 | import type { RangeValue } from "../../Types/RangeValue";
|
11 | import type { RecursivePartial } from "../../Types/RecursivePartial";
|
12 | import { Responsive } from "./Responsive";
|
13 | import type { SingleOrMultiple } from "../../Types/SingleOrMultiple";
|
14 | import { Theme } from "./Theme/Theme";
|
15 | interface DefaultThemes {
|
16 | dark?: string;
|
17 | light?: string;
|
18 | }
|
19 | export declare class Options implements IOptions, IOptionLoader<IOptions> {
|
20 | [name: string]: unknown;
|
21 | autoPlay: boolean;
|
22 | background: Background;
|
23 | backgroundMask: BackgroundMask;
|
24 | defaultThemes: DefaultThemes;
|
25 | delay: RangeValue;
|
26 | detectRetina: boolean;
|
27 | duration: RangeValue;
|
28 | fpsLimit: number;
|
29 | fullScreen: FullScreen;
|
30 | interactivity: Interactivity;
|
31 | manualParticles: ManualParticle[];
|
32 | particles: import("./Particles/ParticlesOptions").ParticlesOptions;
|
33 | pauseOnBlur: boolean;
|
34 | pauseOnOutsideViewport: boolean;
|
35 | preset?: SingleOrMultiple<string>;
|
36 | responsive: Responsive[];
|
37 | smooth: boolean;
|
38 | style: RecursivePartial<CSSStyleDeclaration>;
|
39 | themes: Theme[];
|
40 | zLayers: number;
|
41 | private readonly _container;
|
42 | private readonly _engine;
|
43 | constructor(engine: Engine, container: Container);
|
44 | get backgroundMode(): FullScreen;
|
45 | set backgroundMode(value: FullScreen);
|
46 | get fps_limit(): number;
|
47 | set fps_limit(value: number);
|
48 | get retina_detect(): boolean;
|
49 | set retina_detect(value: boolean);
|
50 | load(data?: RecursivePartial<IOptions>): void;
|
51 | setResponsive(width: number, pxRatio: number, defaultOptions: IOptions): number | undefined;
|
52 | setTheme(name?: string): void;
|
53 | private _findDefaultTheme;
|
54 | private _importPreset;
|
55 | }
|
56 | export {};
|