/** * DepthText v1.2.0 - TypeScript * https://mobiwise.dev | https://github.com/mobiwise-dev/depthtext * MIT License | (c) 2025 * * - Compatible SSR (guards around window/document) * - Designed to be bundled (tsup / rollup / vite) * - Exports: DepthTextInstance, DEPTHTEXT_DEFAULTS, DepthTextify */ interface DepthTextOptions { depth?: string; direction?: "both" | "backwards" | "forwards"; event?: "none" | "pointer" | "scroll" | "scrollX" | "scrollY"; eventRotation?: string; eventDirection?: "default" | "reverse"; fade?: boolean | string; layers?: number | string; perspective?: string; engaged?: boolean | string; addClass?: string; layerClassMap?: string[]; } declare const DEPTHTEXT_DEFAULTS: Required>; type MaybeElement = HTMLElement | Element | null; declare class DepthTextInstance { element: MaybeElement; options: Required; wrapper: MaybeElement | null; layersContainer: MaybeElement | null; _layerContentTemplate: DocumentFragment | null; _originalStyles: Map; intersectionObserver: any; resizeObserver: any; depthValue: number; depthUnit: string; rotationValue: number; rotationUnit: string; isVisible: boolean; _isDestroyed: boolean; constructor(element: MaybeElement, options?: DepthTextOptions); _validateOptions(options: DepthTextOptions): Required; _parseUnits(): void; _storeOriginalState(): void; _createStructure(): void; _createLayers(): void; _calculateTranslation(pct: number, direction: string): number; _setupObservers(): void; _enableGlobalHooks(): void; tilt(xPct?: number, yPct?: number): void; handleScrollGlobal(): void; update(options?: Partial): void; destroy(): void; } declare function DepthTextify(selectorOrOptions?: string | DepthTextOptions, maybeOptions?: DepthTextOptions): DepthTextInstance | DepthTextInstance[]; export { DEPTHTEXT_DEFAULTS, DepthTextInstance, DepthTextOptions, DepthTextify, DepthTextInstance as default };