/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable no-var */ 'use strict'; import type { StyleProps, MeasuredDimensions, MapperRegistry, ShareableRef, ShadowNodeWrapper, FlatShareableRef, } from './commonTypes'; import type { AnimatedStyle } from './helperTypes'; import type { FrameCallbackRegistryUI } from './frameCallback/FrameCallbackRegistryUI'; import type { NativeReanimatedModule } from './NativeReanimated/NativeReanimated'; import type { SensorContainer } from './SensorContainer'; import type { LayoutAnimationsManager } from './layoutReanimation/animationsManager'; import type { ProgressTransitionRegister } from './layoutReanimation/sharedTransitions'; import type { UpdatePropsManager } from './UpdateProps'; import type { callGuardDEV } from './initializers'; import type { WorkletRuntime } from './runtimes'; import type { RNScreensTurboModuleType } from './screenTransition/commonTypes'; declare global { var _REANIMATED_IS_REDUCED_MOTION: boolean | undefined; var _IS_FABRIC: boolean | undefined; var _REANIMATED_VERSION_CPP: string | undefined; var _REANIMATED_VERSION_JS: string | undefined; var __reanimatedModuleProxy: NativeReanimatedModule | undefined; var __callGuardDEV: typeof callGuardDEV | undefined; var evalWithSourceMap: | ((js: string, sourceURL: string, sourceMap: string) => any) | undefined; var evalWithSourceUrl: ((js: string, sourceURL: string) => any) | undefined; var _log: (value: unknown) => void; var _toString: (value: unknown) => string; var _notifyAboutProgress: ( tag: number, value: Record, isSharedTransition: boolean ) => void; var _notifyAboutEnd: (tag: number, removeView: boolean) => void; var _setGestureState: (handlerTag: number, newState: number) => void; var _makeShareableClone: ( value: T, nativeStateSource?: object ) => FlatShareableRef; var _scheduleOnJS: (fun: (...args: A) => R, args?: A) => void; var _scheduleOnRuntime: ( runtime: WorkletRuntime, worklet: ShareableRef<() => void> ) => void; var _updatePropsPaper: | (( operations: { tag: number; name: string | null; // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents updates: StyleProps | AnimatedStyle; }[] ) => void) | undefined; var _updatePropsFabric: | (( operations: { shadowNodeWrapper: ShadowNodeWrapper; // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents updates: StyleProps | AnimatedStyle; }[] ) => void) | undefined; var _removeFromPropsRegistry: (viewTags: number[]) => void | undefined; var _measurePaper: | ((viewTag: number | null) => MeasuredDimensions) | undefined; var _measureFabric: | ((shadowNodeWrapper: ShadowNodeWrapper | null) => MeasuredDimensions) | undefined; var _scrollToPaper: | ((viewTag: number, x: number, y: number, animated: boolean) => void) | undefined; var _dispatchCommandPaper: | ((viewTag: number, commandName: string, args: Array) => void) | undefined; var _dispatchCommandFabric: | (( shadowNodeWrapper: ShadowNodeWrapper, commandName: string, args: Array ) => void) | undefined; var _getAnimationTimestamp: () => number; var __ErrorUtils: { reportFatalError: (error: Error) => void; }; var _frameCallbackRegistry: FrameCallbackRegistryUI; var console: Console; var __frameTimestamp: number | undefined; var __flushAnimationFrame: (timestamp: number) => void; var __workletsCache: Map; var __handleCache: WeakMap; var __callMicrotasks: () => void; var __mapperRegistry: MapperRegistry; var __sensorContainer: SensorContainer; var _maybeFlushUIUpdatesQueue: () => void; var LayoutAnimationsManager: LayoutAnimationsManager; var UpdatePropsManager: UpdatePropsManager; var ProgressTransitionRegister: ProgressTransitionRegister; var updateJSProps: (viewTag: number, props: Record) => void; var RNScreensTurboModule: RNScreensTurboModuleType | undefined; var _obtainPropPaper: (viewTag: number, propName: string) => string; var _obtainPropFabric: ( shadowNodeWrapper: ShadowNodeWrapper, propName: string ) => string; }