import type { ICoordinates, ICoordinatesWithMode } from "../Core/Interfaces/ICoordinates.js"; import type { IDimension } from "../Core/Interfaces/IDimension.js"; import type { Container } from "../Core/Container.js"; import type { DataFromUrlParams } from "../Core/Interfaces/DataFromUrlParams.js"; import type { GenericInitializer } from "../Types/EngineInitializers.js"; import type { IBounds } from "../Core/Interfaces/IBounds.js"; import type { ICircleBouncer } from "../Core/Interfaces/ICircleBouncer.js"; import type { ISourceOptions } from "../Types/ISourceOptions.js"; import { OutModeDirection } from "../Enums/Directions/OutModeDirection.js"; import type { Particle } from "../Core/Particle.js"; import type { SingleOrMultiple } from "../Types/SingleOrMultiple.js"; export declare function safeDocument(): Document; export declare function safeMatchMedia(query: string): MediaQueryList | undefined; export declare function safeMutationObserver(callback: (records: MutationRecord[]) => void): MutationObserver | undefined; export declare function isInArray(value: T, array: SingleOrMultiple): boolean; export declare function itemFromArray(array: T[], index?: number, useIndex?: boolean): T | undefined; export declare function isPointInside(point: ICoordinates, size: IDimension, offset: ICoordinates, radius?: number, direction?: OutModeDirection): boolean; export declare function areBoundsInside(bounds: IBounds, size: IDimension, offset: ICoordinates, direction?: OutModeDirection): boolean; export declare function calculateBounds(point: ICoordinates, radius: number): IBounds; export declare function deepExtend(destination: unknown, ...sources: unknown[]): unknown; export declare function circleBounceDataFromParticle(p: Particle): ICircleBouncer; export declare function circleBounce(p1: ICircleBouncer, p2: ICircleBouncer): void; export declare function executeOnSingleOrMultiple(obj: SingleOrMultiple, callback: (obj: T, index: number) => U): SingleOrMultiple; export declare function itemFromSingleOrMultiple(obj: SingleOrMultiple, index?: number, useIndex?: boolean): T | undefined; export declare function getPosition(position: ICoordinatesWithMode, canvasSize: IDimension): ICoordinates; export declare function cloneStyle(style: Partial): CSSStyleDeclaration; export declare function getFullScreenStyle(zIndex: number): CSSStyleDeclaration; export declare function manageListener(element: HTMLElement | Node | Window | MediaQueryList | typeof globalThis, event: string, handler: EventListenerOrEventListenerObject, add: boolean, options?: boolean | AddEventListenerOptions | EventListenerObject): void; export declare function getItemsFromInitializer>(container: Container, initializers: Map): Promise; export declare function getItemMapFromInitializer>(container: Container, initializers: Map): Promise>; export declare function getDataFromUrl(data: DataFromUrlParams): Promise> | undefined>; export declare function getCanvasFromContainer(domContainer: HTMLElement): HTMLCanvasElement; export declare function getDomContainer(id: string, source?: HTMLElement): HTMLElement;