sidakram-bippy 0.2.24

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var chunkGVWERSAB_cjs = require('./chunk-GVWERSAB.cjs');
4
+
5
+ /**
6
+ * @license bippy
7
+ *
8
+ * Copyright (c) Aiden Bai, Million Software, Inc.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */
13
+
14
+ // src/index.ts
15
+ try {
16
+ if (chunkGVWERSAB_cjs.isClientEnvironment()) {
17
+ chunkGVWERSAB_cjs.getRDTHook();
18
+ }
19
+ } catch {
20
+ }
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var chunk475IQUDX_cjs = require('./chunk-475IQUDX.cjs');
4
+
5
+ /**
6
+ * @license bippy
7
+ *
8
+ * Copyright (c) Aiden Bai, Million Software, Inc.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */
13
+
14
+ // src/index.ts
15
+ try {
16
+ if (chunk475IQUDX_cjs.isClientEnvironment()) {
17
+ chunk475IQUDX_cjs.getRDTHook();
18
+ }
19
+ } catch (e) {
20
+ }
@@ -0,0 +1,18 @@
1
+ import { isClientEnvironment, getRDTHook } from './chunk-347RWTP3.js';
2
+
3
+ /**
4
+ * @license bippy
5
+ *
6
+ * Copyright (c) Aiden Bai, Million Software, Inc.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+
12
+ // src/index.ts
13
+ try {
14
+ if (isClientEnvironment()) {
15
+ getRDTHook();
16
+ }
17
+ } catch {
18
+ }
@@ -0,0 +1,18 @@
1
+ import { isClientEnvironment, getRDTHook } from './chunk-7ROEST76.js';
2
+
3
+ /**
4
+ * @license bippy
5
+ *
6
+ * Copyright (c) Aiden Bai, Million Software, Inc.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+
12
+ // src/index.ts
13
+ try {
14
+ if (isClientEnvironment()) {
15
+ getRDTHook();
16
+ }
17
+ } catch (e) {
18
+ }
package/dist/core.cjs ADDED
@@ -0,0 +1,270 @@
1
+ 'use strict';
2
+
3
+ var chunk475IQUDX_cjs = require('./chunk-475IQUDX.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "BIPPY_INSTRUMENTATION_STRING", {
8
+ enumerable: true,
9
+ get: function () { return chunk475IQUDX_cjs.BIPPY_INSTRUMENTATION_STRING; }
10
+ });
11
+ Object.defineProperty(exports, "CONCURRENT_MODE_NUMBER", {
12
+ enumerable: true,
13
+ get: function () { return chunk475IQUDX_cjs.CONCURRENT_MODE_NUMBER; }
14
+ });
15
+ Object.defineProperty(exports, "CONCURRENT_MODE_SYMBOL_STRING", {
16
+ enumerable: true,
17
+ get: function () { return chunk475IQUDX_cjs.CONCURRENT_MODE_SYMBOL_STRING; }
18
+ });
19
+ Object.defineProperty(exports, "ClassComponentTag", {
20
+ enumerable: true,
21
+ get: function () { return chunk475IQUDX_cjs.ClassComponentTag; }
22
+ });
23
+ Object.defineProperty(exports, "ContextConsumerTag", {
24
+ enumerable: true,
25
+ get: function () { return chunk475IQUDX_cjs.ContextConsumerTag; }
26
+ });
27
+ Object.defineProperty(exports, "DEPRECATED_ASYNC_MODE_SYMBOL_STRING", {
28
+ enumerable: true,
29
+ get: function () { return chunk475IQUDX_cjs.DEPRECATED_ASYNC_MODE_SYMBOL_STRING; }
30
+ });
31
+ Object.defineProperty(exports, "DehydratedSuspenseComponentTag", {
32
+ enumerable: true,
33
+ get: function () { return chunk475IQUDX_cjs.DehydratedSuspenseComponentTag; }
34
+ });
35
+ Object.defineProperty(exports, "ELEMENT_TYPE_SYMBOL_STRING", {
36
+ enumerable: true,
37
+ get: function () { return chunk475IQUDX_cjs.ELEMENT_TYPE_SYMBOL_STRING; }
38
+ });
39
+ Object.defineProperty(exports, "ForwardRefTag", {
40
+ enumerable: true,
41
+ get: function () { return chunk475IQUDX_cjs.ForwardRefTag; }
42
+ });
43
+ Object.defineProperty(exports, "FragmentTag", {
44
+ enumerable: true,
45
+ get: function () { return chunk475IQUDX_cjs.FragmentTag; }
46
+ });
47
+ Object.defineProperty(exports, "FunctionComponentTag", {
48
+ enumerable: true,
49
+ get: function () { return chunk475IQUDX_cjs.FunctionComponentTag; }
50
+ });
51
+ Object.defineProperty(exports, "HostComponentTag", {
52
+ enumerable: true,
53
+ get: function () { return chunk475IQUDX_cjs.HostComponentTag; }
54
+ });
55
+ Object.defineProperty(exports, "HostHoistableTag", {
56
+ enumerable: true,
57
+ get: function () { return chunk475IQUDX_cjs.HostHoistableTag; }
58
+ });
59
+ Object.defineProperty(exports, "HostRootTag", {
60
+ enumerable: true,
61
+ get: function () { return chunk475IQUDX_cjs.HostRootTag; }
62
+ });
63
+ Object.defineProperty(exports, "HostSingletonTag", {
64
+ enumerable: true,
65
+ get: function () { return chunk475IQUDX_cjs.HostSingletonTag; }
66
+ });
67
+ Object.defineProperty(exports, "HostTextTag", {
68
+ enumerable: true,
69
+ get: function () { return chunk475IQUDX_cjs.HostTextTag; }
70
+ });
71
+ Object.defineProperty(exports, "INSTALL_ERROR", {
72
+ enumerable: true,
73
+ get: function () { return chunk475IQUDX_cjs.INSTALL_ERROR; }
74
+ });
75
+ Object.defineProperty(exports, "INSTALL_HOOK_SCRIPT_STRING", {
76
+ enumerable: true,
77
+ get: function () { return chunk475IQUDX_cjs.INSTALL_HOOK_SCRIPT_STRING; }
78
+ });
79
+ Object.defineProperty(exports, "LegacyHiddenComponentTag", {
80
+ enumerable: true,
81
+ get: function () { return chunk475IQUDX_cjs.LegacyHiddenComponentTag; }
82
+ });
83
+ Object.defineProperty(exports, "MemoComponentTag", {
84
+ enumerable: true,
85
+ get: function () { return chunk475IQUDX_cjs.MemoComponentTag; }
86
+ });
87
+ Object.defineProperty(exports, "OffscreenComponentTag", {
88
+ enumerable: true,
89
+ get: function () { return chunk475IQUDX_cjs.OffscreenComponentTag; }
90
+ });
91
+ Object.defineProperty(exports, "SimpleMemoComponentTag", {
92
+ enumerable: true,
93
+ get: function () { return chunk475IQUDX_cjs.SimpleMemoComponentTag; }
94
+ });
95
+ Object.defineProperty(exports, "SuspenseComponentTag", {
96
+ enumerable: true,
97
+ get: function () { return chunk475IQUDX_cjs.SuspenseComponentTag; }
98
+ });
99
+ Object.defineProperty(exports, "TRANSITIONAL_ELEMENT_TYPE_SYMBOL_STRING", {
100
+ enumerable: true,
101
+ get: function () { return chunk475IQUDX_cjs.TRANSITIONAL_ELEMENT_TYPE_SYMBOL_STRING; }
102
+ });
103
+ Object.defineProperty(exports, "createFiberVisitor", {
104
+ enumerable: true,
105
+ get: function () { return chunk475IQUDX_cjs.createFiberVisitor; }
106
+ });
107
+ Object.defineProperty(exports, "detectReactBuildType", {
108
+ enumerable: true,
109
+ get: function () { return chunk475IQUDX_cjs.detectReactBuildType; }
110
+ });
111
+ Object.defineProperty(exports, "didFiberCommit", {
112
+ enumerable: true,
113
+ get: function () { return chunk475IQUDX_cjs.didFiberCommit; }
114
+ });
115
+ Object.defineProperty(exports, "didFiberRender", {
116
+ enumerable: true,
117
+ get: function () { return chunk475IQUDX_cjs.didFiberRender; }
118
+ });
119
+ Object.defineProperty(exports, "fiberIdMap", {
120
+ enumerable: true,
121
+ get: function () { return chunk475IQUDX_cjs.fiberIdMap; }
122
+ });
123
+ Object.defineProperty(exports, "getDisplayName", {
124
+ enumerable: true,
125
+ get: function () { return chunk475IQUDX_cjs.getDisplayName; }
126
+ });
127
+ Object.defineProperty(exports, "getFiberFromHostInstance", {
128
+ enumerable: true,
129
+ get: function () { return chunk475IQUDX_cjs.getFiberFromHostInstance; }
130
+ });
131
+ Object.defineProperty(exports, "getFiberId", {
132
+ enumerable: true,
133
+ get: function () { return chunk475IQUDX_cjs.getFiberId; }
134
+ });
135
+ Object.defineProperty(exports, "getFiberStack", {
136
+ enumerable: true,
137
+ get: function () { return chunk475IQUDX_cjs.getFiberStack; }
138
+ });
139
+ Object.defineProperty(exports, "getMutatedHostFibers", {
140
+ enumerable: true,
141
+ get: function () { return chunk475IQUDX_cjs.getMutatedHostFibers; }
142
+ });
143
+ Object.defineProperty(exports, "getNearestHostFiber", {
144
+ enumerable: true,
145
+ get: function () { return chunk475IQUDX_cjs.getNearestHostFiber; }
146
+ });
147
+ Object.defineProperty(exports, "getNearestHostFibers", {
148
+ enumerable: true,
149
+ get: function () { return chunk475IQUDX_cjs.getNearestHostFibers; }
150
+ });
151
+ Object.defineProperty(exports, "getRDTHook", {
152
+ enumerable: true,
153
+ get: function () { return chunk475IQUDX_cjs.getRDTHook; }
154
+ });
155
+ Object.defineProperty(exports, "getTimings", {
156
+ enumerable: true,
157
+ get: function () { return chunk475IQUDX_cjs.getTimings; }
158
+ });
159
+ Object.defineProperty(exports, "getType", {
160
+ enumerable: true,
161
+ get: function () { return chunk475IQUDX_cjs.getType; }
162
+ });
163
+ Object.defineProperty(exports, "hasMemoCache", {
164
+ enumerable: true,
165
+ get: function () { return chunk475IQUDX_cjs.hasMemoCache; }
166
+ });
167
+ Object.defineProperty(exports, "hasRDTHook", {
168
+ enumerable: true,
169
+ get: function () { return chunk475IQUDX_cjs.hasRDTHook; }
170
+ });
171
+ Object.defineProperty(exports, "installRDTHook", {
172
+ enumerable: true,
173
+ get: function () { return chunk475IQUDX_cjs.installRDTHook; }
174
+ });
175
+ Object.defineProperty(exports, "instrument", {
176
+ enumerable: true,
177
+ get: function () { return chunk475IQUDX_cjs.instrument; }
178
+ });
179
+ Object.defineProperty(exports, "isClientEnvironment", {
180
+ enumerable: true,
181
+ get: function () { return chunk475IQUDX_cjs.isClientEnvironment; }
182
+ });
183
+ Object.defineProperty(exports, "isCompositeFiber", {
184
+ enumerable: true,
185
+ get: function () { return chunk475IQUDX_cjs.isCompositeFiber; }
186
+ });
187
+ Object.defineProperty(exports, "isHostFiber", {
188
+ enumerable: true,
189
+ get: function () { return chunk475IQUDX_cjs.isHostFiber; }
190
+ });
191
+ Object.defineProperty(exports, "isInstrumentationActive", {
192
+ enumerable: true,
193
+ get: function () { return chunk475IQUDX_cjs.isInstrumentationActive; }
194
+ });
195
+ Object.defineProperty(exports, "isReactRefresh", {
196
+ enumerable: true,
197
+ get: function () { return chunk475IQUDX_cjs.isReactRefresh; }
198
+ });
199
+ Object.defineProperty(exports, "isRealReactDevtools", {
200
+ enumerable: true,
201
+ get: function () { return chunk475IQUDX_cjs.isRealReactDevtools; }
202
+ });
203
+ Object.defineProperty(exports, "isValidElement", {
204
+ enumerable: true,
205
+ get: function () { return chunk475IQUDX_cjs.isValidElement; }
206
+ });
207
+ Object.defineProperty(exports, "isValidFiber", {
208
+ enumerable: true,
209
+ get: function () { return chunk475IQUDX_cjs.isValidFiber; }
210
+ });
211
+ Object.defineProperty(exports, "mountFiberRecursively", {
212
+ enumerable: true,
213
+ get: function () { return chunk475IQUDX_cjs.mountFiberRecursively; }
214
+ });
215
+ Object.defineProperty(exports, "onCommitFiberRoot", {
216
+ enumerable: true,
217
+ get: function () { return chunk475IQUDX_cjs.onCommitFiberRoot; }
218
+ });
219
+ Object.defineProperty(exports, "patchRDTHook", {
220
+ enumerable: true,
221
+ get: function () { return chunk475IQUDX_cjs.patchRDTHook; }
222
+ });
223
+ Object.defineProperty(exports, "secure", {
224
+ enumerable: true,
225
+ get: function () { return chunk475IQUDX_cjs.secure; }
226
+ });
227
+ Object.defineProperty(exports, "setFiberId", {
228
+ enumerable: true,
229
+ get: function () { return chunk475IQUDX_cjs.setFiberId; }
230
+ });
231
+ Object.defineProperty(exports, "shouldFilterFiber", {
232
+ enumerable: true,
233
+ get: function () { return chunk475IQUDX_cjs.shouldFilterFiber; }
234
+ });
235
+ Object.defineProperty(exports, "traverseContexts", {
236
+ enumerable: true,
237
+ get: function () { return chunk475IQUDX_cjs.traverseContexts; }
238
+ });
239
+ Object.defineProperty(exports, "traverseFiber", {
240
+ enumerable: true,
241
+ get: function () { return chunk475IQUDX_cjs.traverseFiber; }
242
+ });
243
+ Object.defineProperty(exports, "traverseProps", {
244
+ enumerable: true,
245
+ get: function () { return chunk475IQUDX_cjs.traverseProps; }
246
+ });
247
+ Object.defineProperty(exports, "traverseRenderedFibers", {
248
+ enumerable: true,
249
+ get: function () { return chunk475IQUDX_cjs.traverseRenderedFibers; }
250
+ });
251
+ Object.defineProperty(exports, "traverseState", {
252
+ enumerable: true,
253
+ get: function () { return chunk475IQUDX_cjs.traverseState; }
254
+ });
255
+ Object.defineProperty(exports, "unmountFiber", {
256
+ enumerable: true,
257
+ get: function () { return chunk475IQUDX_cjs.unmountFiber; }
258
+ });
259
+ Object.defineProperty(exports, "unmountFiberChildrenRecursively", {
260
+ enumerable: true,
261
+ get: function () { return chunk475IQUDX_cjs.unmountFiberChildrenRecursively; }
262
+ });
263
+ Object.defineProperty(exports, "updateFiberRecursively", {
264
+ enumerable: true,
265
+ get: function () { return chunk475IQUDX_cjs.updateFiberRecursively; }
266
+ });
267
+ Object.defineProperty(exports, "version", {
268
+ enumerable: true,
269
+ get: function () { return chunk475IQUDX_cjs.version; }
270
+ });
@@ -0,0 +1,275 @@
1
+ import * as React from 'react';
2
+ import { FiberRoot, Fiber as Fiber$1, ReactContext, Lanes } from 'react-reconciler';
3
+ export { BundleType, ComponentSelector, DevToolsConfig, FiberRoot, Flags, HasPseudoClassSelector, HookType, HostConfig, LanePriority, Lanes, MutableSource, OpaqueHandle, OpaqueRoot, React$AbstractComponent, ReactConsumer, ReactContext, ReactPortal, ReactProvider, ReactProviderType, RefObject, RoleSelector, RootTag, Selector, Source, SuspenseHydrationCallbacks, TestNameSelector, TextSelector, Thenable, TransitionTracingCallbacks, TypeOfMode, WorkTag } from 'react-reconciler';
4
+
5
+ interface ReactDevToolsGlobalHook {
6
+ checkDCE: (fn: unknown) => void;
7
+ supportsFiber: boolean;
8
+ supportsFlight: boolean;
9
+ renderers: Map<number, ReactRenderer>;
10
+ hasUnsupportedRendererAttached: boolean;
11
+ onCommitFiberRoot: (rendererID: number, root: FiberRoot, priority: void | number) => void;
12
+ onCommitFiberUnmount: (rendererID: number, fiber: Fiber) => void;
13
+ onPostCommitFiberRoot: (rendererID: number, root: FiberRoot) => void;
14
+ inject: (renderer: ReactRenderer) => number;
15
+ _instrumentationSource?: string;
16
+ _instrumentationIsActive?: boolean;
17
+ _sw?: boolean;
18
+ }
19
+ /**
20
+ * Represents a react-internal Fiber node.
21
+ */
22
+ type Fiber<T = any> = Omit<Fiber$1, 'stateNode' | 'dependencies' | 'child' | 'sibling' | 'return' | 'alternate' | 'memoizedProps' | 'pendingProps' | 'memoizedState' | 'updateQueue'> & {
23
+ stateNode: T;
24
+ dependencies: Dependencies | null;
25
+ child: Fiber | null;
26
+ sibling: Fiber | null;
27
+ return: Fiber | null;
28
+ alternate: Fiber | null;
29
+ memoizedProps: Props;
30
+ pendingProps: Props;
31
+ memoizedState: MemoizedState;
32
+ updateQueue: {
33
+ lastEffect: Effect | null;
34
+ [key: string]: unknown;
35
+ };
36
+ };
37
+ interface ReactRenderer {
38
+ version: string;
39
+ bundleType: 0 | 1;
40
+ findFiberByHostInstance?: (hostInstance: unknown) => Fiber | null;
41
+ }
42
+ interface ContextDependency<T> {
43
+ context: ReactContext<T>;
44
+ memoizedValue: T;
45
+ observedBits: number;
46
+ next: ContextDependency<unknown> | null;
47
+ }
48
+ interface Dependencies {
49
+ lanes: Lanes;
50
+ firstContext: ContextDependency<unknown> | null;
51
+ }
52
+ interface Effect {
53
+ next: Effect | null;
54
+ create: (...args: unknown[]) => unknown;
55
+ destroy: ((...args: unknown[]) => unknown) | null;
56
+ deps: unknown[] | null;
57
+ tag: number;
58
+ [key: string]: unknown;
59
+ }
60
+ interface MemoizedState {
61
+ memoizedState: unknown;
62
+ next: MemoizedState | null;
63
+ [key: string]: unknown;
64
+ }
65
+ interface Props {
66
+ [key: string]: unknown;
67
+ }
68
+ declare global {
69
+ var __REACT_DEVTOOLS_GLOBAL_HOOK__: ReactDevToolsGlobalHook | undefined;
70
+ }
71
+
72
+ declare const INSTALL_HOOK_SCRIPT_STRING = "(()=>{try{var t=()=>{};const n=new Map;let o=0;globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__={checkDCE:t,supportsFiber:!0,supportsFlight:!0,hasUnsupportedRendererAttached:!1,renderers:n,onCommitFiberRoot:t,onCommitFiberUnmount:t,onPostCommitFiberRoot:t,inject(t){var e=++o;return n.set(e,t),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__._instrumentationIsActive=!0,e},_instrumentationIsActive:!1,_script:!0}}catch{}})()";
73
+
74
+ declare const version: string | undefined;
75
+ declare const BIPPY_INSTRUMENTATION_STRING: string;
76
+ declare const isRealReactDevtools: (rdtHook?: ReactDevToolsGlobalHook) => boolean;
77
+ declare const isReactRefresh: (rdtHook?: ReactDevToolsGlobalHook) => boolean;
78
+ declare const installRDTHook: (onActive?: () => unknown) => ReactDevToolsGlobalHook;
79
+ declare const patchRDTHook: (onActive?: () => unknown) => void;
80
+ declare const hasRDTHook: () => boolean;
81
+ /**
82
+ * Returns the current React DevTools global hook.
83
+ */
84
+ declare const getRDTHook: (onActive?: () => unknown) => ReactDevToolsGlobalHook;
85
+ declare const isClientEnvironment: () => boolean;
86
+
87
+ declare const FunctionComponentTag = 0;
88
+ declare const ClassComponentTag = 1;
89
+ declare const HostRootTag = 3;
90
+ declare const HostComponentTag = 5;
91
+ declare const HostTextTag = 6;
92
+ declare const FragmentTag = 7;
93
+ declare const ContextConsumerTag = 9;
94
+ declare const ForwardRefTag = 11;
95
+ declare const SuspenseComponentTag = 13;
96
+ declare const MemoComponentTag = 14;
97
+ declare const SimpleMemoComponentTag = 15;
98
+ declare const DehydratedSuspenseComponentTag = 18;
99
+ declare const OffscreenComponentTag = 22;
100
+ declare const LegacyHiddenComponentTag = 23;
101
+ declare const HostHoistableTag = 26;
102
+ declare const HostSingletonTag = 27;
103
+ declare const CONCURRENT_MODE_NUMBER = 60111;
104
+ declare const ELEMENT_TYPE_SYMBOL_STRING = "Symbol(react.element)";
105
+ declare const TRANSITIONAL_ELEMENT_TYPE_SYMBOL_STRING = "Symbol(react.transitional.element)";
106
+ declare const CONCURRENT_MODE_SYMBOL_STRING = "Symbol(react.concurrent_mode)";
107
+ declare const DEPRECATED_ASYNC_MODE_SYMBOL_STRING = "Symbol(react.async_mode)";
108
+ /**
109
+ * Returns `true` if object is a React Element.
110
+ *
111
+ * @see https://react.dev/reference/react/isValidElement
112
+ */
113
+ declare const isValidElement: (element: unknown) => element is React.ReactElement;
114
+ /**
115
+ * Returns `true` if object is a React Fiber.
116
+ */
117
+ declare const isValidFiber: (fiber: unknown) => fiber is Fiber;
118
+ /**
119
+ * Returns `true` if fiber is a host fiber. Host fibers are DOM nodes in react-dom, `View` in react-native, etc.
120
+ *
121
+ * @see https://reactnative.dev/architecture/glossary#host-view-tree-and-host-view
122
+ */
123
+ declare const isHostFiber: (fiber: Fiber) => boolean;
124
+ /**
125
+ * Returns `true` if fiber is a composite fiber. Composite fibers are fibers that can render (like functional components, class components, etc.)
126
+ *
127
+ * @see https://reactnative.dev/architecture/glossary#react-composite-components
128
+ */
129
+ declare const isCompositeFiber: (fiber: Fiber) => boolean;
130
+ /**
131
+ * Traverses up or down a {@link Fiber}'s contexts, return `true` to stop and select the current and previous context value.
132
+ */
133
+ declare const traverseContexts: (fiber: Fiber, selector: (nextValue: ContextDependency<unknown> | null | undefined, prevValue: ContextDependency<unknown> | null | undefined) => boolean | void) => boolean;
134
+ /**
135
+ * Traverses up or down a {@link Fiber}'s states, return `true` to stop and select the current and previous state value. This stores both state values and effects.
136
+ */
137
+ declare const traverseState: (fiber: Fiber, selector: (nextValue: MemoizedState | null | undefined, prevValue: MemoizedState | null | undefined) => boolean | void) => boolean;
138
+ /**
139
+ * Traverses up or down a {@link Fiber}'s props, return `true` to stop and select the current and previous props value.
140
+ */
141
+ declare const traverseProps: (fiber: Fiber, selector: (propName: string, nextValue: unknown, prevValue: unknown) => boolean | void) => boolean;
142
+ /**
143
+ * Returns `true` if the {@link Fiber} has rendered. Note that this does not mean the fiber has rendered in the current commit, just that it has rendered in the past.
144
+ */
145
+ declare const didFiberRender: (fiber: Fiber) => boolean;
146
+ /**
147
+ * Returns `true` if the {@link Fiber} has committed. Note that this does not mean the fiber has committed in the current commit, just that it has committed in the past.
148
+ */
149
+ declare const didFiberCommit: (fiber: Fiber) => boolean;
150
+ /**
151
+ * Returns all host {@link Fiber}s that have committed and rendered.
152
+ */
153
+ declare const getMutatedHostFibers: (fiber: Fiber) => Fiber[];
154
+ /**
155
+ * Returns the stack of {@link Fiber}s from the current fiber to the root fiber.
156
+ *
157
+ * @example
158
+ * ```ts
159
+ * [fiber, fiber.return, fiber.return.return, ...]
160
+ * ```
161
+ */
162
+ declare const getFiberStack: (fiber: Fiber) => Fiber[];
163
+ /**
164
+ * Returns `true` if the {@link Fiber} should be filtered out during reconciliation.
165
+ */
166
+ declare const shouldFilterFiber: (fiber: Fiber) => boolean;
167
+ /**
168
+ * Returns the nearest host {@link Fiber} to the current {@link Fiber}.
169
+ */
170
+ declare const getNearestHostFiber: (fiber: Fiber, ascending?: boolean) => Fiber | null;
171
+ /**
172
+ * Returns all host {@link Fiber}s in the tree that are associated with the current {@link Fiber}.
173
+ */
174
+ declare const getNearestHostFibers: (fiber: Fiber) => Fiber[];
175
+ /**
176
+ * Traverses up or down a {@link Fiber}, return `true` to stop and select a node.
177
+ */
178
+ declare const traverseFiber: (fiber: Fiber | null, selector: (node: Fiber) => boolean | void, ascending?: boolean) => Fiber | null;
179
+ /**
180
+ * Returns the timings of the {@link Fiber}.
181
+ *
182
+ * @example
183
+ * ```ts
184
+ * const { selfTime, totalTime } = getTimings(fiber);
185
+ * console.log(selfTime, totalTime);
186
+ * ```
187
+ */
188
+ declare const getTimings: (fiber?: Fiber | null | undefined) => {
189
+ selfTime: number;
190
+ totalTime: number;
191
+ };
192
+ /**
193
+ * Returns `true` if the {@link Fiber} uses React Compiler's memo cache.
194
+ */
195
+ declare const hasMemoCache: (fiber: Fiber) => boolean;
196
+ /**
197
+ * Returns the type (e.g. component definition) of the {@link Fiber}
198
+ */
199
+ declare const getType: (type: unknown) => React.ComponentType<unknown> | null;
200
+ /**
201
+ * Returns the display name of the {@link Fiber}.
202
+ */
203
+ declare const getDisplayName: (type: unknown) => string | null;
204
+ /**
205
+ * Returns the build type of the React renderer.
206
+ */
207
+ declare const detectReactBuildType: (renderer: ReactRenderer) => "development" | "production";
208
+ /**
209
+ * Returns `true` if bippy's instrumentation is active.
210
+ */
211
+ declare const isInstrumentationActive: () => boolean;
212
+ type RenderPhase = 'mount' | 'update' | 'unmount';
213
+ type RenderHandler = <S>(fiber: Fiber, phase: RenderPhase, state?: S) => unknown;
214
+ declare const fiberIdMap: WeakMap<Fiber, number>;
215
+ declare const setFiberId: (fiber: Fiber, id?: number) => void;
216
+ declare const getFiberId: (fiber: Fiber) => number;
217
+ declare const mountFiberRecursively: (onRender: RenderHandler, firstChild: Fiber, traverseSiblings: boolean) => void;
218
+ declare const updateFiberRecursively: (onRender: RenderHandler, nextFiber: Fiber, prevFiber: Fiber, parentFiber: Fiber | null) => void;
219
+ declare const unmountFiber: (onRender: RenderHandler, fiber: Fiber) => void;
220
+ declare const unmountFiberChildrenRecursively: (onRender: RenderHandler, fiber: Fiber) => void;
221
+ /**
222
+ * Creates a fiber visitor function. Must pass a fiber root and a render handler.
223
+ * @example
224
+ * traverseRenderedFibers(root, (fiber, phase) => {
225
+ * console.log(phase)
226
+ * })
227
+ */
228
+ declare const traverseRenderedFibers: (root: FiberRoot, onRender: RenderHandler) => void;
229
+ /**
230
+ * @deprecated use `traverseRenderedFibers` instead
231
+ */
232
+ declare const createFiberVisitor: ({ onRender, }: {
233
+ onRender: RenderHandler;
234
+ onError: (error: unknown) => unknown;
235
+ }) => (<S>(_rendererID: number, root: FiberRoot | Fiber, _state?: S) => void);
236
+ interface InstrumentationOptions {
237
+ onCommitFiberRoot?: (rendererID: number, root: FiberRoot, priority: void | number) => unknown;
238
+ onCommitFiberUnmount?: (rendererID: number, fiber: Fiber) => unknown;
239
+ onPostCommitFiberRoot?: (rendererID: number, root: FiberRoot) => unknown;
240
+ onActive?: () => unknown;
241
+ name?: string;
242
+ }
243
+ /**
244
+ * Instruments the DevTools hook.
245
+ * @example
246
+ * const hook = instrument({
247
+ * onActive() {
248
+ * console.log('initialized');
249
+ * },
250
+ * onCommitFiberRoot(rendererID, root) {
251
+ * console.log('fiberRoot', root.current)
252
+ * },
253
+ * });
254
+ */
255
+ declare const instrument: (options: InstrumentationOptions) => ReactDevToolsGlobalHook;
256
+ declare const getFiberFromHostInstance: <T>(hostInstance: T) => Fiber | null;
257
+ declare const INSTALL_ERROR: Error;
258
+ declare const secure: (options: InstrumentationOptions, secureOptions?: {
259
+ minReactMajorVersion?: number;
260
+ dangerouslyRunInProduction?: boolean;
261
+ onError?: (error?: unknown) => unknown;
262
+ installCheckTimeout?: number;
263
+ isProduction?: boolean;
264
+ }) => InstrumentationOptions;
265
+ /**
266
+ * a wrapper around the {@link instrument} function that sets the `onCommitFiberRoot` hook.
267
+ *
268
+ * @example
269
+ * onCommitFiberRoot((root) => {
270
+ * console.log(root.current);
271
+ * });
272
+ */
273
+ declare const onCommitFiberRoot: (handler: (root: FiberRoot) => void) => ReactDevToolsGlobalHook;
274
+
275
+ export { BIPPY_INSTRUMENTATION_STRING, CONCURRENT_MODE_NUMBER, CONCURRENT_MODE_SYMBOL_STRING, ClassComponentTag, ContextConsumerTag, type ContextDependency, DEPRECATED_ASYNC_MODE_SYMBOL_STRING, DehydratedSuspenseComponentTag, type Dependencies, ELEMENT_TYPE_SYMBOL_STRING, type Effect, type Fiber, ForwardRefTag, FragmentTag, FunctionComponentTag, HostComponentTag, HostHoistableTag, HostRootTag, HostSingletonTag, HostTextTag, INSTALL_ERROR, INSTALL_HOOK_SCRIPT_STRING, type InstrumentationOptions, LegacyHiddenComponentTag, MemoComponentTag, type MemoizedState, OffscreenComponentTag, type Props, type ReactDevToolsGlobalHook, type ReactRenderer, type RenderHandler, type RenderPhase, SimpleMemoComponentTag, SuspenseComponentTag, TRANSITIONAL_ELEMENT_TYPE_SYMBOL_STRING, createFiberVisitor, detectReactBuildType, didFiberCommit, didFiberRender, fiberIdMap, getDisplayName, getFiberFromHostInstance, getFiberId, getFiberStack, getMutatedHostFibers, getNearestHostFiber, getNearestHostFibers, getRDTHook, getTimings, getType, hasMemoCache, hasRDTHook, installRDTHook, instrument, isClientEnvironment, isCompositeFiber, isHostFiber, isInstrumentationActive, isReactRefresh, isRealReactDevtools, isValidElement, isValidFiber, mountFiberRecursively, onCommitFiberRoot, patchRDTHook, secure, setFiberId, shouldFilterFiber, traverseContexts, traverseFiber, traverseProps, traverseRenderedFibers, traverseState, unmountFiber, unmountFiberChildrenRecursively, updateFiberRecursively, version };