1 |
|
2 |
|
3 | 'use strict';
|
4 | import type {
|
5 | StyleProps,
|
6 | MeasuredDimensions,
|
7 | MapperRegistry,
|
8 | ShareableRef,
|
9 | ShadowNodeWrapper,
|
10 | FlatShareableRef,
|
11 | } from './commonTypes';
|
12 | import type { AnimatedStyle } from './helperTypes';
|
13 | import type { FrameCallbackRegistryUI } from './frameCallback/FrameCallbackRegistryUI';
|
14 | import type { NativeReanimatedModule } from './NativeReanimated/NativeReanimated';
|
15 | import type { SensorContainer } from './SensorContainer';
|
16 | import type { LayoutAnimationsManager } from './layoutReanimation/animationsManager';
|
17 | import type { ProgressTransitionRegister } from './layoutReanimation/sharedTransitions';
|
18 | import type { UpdatePropsManager } from './UpdateProps';
|
19 | import type { callGuardDEV } from './initializers';
|
20 | import type { WorkletRuntime } from './runtimes';
|
21 | import type { RNScreensTurboModuleType } from './screenTransition/commonTypes';
|
22 |
|
23 | declare global {
|
24 | var _REANIMATED_IS_REDUCED_MOTION: boolean | undefined;
|
25 | var _IS_FABRIC: boolean | undefined;
|
26 | var _REANIMATED_VERSION_CPP: string | undefined;
|
27 | var _REANIMATED_VERSION_JS: string | undefined;
|
28 | var __reanimatedModuleProxy: NativeReanimatedModule | undefined;
|
29 | var __callGuardDEV: typeof callGuardDEV | undefined;
|
30 | var evalWithSourceMap:
|
31 | | ((js: string, sourceURL: string, sourceMap: string) => any)
|
32 | | undefined;
|
33 | var evalWithSourceUrl: ((js: string, sourceURL: string) => any) | undefined;
|
34 | var _log: (value: unknown) => void;
|
35 | var _toString: (value: unknown) => string;
|
36 | var _notifyAboutProgress: (
|
37 | tag: number,
|
38 | value: Record<string, unknown>,
|
39 | isSharedTransition: boolean
|
40 | ) => void;
|
41 | var _notifyAboutEnd: (tag: number, removeView: boolean) => void;
|
42 | var _setGestureState: (handlerTag: number, newState: number) => void;
|
43 | var _makeShareableClone: <T>(
|
44 | value: T,
|
45 | nativeStateSource?: object
|
46 | ) => FlatShareableRef<T>;
|
47 | var _scheduleOnJS: (fun: (...args: A) => R, args?: A) => void;
|
48 | var _scheduleOnRuntime: (
|
49 | runtime: WorkletRuntime,
|
50 | worklet: ShareableRef<() => void>
|
51 | ) => void;
|
52 | var _updatePropsPaper:
|
53 | | ((
|
54 | operations: {
|
55 | tag: number;
|
56 | name: string | null;
|
57 |
|
58 | updates: StyleProps | AnimatedStyle<any>;
|
59 | }[]
|
60 | ) => void)
|
61 | | undefined;
|
62 | var _updatePropsFabric:
|
63 | | ((
|
64 | operations: {
|
65 | shadowNodeWrapper: ShadowNodeWrapper;
|
66 |
|
67 | updates: StyleProps | AnimatedStyle<any>;
|
68 | }[]
|
69 | ) => void)
|
70 | | undefined;
|
71 | var _removeFromPropsRegistry: (viewTags: number[]) => void | undefined;
|
72 | var _measurePaper:
|
73 | | ((viewTag: number | null) => MeasuredDimensions)
|
74 | | undefined;
|
75 | var _measureFabric:
|
76 | | ((shadowNodeWrapper: ShadowNodeWrapper | null) => MeasuredDimensions)
|
77 | | undefined;
|
78 | var _scrollToPaper:
|
79 | | ((viewTag: number, x: number, y: number, animated: boolean) => void)
|
80 | | undefined;
|
81 | var _dispatchCommandPaper:
|
82 | | ((viewTag: number, commandName: string, args: Array<unknown>) => void)
|
83 | | undefined;
|
84 | var _dispatchCommandFabric:
|
85 | | ((
|
86 | shadowNodeWrapper: ShadowNodeWrapper,
|
87 | commandName: string,
|
88 | args: Array<unknown>
|
89 | ) => void)
|
90 | | undefined;
|
91 | var _getAnimationTimestamp: () => number;
|
92 | var __ErrorUtils: {
|
93 | reportFatalError: (error: Error) => void;
|
94 | };
|
95 | var _frameCallbackRegistry: FrameCallbackRegistryUI;
|
96 | var console: Console;
|
97 | var __frameTimestamp: number | undefined;
|
98 | var __flushAnimationFrame: (timestamp: number) => void;
|
99 | var __workletsCache: Map<string, any>;
|
100 | var __handleCache: WeakMap<object, any>;
|
101 | var __callMicrotasks: () => void;
|
102 | var __mapperRegistry: MapperRegistry;
|
103 | var __sensorContainer: SensorContainer;
|
104 | var _maybeFlushUIUpdatesQueue: () => void;
|
105 | var LayoutAnimationsManager: LayoutAnimationsManager;
|
106 | var UpdatePropsManager: UpdatePropsManager;
|
107 | var ProgressTransitionRegister: ProgressTransitionRegister;
|
108 | var updateJSProps: (viewTag: number, props: Record<string, unknown>) => void;
|
109 | var RNScreensTurboModule: RNScreensTurboModuleType | undefined;
|
110 | var _obtainPropPaper: (viewTag: number, propName: string) => string;
|
111 | var _obtainPropFabric: (
|
112 | shadowNodeWrapper: ShadowNodeWrapper,
|
113 | propName: string
|
114 | ) => string;
|
115 | }
|