@eslint-react/core 1.24.0-next.0 → 1.24.0-next.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,18 +1,17 @@
1
1
  import * as AST from '@eslint-react/ast';
2
- import * as _eslint_react_eff from '@eslint-react/eff';
3
- import { _ } from '@eslint-react/eff';
2
+ import * as _eslint_react_shared from '@eslint-react/shared';
3
+ import { RuleContext } from '@eslint-react/shared';
4
4
  import { TSESTree } from '@typescript-eslint/types';
5
- import * as _eslint_react_types from '@eslint-react/types';
6
- import { RuleContext } from '@eslint-react/types';
5
+ import { _ } from '@eslint-react/eff';
7
6
  import { TSESTree as TSESTree$1 } from '@typescript-eslint/utils';
8
- import { CustomComponentNormalized } from '@eslint-react/shared';
7
+ import * as birecord from 'birecord';
9
8
  import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
10
9
  import { Scope } from '@typescript-eslint/scope-manager';
11
10
  import { SyntaxKind } from 'typescript';
12
11
 
13
12
  interface ERSemanticNode {
14
- _: string;
15
13
  id: _ | TSESTree.Identifier | TSESTree.Identifier[];
14
+ key: string;
16
15
  kind: string;
17
16
  name: _ | string;
18
17
  node: TSESTree.Node;
@@ -74,12 +73,16 @@ interface ERClassComponent extends ERSemanticNode {
74
73
  node: AST.TSESTreeClass;
75
74
  flag: ERClassComponentFlag;
76
75
  hint: ERComponentHint;
77
- methods: Array<TSESTree.MethodDefinition | TSESTree.PropertyDefinition>;
76
+ methods: AST.TSESTreeMethodOrProperty[];
78
77
  displayName: _ | TSESTree.Expression;
79
78
  }
80
79
  type ERComponent = ERClassComponent | ERFunctionComponent;
81
80
 
82
- declare function useComponentCollector(context: RuleContext, hint?: bigint): {
81
+ interface ComponentCollectorOptions {
82
+ collectDisplayName?: boolean;
83
+ collectHookCalls?: boolean;
84
+ }
85
+ declare function useComponentCollector(context: RuleContext, hint?: bigint, options?: ComponentCollectorOptions): {
83
86
  readonly ctx: {
84
87
  readonly getAllComponents: (node: TSESTree.Program) => Map<string, ERFunctionComponent>;
85
88
  readonly getCurrentEntries: () => {
@@ -96,6 +99,11 @@ declare function useComponentCollector(context: RuleContext, hint?: bigint): {
96
99
  } | undefined;
97
100
  };
98
101
  readonly listeners: {
102
+ readonly "ReturnStatement[type]": (node: TSESTree.ReturnStatement) => void;
103
+ readonly "CallExpression[type]:exit"?: (node: TSESTree.CallExpression) => void;
104
+ readonly "AssignmentExpression[type][operator='='][left.type='MemberExpression'][left.property.name='displayName']"?: (node: TSESTree.AssignmentExpression & {
105
+ left: TSESTree.MemberExpression;
106
+ }) => void;
99
107
  readonly ":function[type]": (node: AST.TSESTreeFunction) => void;
100
108
  readonly ":function[type]:exit": () => {
101
109
  key: string;
@@ -104,11 +112,6 @@ declare function useComponentCollector(context: RuleContext, hint?: bigint): {
104
112
  isComponent: boolean;
105
113
  } | undefined;
106
114
  readonly "ArrowFunctionExpression[type][body.type!='BlockStatement']": () => void;
107
- readonly "AssignmentExpression[type][operator='='][left.type='MemberExpression'][left.property.name='displayName']": (node: TSESTree.AssignmentExpression & {
108
- left: TSESTree.MemberExpression;
109
- }) => void;
110
- readonly "CallExpression[type]:exit": (node: TSESTree.CallExpression) => void;
111
- readonly "ReturnStatement[type]": (node: TSESTree.ReturnStatement) => void;
112
115
  };
113
116
  };
114
117
 
@@ -126,14 +129,14 @@ declare function getFunctionComponentIdentifier(node: AST.TSESTreeFunction, cont
126
129
 
127
130
  type ERComponentKind = "classComponent" | "functionComponent";
128
131
 
129
- type EREffectMethodKind = "useEffect" | "useInsertionEffect" | "useLayoutEffect";
130
- type ERLifecycleMethodKind = "componentDidMount" | "componentWillUnmount";
131
-
132
- declare const RE_COMPONENT_NAME: RegExp;
133
- declare function getComponentNameFromIdentifier(node: TSESTree.Identifier | TSESTree.Identifier[]): string;
134
- declare function isComponentName(name: string): boolean;
135
-
136
- declare function isRenderMethodLike(node: TSESTree$1.Node): node is TSESTree$1.MethodDefinition | TSESTree$1.PropertyDefinition;
132
+ declare function isComponentDidMount(node: TSESTree.Node): node is AST.TSESTreeMethodOrProperty;
133
+ declare function isComponentWillUnmount(node: TSESTree.Node): node is AST.TSESTreeMethodOrProperty;
134
+ declare function isComponentDidCatch(node: TSESTree.Node): node is AST.TSESTreeMethodOrProperty;
135
+ declare function isGetDerivedStateFromError(node: TSESTree.Node): node is AST.TSESTreeMethodOrProperty;
136
+ declare function isGetDerivedStateFromProps(node: TSESTree.Node): node is AST.TSESTreeMethodOrProperty;
137
+ declare function isFunctionOfComponentDidMount(node: TSESTree.Node): boolean;
138
+ declare function isFunctionOfComponentWillUnmount(node: TSESTree.Node): boolean;
139
+ declare function isRenderMethodLike(node: TSESTree.Node): node is AST.TSESTreeMethodOrProperty;
137
140
  declare function isFunctionOfRenderMethod(node: AST.TSESTreeFunction): boolean;
138
141
  /**
139
142
  * Check whether given node is declared inside class component's render block
@@ -150,7 +153,80 @@ declare function isFunctionOfRenderMethod(node: AST.TSESTreeFunction): boolean;
150
153
  * @param node The AST node being checked
151
154
  * @returns `true` if node is inside class component's render block, `false` if not
152
155
  */
153
- declare function isInsideRenderMethod(node: TSESTree$1.Node): boolean;
156
+ declare function isInsideRenderMethod(node: TSESTree.Node): boolean;
157
+
158
+ type EREffectMethodKind = "useEffect" | "useInsertionEffect" | "useLayoutEffect";
159
+ type ERLifecycleMethodKind = "componentDidMount" | "componentWillUnmount";
160
+
161
+ declare const RE_COMPONENT_NAME: RegExp;
162
+ declare function getComponentNameFromIdentifier(node: TSESTree.Identifier | TSESTree.Identifier[] | _): string | undefined;
163
+ declare function isComponentName(name: string): boolean;
164
+ declare function hasNoneOrValidComponentName(node: AST.TSESTreeFunction, context: RuleContext): boolean;
165
+
166
+ type EREffectPhaseKind = "cleanup" | "setup";
167
+ type ERLifecyclePhaseKind = "mount" | "unmount";
168
+ type ERPhaseKind = EREffectPhaseKind | ERLifecyclePhaseKind;
169
+ declare const ERPhaseRelevance: birecord.BiRecord<{
170
+ readonly mount: "unmount";
171
+ readonly setup: "cleanup";
172
+ }>;
173
+ declare const isInversePhase: {
174
+ (a: ERPhaseKind): (b: ERPhaseKind) => boolean;
175
+ (a: ERPhaseKind, b: ERPhaseKind): boolean;
176
+ };
177
+
178
+ /**
179
+ * Unsafe check whether given node is a render function
180
+ * ```jsx
181
+ * const renderRow = () => <div />
182
+ * ` ^^^^^^^^^^^^`
183
+ * _ = <Component renderRow={() => <div />} />
184
+ * ` ^^^^^^^^^^^^^ `
185
+ * ```
186
+ * @param node The AST node to check
187
+ * @param context The rule context
188
+ * @returns `true` if node is a render function, `false` if not
189
+ */
190
+ declare function isRenderFunctionLoose(node: AST.TSESTreeFunction, context: RuleContext): boolean;
191
+ /**
192
+ * Unsafe check whether given JSXAttribute is a render prop
193
+ * ```jsx
194
+ * _ = <Component renderRow={() => <div />} />
195
+ * ` ^^^^^^^^^^^^^^^^^^^^^^^^^ `
196
+ * ```
197
+ * @param node The AST node to check
198
+ * @param context The rule context
199
+ * @returns `true` if node is a render prop, `false` if not
200
+ */
201
+ declare function isRenderPropLoose(node: TSESTree.JSXAttribute, context: RuleContext): boolean;
202
+ /**
203
+ * Unsafe check whether given node is declared directly inside a render property
204
+ * ```jsx
205
+ * const rows = { render: () => <div /> }
206
+ * ` ^^^^^^^^^^^^^ `
207
+ * _ = <Component rows={ [{ render: () => <div /> }] } />
208
+ * ` ^^^^^^^^^^^^^ `
209
+ * ```
210
+ * @internal
211
+ * @param node The AST node to check
212
+ * @returns `true` if component is declared inside a render property, `false` if not
213
+ */
214
+ declare function isDirectValueOfRenderPropertyLoose(node: TSESTree.Node): boolean;
215
+ /**
216
+ * Unsafe check whether given node is declared inside a render prop
217
+ * ```jsx
218
+ * _ = <Component renderRow={"node"} />
219
+ * ` ^^^^^^ `
220
+ * _ = <Component rows={ [{ render: "node" }] } />
221
+ * ` ^^^^^^ `
222
+ * ```
223
+ * @param node The AST node to check
224
+ * @returns `true` if component is declared inside a render prop, `false` if not
225
+ */
226
+ declare function isDeclaredInRenderPropLoose(node: TSESTree.Node): boolean;
227
+
228
+ type ERStateKind = "actionState" | "state";
229
+ declare function isThisSetState(node: TSESTree.CallExpression): boolean;
154
230
 
155
231
  /**
156
232
  * Check if a node is a React class component
@@ -165,14 +241,10 @@ declare function isClassComponent(node: TSESTree.Node): node is AST.TSESTreeClas
165
241
  */
166
242
  declare function isPureComponent(node: TSESTree.Node): boolean;
167
243
 
168
- declare function hasNoneOrValidComponentName(node: AST.TSESTreeFunction, context: RuleContext): boolean;
169
-
170
244
  type EREffectKind = "effect" | "insertionEffect" | "layoutEffect";
171
245
 
172
- declare function isSetupFunction(node: TSESTree.Node | _): boolean | undefined;
173
- declare function isCleanupFunction(node: TSESTree.Node): boolean | undefined;
174
-
175
- declare function getElementNameAndRepresentName(node: TSESTree.JSXOpeningElement, context: RuleContext, polymorphicPropName?: string, additionalComponents?: CustomComponentNormalized[]): [string, string];
246
+ declare function isFunctionOfUseEffectSetup(node: TSESTree.Node | _): boolean | undefined;
247
+ declare function isFunctionOfUseEffectCleanup(node: TSESTree.Node): boolean | undefined;
176
248
 
177
249
  /**
178
250
  * Determines whether inside `createElement`'s props.
@@ -242,85 +314,11 @@ declare const isUseStateCall: (node: TSESTree.CallExpression | undefined, contex
242
314
  declare const isUseSyncExternalStoreCall: (node: TSESTree.CallExpression | undefined, context: Readonly<_typescript_eslint_utils_ts_eslint.RuleContext<string, readonly unknown[]>>) => boolean;
243
315
  declare const isUseTransitionCall: (node: TSESTree.CallExpression | undefined, context: Readonly<_typescript_eslint_utils_ts_eslint.RuleContext<string, readonly unknown[]>>) => boolean;
244
316
 
245
- declare function isComponentDidMount(node: TSESTree.Node): node is TSESTree.MethodDefinition | TSESTree.PropertyDefinition;
246
- declare function isComponentWillUnmount(node: TSESTree.Node): node is TSESTree.MethodDefinition | TSESTree.PropertyDefinition;
247
- declare function isComponentDidMountFunction(node: TSESTree.Node): boolean;
248
- declare function isComponentWillUnmountFunction(node: TSESTree.Node): boolean;
249
-
250
- declare const ERPhaseRelevance: _eslint_react_eff.BiRecord<{
251
- readonly mount: "unmount";
252
- readonly setup: "cleanup";
253
- }>;
254
-
255
- type EREffectPhaseKind = "cleanup" | "setup";
256
- type ERLifecyclePhaseKind = "mount" | "unmount";
257
- type ERPhaseKind = EREffectPhaseKind | ERLifecyclePhaseKind;
258
-
259
- declare const isInversePhase: {
260
- (a: ERPhaseKind): (b: ERPhaseKind) => boolean;
261
- (a: ERPhaseKind, b: ERPhaseKind): boolean;
262
- };
263
-
264
- /**
265
- * Unsafe check whether given node is declared directly inside a render property
266
- * ```jsx
267
- * const rows = { render: () => <div /> }
268
- * ` ^^^^^^^^^^^^^ `
269
- * _ = <Component rows={ [{ render: () => <div /> }] } />
270
- * ` ^^^^^^^^^^^^^ `
271
- * ```
272
- * @internal
273
- * @param node The AST node to check
274
- * @returns `true` if component is declared inside a render property, `false` if not
275
- */
276
- declare function isDirectValueOfRenderPropertyLoose(node: TSESTree.Node): boolean;
277
- /**
278
- * Unsafe check whether given node is declared inside a render prop
279
- * ```jsx
280
- * _ = <Component renderRow={"node"} />
281
- * ` ^^^^^^ `
282
- * _ = <Component rows={ [{ render: "node" }] } />
283
- * ` ^^^^^^ `
284
- * ```
285
- * @param node The AST node to check
286
- * @returns `true` if component is declared inside a render prop, `false` if not
287
- */
288
- declare function isDeclaredInRenderPropLoose(node: TSESTree.Node): boolean;
289
-
290
- /**
291
- * Unsafe check whether given node is a render function
292
- * ```jsx
293
- * const renderRow = () => <div />
294
- * ` ^^^^^^^^^^^^`
295
- * _ = <Component renderRow={() => <div />} />
296
- * ` ^^^^^^^^^^^^^ `
297
- * ```
298
- * @param node The AST node to check
299
- * @param context The rule context
300
- * @returns `true` if node is a render function, `false` if not
301
- */
302
- declare function isRenderFunctionLoose(node: AST.TSESTreeFunction, context: RuleContext): boolean;
303
- /**
304
- * Unsafe check whether given JSXAttribute is a render prop
305
- * ```jsx
306
- * _ = <Component renderRow={() => <div />} />
307
- * ` ^^^^^^^^^^^^^^^^^^^^^^^^^ `
308
- * ```
309
- * @param node The AST node to check
310
- * @param context The rule context
311
- * @returns `true` if node is a render prop, `false` if not
312
- */
313
- declare function isRenderPropLoose(node: TSESTree.JSXAttribute, context: RuleContext): boolean;
314
-
315
317
  interface ERSemanticEntry {
316
318
  node: TSESTree.Node;
317
319
  phase: ERPhaseKind;
318
320
  }
319
321
 
320
- declare function isThisSetState(node: TSESTree.CallExpression): boolean;
321
-
322
- type ERStateKind = "actionState" | "state";
323
-
324
322
  declare const getId: () => string;
325
323
 
326
324
  /**
@@ -2499,80 +2497,80 @@ declare function isReactAPIWithName(name: string): ReturnType<typeof isFromReact
2499
2497
  declare function isReactAPIWithName(name: string, member: string): ReturnType<typeof isFromReactMember>;
2500
2498
  declare function isReactAPICallWithName(name: string): ReturnType<typeof isCallFromReact>;
2501
2499
  declare function isReactAPICallWithName(name: string, member: string): ReturnType<typeof isCallFromReactMember>;
2502
- declare const isChildrenCount: (node: MemberExpression, context: _eslint_react_types.RuleContext) => boolean;
2503
- declare const isChildrenForEach: (node: MemberExpression, context: _eslint_react_types.RuleContext) => boolean;
2504
- declare const isChildrenMap: (node: MemberExpression, context: _eslint_react_types.RuleContext) => boolean;
2505
- declare const isChildrenOnly: (node: MemberExpression, context: _eslint_react_types.RuleContext) => boolean;
2506
- declare const isChildrenToArray: (node: MemberExpression, context: _eslint_react_types.RuleContext) => boolean;
2507
- declare const isCloneElement: (node: Identifier | MemberExpression, context: _eslint_react_types.RuleContext) => boolean;
2508
- declare const isCreateContext: (node: Identifier | MemberExpression, context: _eslint_react_types.RuleContext) => boolean;
2509
- declare const isCreateElement: (node: Identifier | MemberExpression, context: _eslint_react_types.RuleContext) => boolean;
2510
- declare const isCreateRef: (node: Identifier | MemberExpression, context: _eslint_react_types.RuleContext) => boolean;
2511
- declare const isForwardRef: (node: Identifier | MemberExpression, context: _eslint_react_types.RuleContext) => boolean;
2512
- declare const isMemo: (node: Identifier | MemberExpression, context: _eslint_react_types.RuleContext) => boolean;
2500
+ declare const isChildrenCount: (node: MemberExpression, context: _eslint_react_shared.RuleContext) => boolean;
2501
+ declare const isChildrenForEach: (node: MemberExpression, context: _eslint_react_shared.RuleContext) => boolean;
2502
+ declare const isChildrenMap: (node: MemberExpression, context: _eslint_react_shared.RuleContext) => boolean;
2503
+ declare const isChildrenOnly: (node: MemberExpression, context: _eslint_react_shared.RuleContext) => boolean;
2504
+ declare const isChildrenToArray: (node: MemberExpression, context: _eslint_react_shared.RuleContext) => boolean;
2505
+ declare const isCloneElement: (node: Identifier | MemberExpression, context: _eslint_react_shared.RuleContext) => boolean;
2506
+ declare const isCreateContext: (node: Identifier | MemberExpression, context: _eslint_react_shared.RuleContext) => boolean;
2507
+ declare const isCreateElement: (node: Identifier | MemberExpression, context: _eslint_react_shared.RuleContext) => boolean;
2508
+ declare const isCreateRef: (node: Identifier | MemberExpression, context: _eslint_react_shared.RuleContext) => boolean;
2509
+ declare const isForwardRef: (node: Identifier | MemberExpression, context: _eslint_react_shared.RuleContext) => boolean;
2510
+ declare const isMemo: (node: Identifier | MemberExpression, context: _eslint_react_shared.RuleContext) => boolean;
2513
2511
  declare const isChildrenCountCall: {
2514
- (context: _eslint_react_types.RuleContext): (node: Node) => node is CallExpression & {
2512
+ (context: _eslint_react_shared.RuleContext): (node: Node) => node is CallExpression & {
2515
2513
  callee: MemberExpression;
2516
2514
  };
2517
- (node: Node, context: _eslint_react_types.RuleContext): node is CallExpression & {
2515
+ (node: Node, context: _eslint_react_shared.RuleContext): node is CallExpression & {
2518
2516
  callee: MemberExpression;
2519
2517
  };
2520
2518
  };
2521
2519
  declare const isChildrenForEachCall: {
2522
- (context: _eslint_react_types.RuleContext): (node: Node) => node is CallExpression & {
2520
+ (context: _eslint_react_shared.RuleContext): (node: Node) => node is CallExpression & {
2523
2521
  callee: MemberExpression;
2524
2522
  };
2525
- (node: Node, context: _eslint_react_types.RuleContext): node is CallExpression & {
2523
+ (node: Node, context: _eslint_react_shared.RuleContext): node is CallExpression & {
2526
2524
  callee: MemberExpression;
2527
2525
  };
2528
2526
  };
2529
2527
  declare const isChildrenMapCall: {
2530
- (context: _eslint_react_types.RuleContext): (node: Node) => node is CallExpression & {
2528
+ (context: _eslint_react_shared.RuleContext): (node: Node) => node is CallExpression & {
2531
2529
  callee: MemberExpression;
2532
2530
  };
2533
- (node: Node, context: _eslint_react_types.RuleContext): node is CallExpression & {
2531
+ (node: Node, context: _eslint_react_shared.RuleContext): node is CallExpression & {
2534
2532
  callee: MemberExpression;
2535
2533
  };
2536
2534
  };
2537
2535
  declare const isChildrenOnlyCall: {
2538
- (context: _eslint_react_types.RuleContext): (node: Node) => node is CallExpression & {
2536
+ (context: _eslint_react_shared.RuleContext): (node: Node) => node is CallExpression & {
2539
2537
  callee: MemberExpression;
2540
2538
  };
2541
- (node: Node, context: _eslint_react_types.RuleContext): node is CallExpression & {
2539
+ (node: Node, context: _eslint_react_shared.RuleContext): node is CallExpression & {
2542
2540
  callee: MemberExpression;
2543
2541
  };
2544
2542
  };
2545
2543
  declare const isChildrenToArrayCall: {
2546
- (context: _eslint_react_types.RuleContext): (node: Node) => node is CallExpression & {
2544
+ (context: _eslint_react_shared.RuleContext): (node: Node) => node is CallExpression & {
2547
2545
  callee: MemberExpression;
2548
2546
  };
2549
- (node: Node, context: _eslint_react_types.RuleContext): node is CallExpression & {
2547
+ (node: Node, context: _eslint_react_shared.RuleContext): node is CallExpression & {
2550
2548
  callee: MemberExpression;
2551
2549
  };
2552
2550
  };
2553
2551
  declare const isCloneElementCall: {
2554
- (context: _eslint_react_types.RuleContext): (node: Node) => node is CallExpression;
2555
- (node: Node, context: _eslint_react_types.RuleContext): node is CallExpression;
2552
+ (context: _eslint_react_shared.RuleContext): (node: Node) => node is CallExpression;
2553
+ (node: Node, context: _eslint_react_shared.RuleContext): node is CallExpression;
2556
2554
  };
2557
2555
  declare const isCreateContextCall: {
2558
- (context: _eslint_react_types.RuleContext): (node: Node) => node is CallExpression;
2559
- (node: Node, context: _eslint_react_types.RuleContext): node is CallExpression;
2556
+ (context: _eslint_react_shared.RuleContext): (node: Node) => node is CallExpression;
2557
+ (node: Node, context: _eslint_react_shared.RuleContext): node is CallExpression;
2560
2558
  };
2561
2559
  declare const isCreateElementCall: {
2562
- (context: _eslint_react_types.RuleContext): (node: Node) => node is CallExpression;
2563
- (node: Node, context: _eslint_react_types.RuleContext): node is CallExpression;
2560
+ (context: _eslint_react_shared.RuleContext): (node: Node) => node is CallExpression;
2561
+ (node: Node, context: _eslint_react_shared.RuleContext): node is CallExpression;
2564
2562
  };
2565
2563
  declare const isCreateRefCall: {
2566
- (context: _eslint_react_types.RuleContext): (node: Node) => node is CallExpression;
2567
- (node: Node, context: _eslint_react_types.RuleContext): node is CallExpression;
2564
+ (context: _eslint_react_shared.RuleContext): (node: Node) => node is CallExpression;
2565
+ (node: Node, context: _eslint_react_shared.RuleContext): node is CallExpression;
2568
2566
  };
2569
2567
  declare const isForwardRefCall: {
2570
- (context: _eslint_react_types.RuleContext): (node: Node) => node is CallExpression;
2571
- (node: Node, context: _eslint_react_types.RuleContext): node is CallExpression;
2568
+ (context: _eslint_react_shared.RuleContext): (node: Node) => node is CallExpression;
2569
+ (node: Node, context: _eslint_react_shared.RuleContext): node is CallExpression;
2572
2570
  };
2573
2571
  declare const isMemoCall: {
2574
- (context: _eslint_react_types.RuleContext): (node: Node) => node is CallExpression;
2575
- (node: Node, context: _eslint_react_types.RuleContext): node is CallExpression;
2572
+ (context: _eslint_react_shared.RuleContext): (node: Node) => node is CallExpression;
2573
+ (node: Node, context: _eslint_react_shared.RuleContext): node is CallExpression;
2576
2574
  };
2577
2575
 
2578
- export { DEFAULT_COMPONENT_HINT, type ERClassComponent, ERClassComponentFlag, type ERComponent, ERComponentHint, type ERComponentKind, type EREffectKind, type EREffectMethodKind, type EREffectPhaseKind, type ERFunctionComponent, ERFunctionComponentFlag, type ERHook, type ERHookKind, type ERLifecycleMethodKind, type ERLifecyclePhaseKind, type ERPhaseKind, ERPhaseRelevance, type ERSemanticEntry, type ERSemanticNode, type ERStateKind, RE_COMPONENT_NAME, RE_HOOK_NAME, getComponentNameFromIdentifier, getElementNameAndRepresentName, getFunctionComponentIdentifier, getId, hasNoneOrValidComponentName, isCallFromReact, isCallFromReactMember, isChildrenCount, isChildrenCountCall, isChildrenForEach, isChildrenForEachCall, isChildrenMap, isChildrenMapCall, isChildrenOfCreateElement, isChildrenOnly, isChildrenOnlyCall, isChildrenToArray, isChildrenToArrayCall, isClassComponent, isCleanupFunction, isCloneElement, isCloneElementCall, isComponentDidMount, isComponentDidMountFunction, isComponentName, isComponentWillUnmount, isComponentWillUnmountFunction, isCreateContext, isCreateContextCall, isCreateElement, isCreateElementCall, isCreateRef, isCreateRefCall, isDeclaredInRenderPropLoose, isDirectValueOfRenderPropertyLoose, isForwardRef, isForwardRefCall, isFromReact, isFromReactMember, isFunctionOfRenderMethod, isInitializedFromReact, isInsideCreateElementProps, isInsideReactHook, isInsideRenderMethod, isInversePhase, isMemo, isMemoCall, isPureComponent, isReactAPICallWithName, isReactAPIWithName, isReactHook, isReactHookCall, isReactHookCallWithName, isReactHookCallWithNameAlias, isReactHookCallWithNameLoose, isReactHookName, isRenderFunctionLoose, isRenderMethodLike, isRenderPropLoose, isSetupFunction, isThisSetState, isUseCallbackCall, isUseContextCall, isUseDebugValueCall, isUseDeferredValueCall, isUseEffectCall, isUseEffectCallLoose, isUseIdCall, isUseImperativeHandleCall, isUseInsertionEffectCall, isUseLayoutEffectCall, isUseMemoCall, isUseReducerCall, isUseRefCall, isUseStateCall, isUseSyncExternalStoreCall, isUseTransitionCall, useComponentCollector, useComponentCollectorLegacy, useHookCollector };
2576
+ export { type ComponentCollectorOptions, DEFAULT_COMPONENT_HINT, type ERClassComponent, ERClassComponentFlag, type ERComponent, ERComponentHint, type ERComponentKind, type EREffectKind, type EREffectMethodKind, type EREffectPhaseKind, type ERFunctionComponent, ERFunctionComponentFlag, type ERHook, type ERHookKind, type ERLifecycleMethodKind, type ERLifecyclePhaseKind, type ERPhaseKind, ERPhaseRelevance, type ERSemanticEntry, type ERSemanticNode, type ERStateKind, RE_COMPONENT_NAME, RE_HOOK_NAME, getComponentNameFromIdentifier, getFunctionComponentIdentifier, getId, hasNoneOrValidComponentName, isCallFromReact, isCallFromReactMember, isChildrenCount, isChildrenCountCall, isChildrenForEach, isChildrenForEachCall, isChildrenMap, isChildrenMapCall, isChildrenOfCreateElement, isChildrenOnly, isChildrenOnlyCall, isChildrenToArray, isChildrenToArrayCall, isClassComponent, isCloneElement, isCloneElementCall, isComponentDidCatch, isComponentDidMount, isComponentName, isComponentWillUnmount, isCreateContext, isCreateContextCall, isCreateElement, isCreateElementCall, isCreateRef, isCreateRefCall, isDeclaredInRenderPropLoose, isDirectValueOfRenderPropertyLoose, isForwardRef, isForwardRefCall, isFromReact, isFromReactMember, isFunctionOfComponentDidMount, isFunctionOfComponentWillUnmount, isFunctionOfRenderMethod, isFunctionOfUseEffectCleanup, isFunctionOfUseEffectSetup, isGetDerivedStateFromError, isGetDerivedStateFromProps, isInitializedFromReact, isInsideCreateElementProps, isInsideReactHook, isInsideRenderMethod, isInversePhase, isMemo, isMemoCall, isPureComponent, isReactAPICallWithName, isReactAPIWithName, isReactHook, isReactHookCall, isReactHookCallWithName, isReactHookCallWithNameAlias, isReactHookCallWithNameLoose, isReactHookName, isRenderFunctionLoose, isRenderMethodLike, isRenderPropLoose, isThisSetState, isUseCallbackCall, isUseContextCall, isUseDebugValueCall, isUseDeferredValueCall, isUseEffectCall, isUseEffectCallLoose, isUseIdCall, isUseImperativeHandleCall, isUseInsertionEffectCall, isUseLayoutEffectCall, isUseMemoCall, isUseReducerCall, isUseRefCall, isUseStateCall, isUseSyncExternalStoreCall, isUseTransitionCall, useComponentCollector, useComponentCollectorLegacy, useHookCollector };