@saasmakers/eslint 1.0.17 → 1.0.19

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.ts CHANGED
@@ -1,2412 +1,7 @@
1
1
  import * as ts from 'typescript';
2
- import { SyntaxKind, Program as Program$2 } from 'typescript';
2
+ import { SyntaxKind, Program as Program$1 } from 'typescript';
3
3
  import * as eslint from 'eslint';
4
4
 
5
- /**********************************************
6
- * DO NOT MODIFY THIS FILE MANUALLY *
7
- * *
8
- * THIS FILE HAS BEEN COPIED FROM ast-spec. *
9
- * ANY CHANGES WILL BE LOST ON THE NEXT BUILD *
10
- * *
11
- * MAKE CHANGES TO ast-spec AND THEN RUN *
12
- * pnpm run build *
13
- **********************************************/
14
-
15
- declare type Accessibility$1 = 'private' | 'protected' | 'public';
16
- declare type AccessorProperty$1 = AccessorPropertyComputedName$1 | AccessorPropertyNonComputedName$1;
17
- declare interface AccessorPropertyComputedName$1 extends PropertyDefinitionComputedNameBase$1 {
18
- type: AST_NODE_TYPES$1.AccessorProperty;
19
- }
20
- declare interface AccessorPropertyNonComputedName$1 extends PropertyDefinitionNonComputedNameBase$1 {
21
- type: AST_NODE_TYPES$1.AccessorProperty;
22
- }
23
- declare interface ArrayExpression$1 extends BaseNode$1 {
24
- type: AST_NODE_TYPES$1.ArrayExpression;
25
- /**
26
- * an element will be `null` in the case of a sparse array: `[1, ,3]`
27
- */
28
- elements: (Expression$1 | SpreadElement$1 | null)[];
29
- }
30
- declare interface ArrayPattern$1 extends BaseNode$1 {
31
- type: AST_NODE_TYPES$1.ArrayPattern;
32
- decorators: Decorator$1[];
33
- elements: (DestructuringPattern$1 | null)[];
34
- optional: boolean;
35
- typeAnnotation: TSTypeAnnotation$1 | undefined;
36
- }
37
- declare interface ArrowFunctionExpression$1 extends BaseNode$1 {
38
- type: AST_NODE_TYPES$1.ArrowFunctionExpression;
39
- async: boolean;
40
- body: BlockStatement$1 | Expression$1;
41
- expression: boolean;
42
- generator: false;
43
- id: null;
44
- params: Parameter$1[];
45
- returnType: TSTypeAnnotation$1 | undefined;
46
- typeParameters: TSTypeParameterDeclaration$1 | undefined;
47
- }
48
- declare interface AssignmentExpression$1 extends BaseNode$1 {
49
- type: AST_NODE_TYPES$1.AssignmentExpression;
50
- left: Expression$1;
51
- operator: ValueOf$1<AssignmentOperatorToText$1>;
52
- right: Expression$1;
53
- }
54
- declare interface AssignmentOperatorToText$1 {
55
- [SyntaxKind.AmpersandAmpersandEqualsToken]: '&&=';
56
- [SyntaxKind.AmpersandEqualsToken]: '&=';
57
- [SyntaxKind.AsteriskAsteriskEqualsToken]: '**=';
58
- [SyntaxKind.AsteriskEqualsToken]: '*=';
59
- [SyntaxKind.BarBarEqualsToken]: '||=';
60
- [SyntaxKind.BarEqualsToken]: '|=';
61
- [SyntaxKind.CaretEqualsToken]: '^=';
62
- [SyntaxKind.EqualsToken]: '=';
63
- [SyntaxKind.GreaterThanGreaterThanEqualsToken]: '>>=';
64
- [SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken]: '>>>=';
65
- [SyntaxKind.LessThanLessThanEqualsToken]: '<<=';
66
- [SyntaxKind.MinusEqualsToken]: '-=';
67
- [SyntaxKind.PercentEqualsToken]: '%=';
68
- [SyntaxKind.PlusEqualsToken]: '+=';
69
- [SyntaxKind.QuestionQuestionEqualsToken]: '??=';
70
- [SyntaxKind.SlashEqualsToken]: '/=';
71
- }
72
- declare interface AssignmentPattern$1 extends BaseNode$1 {
73
- type: AST_NODE_TYPES$1.AssignmentPattern;
74
- decorators: Decorator$1[];
75
- left: BindingName$1;
76
- optional: boolean;
77
- right: Expression$1;
78
- typeAnnotation: TSTypeAnnotation$1 | undefined;
79
- }
80
- declare enum AST_NODE_TYPES$1 {
81
- AccessorProperty = "AccessorProperty",
82
- ArrayExpression = "ArrayExpression",
83
- ArrayPattern = "ArrayPattern",
84
- ArrowFunctionExpression = "ArrowFunctionExpression",
85
- AssignmentExpression = "AssignmentExpression",
86
- AssignmentPattern = "AssignmentPattern",
87
- AwaitExpression = "AwaitExpression",
88
- BinaryExpression = "BinaryExpression",
89
- BlockStatement = "BlockStatement",
90
- BreakStatement = "BreakStatement",
91
- CallExpression = "CallExpression",
92
- CatchClause = "CatchClause",
93
- ChainExpression = "ChainExpression",
94
- ClassBody = "ClassBody",
95
- ClassDeclaration = "ClassDeclaration",
96
- ClassExpression = "ClassExpression",
97
- ConditionalExpression = "ConditionalExpression",
98
- ContinueStatement = "ContinueStatement",
99
- DebuggerStatement = "DebuggerStatement",
100
- Decorator = "Decorator",
101
- DoWhileStatement = "DoWhileStatement",
102
- EmptyStatement = "EmptyStatement",
103
- ExportAllDeclaration = "ExportAllDeclaration",
104
- ExportDefaultDeclaration = "ExportDefaultDeclaration",
105
- ExportNamedDeclaration = "ExportNamedDeclaration",
106
- ExportSpecifier = "ExportSpecifier",
107
- ExpressionStatement = "ExpressionStatement",
108
- ForInStatement = "ForInStatement",
109
- ForOfStatement = "ForOfStatement",
110
- ForStatement = "ForStatement",
111
- FunctionDeclaration = "FunctionDeclaration",
112
- FunctionExpression = "FunctionExpression",
113
- Identifier = "Identifier",
114
- IfStatement = "IfStatement",
115
- ImportAttribute = "ImportAttribute",
116
- ImportDeclaration = "ImportDeclaration",
117
- ImportDefaultSpecifier = "ImportDefaultSpecifier",
118
- ImportExpression = "ImportExpression",
119
- ImportNamespaceSpecifier = "ImportNamespaceSpecifier",
120
- ImportSpecifier = "ImportSpecifier",
121
- JSXAttribute = "JSXAttribute",
122
- JSXClosingElement = "JSXClosingElement",
123
- JSXClosingFragment = "JSXClosingFragment",
124
- JSXElement = "JSXElement",
125
- JSXEmptyExpression = "JSXEmptyExpression",
126
- JSXExpressionContainer = "JSXExpressionContainer",
127
- JSXFragment = "JSXFragment",
128
- JSXIdentifier = "JSXIdentifier",
129
- JSXMemberExpression = "JSXMemberExpression",
130
- JSXNamespacedName = "JSXNamespacedName",
131
- JSXOpeningElement = "JSXOpeningElement",
132
- JSXOpeningFragment = "JSXOpeningFragment",
133
- JSXSpreadAttribute = "JSXSpreadAttribute",
134
- JSXSpreadChild = "JSXSpreadChild",
135
- JSXText = "JSXText",
136
- LabeledStatement = "LabeledStatement",
137
- Literal = "Literal",
138
- LogicalExpression = "LogicalExpression",
139
- MemberExpression = "MemberExpression",
140
- MetaProperty = "MetaProperty",
141
- MethodDefinition = "MethodDefinition",
142
- NewExpression = "NewExpression",
143
- ObjectExpression = "ObjectExpression",
144
- ObjectPattern = "ObjectPattern",
145
- PrivateIdentifier = "PrivateIdentifier",
146
- Program = "Program",
147
- Property = "Property",
148
- PropertyDefinition = "PropertyDefinition",
149
- RestElement = "RestElement",
150
- ReturnStatement = "ReturnStatement",
151
- SequenceExpression = "SequenceExpression",
152
- SpreadElement = "SpreadElement",
153
- StaticBlock = "StaticBlock",
154
- Super = "Super",
155
- SwitchCase = "SwitchCase",
156
- SwitchStatement = "SwitchStatement",
157
- TaggedTemplateExpression = "TaggedTemplateExpression",
158
- TemplateElement = "TemplateElement",
159
- TemplateLiteral = "TemplateLiteral",
160
- ThisExpression = "ThisExpression",
161
- ThrowStatement = "ThrowStatement",
162
- TryStatement = "TryStatement",
163
- UnaryExpression = "UnaryExpression",
164
- UpdateExpression = "UpdateExpression",
165
- VariableDeclaration = "VariableDeclaration",
166
- VariableDeclarator = "VariableDeclarator",
167
- WhileStatement = "WhileStatement",
168
- WithStatement = "WithStatement",
169
- YieldExpression = "YieldExpression",
170
- TSAbstractAccessorProperty = "TSAbstractAccessorProperty",
171
- TSAbstractKeyword = "TSAbstractKeyword",
172
- TSAbstractMethodDefinition = "TSAbstractMethodDefinition",
173
- TSAbstractPropertyDefinition = "TSAbstractPropertyDefinition",
174
- TSAnyKeyword = "TSAnyKeyword",
175
- TSArrayType = "TSArrayType",
176
- TSAsExpression = "TSAsExpression",
177
- TSAsyncKeyword = "TSAsyncKeyword",
178
- TSBigIntKeyword = "TSBigIntKeyword",
179
- TSBooleanKeyword = "TSBooleanKeyword",
180
- TSCallSignatureDeclaration = "TSCallSignatureDeclaration",
181
- TSClassImplements = "TSClassImplements",
182
- TSConditionalType = "TSConditionalType",
183
- TSConstructorType = "TSConstructorType",
184
- TSConstructSignatureDeclaration = "TSConstructSignatureDeclaration",
185
- TSDeclareFunction = "TSDeclareFunction",
186
- TSDeclareKeyword = "TSDeclareKeyword",
187
- TSEmptyBodyFunctionExpression = "TSEmptyBodyFunctionExpression",
188
- TSEnumBody = "TSEnumBody",
189
- TSEnumDeclaration = "TSEnumDeclaration",
190
- TSEnumMember = "TSEnumMember",
191
- TSExportAssignment = "TSExportAssignment",
192
- TSExportKeyword = "TSExportKeyword",
193
- TSExternalModuleReference = "TSExternalModuleReference",
194
- TSFunctionType = "TSFunctionType",
195
- TSImportEqualsDeclaration = "TSImportEqualsDeclaration",
196
- TSImportType = "TSImportType",
197
- TSIndexedAccessType = "TSIndexedAccessType",
198
- TSIndexSignature = "TSIndexSignature",
199
- TSInferType = "TSInferType",
200
- TSInstantiationExpression = "TSInstantiationExpression",
201
- TSInterfaceBody = "TSInterfaceBody",
202
- TSInterfaceDeclaration = "TSInterfaceDeclaration",
203
- TSInterfaceHeritage = "TSInterfaceHeritage",
204
- TSIntersectionType = "TSIntersectionType",
205
- TSIntrinsicKeyword = "TSIntrinsicKeyword",
206
- TSLiteralType = "TSLiteralType",
207
- TSMappedType = "TSMappedType",
208
- TSMethodSignature = "TSMethodSignature",
209
- TSModuleBlock = "TSModuleBlock",
210
- TSModuleDeclaration = "TSModuleDeclaration",
211
- TSNamedTupleMember = "TSNamedTupleMember",
212
- TSNamespaceExportDeclaration = "TSNamespaceExportDeclaration",
213
- TSNeverKeyword = "TSNeverKeyword",
214
- TSNonNullExpression = "TSNonNullExpression",
215
- TSNullKeyword = "TSNullKeyword",
216
- TSNumberKeyword = "TSNumberKeyword",
217
- TSObjectKeyword = "TSObjectKeyword",
218
- TSOptionalType = "TSOptionalType",
219
- TSParameterProperty = "TSParameterProperty",
220
- TSPrivateKeyword = "TSPrivateKeyword",
221
- TSPropertySignature = "TSPropertySignature",
222
- TSProtectedKeyword = "TSProtectedKeyword",
223
- TSPublicKeyword = "TSPublicKeyword",
224
- TSQualifiedName = "TSQualifiedName",
225
- TSReadonlyKeyword = "TSReadonlyKeyword",
226
- TSRestType = "TSRestType",
227
- TSSatisfiesExpression = "TSSatisfiesExpression",
228
- TSStaticKeyword = "TSStaticKeyword",
229
- TSStringKeyword = "TSStringKeyword",
230
- TSSymbolKeyword = "TSSymbolKeyword",
231
- TSTemplateLiteralType = "TSTemplateLiteralType",
232
- TSThisType = "TSThisType",
233
- TSTupleType = "TSTupleType",
234
- TSTypeAliasDeclaration = "TSTypeAliasDeclaration",
235
- TSTypeAnnotation = "TSTypeAnnotation",
236
- TSTypeAssertion = "TSTypeAssertion",
237
- TSTypeLiteral = "TSTypeLiteral",
238
- TSTypeOperator = "TSTypeOperator",
239
- TSTypeParameter = "TSTypeParameter",
240
- TSTypeParameterDeclaration = "TSTypeParameterDeclaration",
241
- TSTypeParameterInstantiation = "TSTypeParameterInstantiation",
242
- TSTypePredicate = "TSTypePredicate",
243
- TSTypeQuery = "TSTypeQuery",
244
- TSTypeReference = "TSTypeReference",
245
- TSUndefinedKeyword = "TSUndefinedKeyword",
246
- TSUnionType = "TSUnionType",
247
- TSUnknownKeyword = "TSUnknownKeyword",
248
- TSVoidKeyword = "TSVoidKeyword"
249
- }
250
- declare enum AST_TOKEN_TYPES$1 {
251
- Boolean = "Boolean",
252
- Identifier = "Identifier",
253
- JSXIdentifier = "JSXIdentifier",
254
- PrivateIdentifier = "PrivateIdentifier",
255
- JSXText = "JSXText",
256
- Keyword = "Keyword",
257
- Null = "Null",
258
- Numeric = "Numeric",
259
- Punctuator = "Punctuator",
260
- RegularExpression = "RegularExpression",
261
- String = "String",
262
- Template = "Template",
263
- Block = "Block",
264
- Line = "Line"
265
- }
266
- declare interface AwaitExpression$1 extends BaseNode$1 {
267
- type: AST_NODE_TYPES$1.AwaitExpression;
268
- argument: Expression$1;
269
- }
270
- declare interface BaseNode$1 extends NodeOrTokenData$1 {
271
- type: AST_NODE_TYPES$1;
272
- }
273
- declare interface BaseToken$1 extends NodeOrTokenData$1 {
274
- type: AST_TOKEN_TYPES$1;
275
- value: string;
276
- }
277
- declare interface BigIntLiteral$1 extends LiteralBase$1 {
278
- bigint: string;
279
- value: bigint | null;
280
- }
281
- declare type BinaryExpression$1 = PrivateInExpression$1 | SymmetricBinaryExpression$1;
282
- declare interface BinaryOperatorToText$1 {
283
- [SyntaxKind.AmpersandAmpersandToken]: '&&';
284
- [SyntaxKind.AmpersandToken]: '&';
285
- [SyntaxKind.AsteriskAsteriskToken]: '**';
286
- [SyntaxKind.AsteriskToken]: '*';
287
- [SyntaxKind.BarBarToken]: '||';
288
- [SyntaxKind.BarToken]: '|';
289
- [SyntaxKind.CaretToken]: '^';
290
- [SyntaxKind.EqualsEqualsEqualsToken]: '===';
291
- [SyntaxKind.EqualsEqualsToken]: '==';
292
- [SyntaxKind.ExclamationEqualsEqualsToken]: '!==';
293
- [SyntaxKind.ExclamationEqualsToken]: '!=';
294
- [SyntaxKind.GreaterThanEqualsToken]: '>=';
295
- [SyntaxKind.GreaterThanGreaterThanGreaterThanToken]: '>>>';
296
- [SyntaxKind.GreaterThanGreaterThanToken]: '>>';
297
- [SyntaxKind.GreaterThanToken]: '>';
298
- [SyntaxKind.InKeyword]: 'in';
299
- [SyntaxKind.InstanceOfKeyword]: 'instanceof';
300
- [SyntaxKind.LessThanEqualsToken]: '<=';
301
- [SyntaxKind.LessThanLessThanToken]: '<<';
302
- [SyntaxKind.LessThanToken]: '<';
303
- [SyntaxKind.MinusToken]: '-';
304
- [SyntaxKind.PercentToken]: '%';
305
- [SyntaxKind.PlusToken]: '+';
306
- [SyntaxKind.SlashToken]: '/';
307
- }
308
- declare type BindingName$1 = BindingPattern$1 | Identifier$1;
309
- declare type BindingPattern$1 = ArrayPattern$1 | ObjectPattern$1;
310
- declare interface BlockComment$1 extends BaseToken$1 {
311
- type: AST_TOKEN_TYPES$1.Block;
312
- }
313
- declare interface BlockStatement$1 extends BaseNode$1 {
314
- type: AST_NODE_TYPES$1.BlockStatement;
315
- body: Statement$1[];
316
- }
317
- declare interface BooleanLiteral$1 extends LiteralBase$1 {
318
- raw: 'false' | 'true';
319
- value: boolean;
320
- }
321
- declare interface BooleanToken$1 extends BaseToken$1 {
322
- type: AST_TOKEN_TYPES$1.Boolean;
323
- }
324
- declare interface BreakStatement$1 extends BaseNode$1 {
325
- type: AST_NODE_TYPES$1.BreakStatement;
326
- label: Identifier$1 | null;
327
- }
328
- declare interface CallExpression$1 extends BaseNode$1 {
329
- type: AST_NODE_TYPES$1.CallExpression;
330
- arguments: CallExpressionArgument$1[];
331
- callee: Expression$1;
332
- optional: boolean;
333
- typeArguments: TSTypeParameterInstantiation$1 | undefined;
334
- }
335
- declare type CallExpressionArgument$1 = Expression$1 | SpreadElement$1;
336
- declare interface CatchClause$1 extends BaseNode$1 {
337
- type: AST_NODE_TYPES$1.CatchClause;
338
- body: BlockStatement$1;
339
- param: BindingName$1 | null;
340
- }
341
- declare type ChainElement$1 = CallExpression$1 | MemberExpression$1 | TSNonNullExpression$1;
342
- declare interface ChainExpression$1 extends BaseNode$1 {
343
- type: AST_NODE_TYPES$1.ChainExpression;
344
- expression: ChainElement$1;
345
- }
346
- declare interface ClassBase$1 extends BaseNode$1 {
347
- /**
348
- * Whether the class is an abstract class.
349
- * @example
350
- * ```ts
351
- * abstract class Foo {}
352
- * ```
353
- */
354
- abstract: boolean;
355
- /**
356
- * The class body.
357
- */
358
- body: ClassBody$1;
359
- /**
360
- * Whether the class has been `declare`d:
361
- * @example
362
- * ```ts
363
- * declare class Foo {}
364
- * ```
365
- */
366
- declare: boolean;
367
- /**
368
- * The decorators declared for the class.
369
- * @example
370
- * ```ts
371
- * @deco
372
- * class Foo {}
373
- * ```
374
- */
375
- decorators: Decorator$1[];
376
- /**
377
- * The class's name.
378
- * - For a `ClassExpression` this may be `null` if the name is omitted.
379
- * - For a `ClassDeclaration` this may be `null` if and only if the parent is
380
- * an `ExportDefaultDeclaration`.
381
- */
382
- id: Identifier$1 | null;
383
- /**
384
- * The implemented interfaces for the class.
385
- */
386
- implements: TSClassImplements$1[];
387
- /**
388
- * The super class this class extends.
389
- */
390
- superClass: LeftHandSideExpression$1 | null;
391
- /**
392
- * The generic type parameters passed to the superClass.
393
- */
394
- superTypeArguments: TSTypeParameterInstantiation$1 | undefined;
395
- /**
396
- * The generic type parameters declared for the class.
397
- */
398
- typeParameters: TSTypeParameterDeclaration$1 | undefined;
399
- }
400
- declare interface ClassBody$1 extends BaseNode$1 {
401
- type: AST_NODE_TYPES$1.ClassBody;
402
- body: ClassElement$1[];
403
- }
404
- declare type ClassDeclaration$1 = ClassDeclarationWithName$1 | ClassDeclarationWithOptionalName$1;
405
- declare interface ClassDeclarationBase$1 extends ClassBase$1 {
406
- type: AST_NODE_TYPES$1.ClassDeclaration;
407
- }
408
- /**
409
- * A normal class declaration:
410
- * ```
411
- * class A {}
412
- * ```
413
- */
414
- declare interface ClassDeclarationWithName$1 extends ClassDeclarationBase$1 {
415
- id: Identifier$1;
416
- }
417
- /**
418
- * Default-exported class declarations have optional names:
419
- * ```
420
- * export default class {}
421
- * ```
422
- */
423
- declare interface ClassDeclarationWithOptionalName$1 extends ClassDeclarationBase$1 {
424
- id: Identifier$1 | null;
425
- }
426
- declare type ClassElement$1 = AccessorProperty$1 | MethodDefinition$1 | PropertyDefinition$1 | StaticBlock$1 | TSAbstractAccessorProperty$1 | TSAbstractMethodDefinition$1 | TSAbstractPropertyDefinition$1 | TSIndexSignature$1;
427
- declare interface ClassExpression$1 extends ClassBase$1 {
428
- type: AST_NODE_TYPES$1.ClassExpression;
429
- abstract: false;
430
- declare: false;
431
- }
432
- declare interface ClassMethodDefinitionNonComputedNameBase$1 extends MethodDefinitionBase$1 {
433
- computed: false;
434
- key: ClassPropertyNameNonComputed$1;
435
- }
436
- declare interface ClassPropertyDefinitionNonComputedNameBase$1 extends PropertyDefinitionBase$1 {
437
- computed: false;
438
- key: ClassPropertyNameNonComputed$1;
439
- }
440
- declare type ClassPropertyNameNonComputed$1 = PrivateIdentifier$1 | PropertyNameNonComputed$1;
441
- declare type Comment$1 = BlockComment$1 | LineComment$1;
442
- declare interface ConditionalExpression$1 extends BaseNode$1 {
443
- type: AST_NODE_TYPES$1.ConditionalExpression;
444
- alternate: Expression$1;
445
- consequent: Expression$1;
446
- test: Expression$1;
447
- }
448
- declare interface ConstDeclaration$1 extends LetOrConstOrVarDeclarationBase$1 {
449
- /**
450
- * In a `declare const` declaration, the declarators may have initializers, but
451
- * not definite assignment assertions. Each declarator cannot have both an
452
- * initializer and a type annotation.
453
- *
454
- * Even if the declaration has no `declare`, it may still be ambient and have
455
- * no initializer.
456
- */
457
- declarations: VariableDeclaratorMaybeInit$1[];
458
- kind: 'const';
459
- }
460
- declare interface ContinueStatement$1 extends BaseNode$1 {
461
- type: AST_NODE_TYPES$1.ContinueStatement;
462
- label: Identifier$1 | null;
463
- }
464
- declare interface DebuggerStatement$1 extends BaseNode$1 {
465
- type: AST_NODE_TYPES$1.DebuggerStatement;
466
- }
467
- declare interface Decorator$1 extends BaseNode$1 {
468
- type: AST_NODE_TYPES$1.Decorator;
469
- expression: LeftHandSideExpression$1;
470
- }
471
- declare type DefaultExportDeclarations$1 = ClassDeclarationWithOptionalName$1 | Expression$1 | FunctionDeclarationWithName$1 | FunctionDeclarationWithOptionalName$1 | TSDeclareFunction$1 | TSEnumDeclaration$1 | TSInterfaceDeclaration$1 | TSModuleDeclaration$1 | TSTypeAliasDeclaration$1 | VariableDeclaration$1;
472
- declare type DestructuringPattern$1 = ArrayPattern$1 | AssignmentPattern$1 | Identifier$1 | MemberExpression$1 | ObjectPattern$1 | RestElement$1;
473
- declare interface DoWhileStatement$1 extends BaseNode$1 {
474
- type: AST_NODE_TYPES$1.DoWhileStatement;
475
- body: Statement$1;
476
- test: Expression$1;
477
- }
478
- declare interface EmptyStatement$1 extends BaseNode$1 {
479
- type: AST_NODE_TYPES$1.EmptyStatement;
480
- }
481
- declare type EntityName$1 = Identifier$1 | ThisExpression$1 | TSQualifiedName$1;
482
- declare interface ExportAllDeclaration$1 extends BaseNode$1 {
483
- type: AST_NODE_TYPES$1.ExportAllDeclaration;
484
- /**
485
- * The assertions declared for the export.
486
- * @example
487
- * ```ts
488
- * export * from 'mod' assert \{ type: 'json' \};
489
- * ```
490
- * @deprecated Replaced with {@link `attributes`}.
491
- */
492
- assertions: ImportAttribute$1[];
493
- /**
494
- * The attributes declared for the export.
495
- * @example
496
- * ```ts
497
- * export * from 'mod' with \{ type: 'json' \};
498
- * ```
499
- */
500
- attributes: ImportAttribute$1[];
501
- /**
502
- * The name for the exported items (`as X`). `null` if no name is assigned.
503
- */
504
- exported: Identifier$1 | null;
505
- /**
506
- * The kind of the export.
507
- */
508
- exportKind: ExportKind$1;
509
- /**
510
- * The source module being exported from.
511
- */
512
- source: StringLiteral$1;
513
- }
514
- declare type ExportAndImportKind$1 = 'type' | 'value';
515
- declare interface ExportDefaultDeclaration$1 extends BaseNode$1 {
516
- type: AST_NODE_TYPES$1.ExportDefaultDeclaration;
517
- /**
518
- * The declaration being exported.
519
- */
520
- declaration: DefaultExportDeclarations$1;
521
- /**
522
- * The kind of the export. Always `value` for default exports.
523
- */
524
- exportKind: 'value';
525
- }
526
- declare type ExportKind$1 = ExportAndImportKind$1;
527
- declare type ExportNamedDeclaration$1 = ExportNamedDeclarationWithoutSourceWithMultiple$1 | ExportNamedDeclarationWithoutSourceWithSingle$1 | ExportNamedDeclarationWithSource$1;
528
- declare interface ExportNamedDeclarationBase$1 extends BaseNode$1 {
529
- type: AST_NODE_TYPES$1.ExportNamedDeclaration;
530
- /**
531
- * The assertions declared for the export.
532
- * @example
533
- * ```ts
534
- * export { foo } from 'mod' assert \{ type: 'json' \};
535
- * ```
536
- * This will be an empty array if `source` is `null`
537
- * @deprecated Replaced with {@link `attributes`}.
538
- */
539
- assertions: ImportAttribute$1[];
540
- /**
541
- * The attributes declared for the export.
542
- * @example
543
- * ```ts
544
- * export { foo } from 'mod' with \{ type: 'json' \};
545
- * ```
546
- * This will be an empty array if `source` is `null`
547
- */
548
- attributes: ImportAttribute$1[];
549
- /**
550
- * The exported declaration.
551
- * @example
552
- * ```ts
553
- * export const x = 1;
554
- * ```
555
- * This will be `null` if `source` is not `null`, or if there are `specifiers`
556
- */
557
- declaration: NamedExportDeclarations$1 | null;
558
- /**
559
- * The kind of the export.
560
- */
561
- exportKind: ExportKind$1;
562
- /**
563
- * The source module being exported from.
564
- */
565
- source: StringLiteral$1 | null;
566
- /**
567
- * The specifiers being exported.
568
- * @example
569
- * ```ts
570
- * export { a, b };
571
- * ```
572
- * This will be an empty array if `declaration` is not `null`
573
- */
574
- specifiers: ExportSpecifier$1[];
575
- }
576
- /**
577
- * Exporting names from the current module.
578
- * ```
579
- * export {};
580
- * export { a, b };
581
- * ```
582
- */
583
- declare interface ExportNamedDeclarationWithoutSourceWithMultiple$1 extends ExportNamedDeclarationBase$1 {
584
- /**
585
- * This will always be an empty array.
586
- * @deprecated Replaced with {@link `attributes`}.
587
- */
588
- assertions: ImportAttribute$1[];
589
- /**
590
- * This will always be an empty array.
591
- */
592
- attributes: ImportAttribute$1[];
593
- declaration: null;
594
- source: null;
595
- specifiers: ExportSpecifierWithIdentifierLocal$1[];
596
- }
597
- /**
598
- * Exporting a single named declaration.
599
- * ```
600
- * export const x = 1;
601
- * ```
602
- */
603
- declare interface ExportNamedDeclarationWithoutSourceWithSingle$1 extends ExportNamedDeclarationBase$1 {
604
- /**
605
- * This will always be an empty array.
606
- * @deprecated Replaced with {@link `attributes`}.
607
- */
608
- assertions: ImportAttribute$1[];
609
- /**
610
- * This will always be an empty array.
611
- */
612
- attributes: ImportAttribute$1[];
613
- declaration: NamedExportDeclarations$1;
614
- source: null;
615
- /**
616
- * This will always be an empty array.
617
- */
618
- specifiers: ExportSpecifierWithIdentifierLocal$1[];
619
- }
620
- /**
621
- * Export names from another module.
622
- * ```
623
- * export { a, b } from 'mod';
624
- * ```
625
- */
626
- declare interface ExportNamedDeclarationWithSource$1 extends ExportNamedDeclarationBase$1 {
627
- declaration: null;
628
- source: StringLiteral$1;
629
- }
630
- declare type ExportSpecifier$1 = ExportSpecifierWithIdentifierLocal$1 | ExportSpecifierWithStringOrLiteralLocal$1;
631
- declare interface ExportSpecifierBase$1 extends BaseNode$1 {
632
- type: AST_NODE_TYPES$1.ExportSpecifier;
633
- exported: Identifier$1 | StringLiteral$1;
634
- exportKind: ExportKind$1;
635
- local: Identifier$1 | StringLiteral$1;
636
- }
637
- declare interface ExportSpecifierWithIdentifierLocal$1 extends ExportSpecifierBase$1 {
638
- local: Identifier$1;
639
- }
640
- declare interface ExportSpecifierWithStringOrLiteralLocal$1 extends ExportSpecifierBase$1 {
641
- local: Identifier$1 | StringLiteral$1;
642
- }
643
- declare type Expression$1 = ArrayExpression$1 | ArrayPattern$1 | ArrowFunctionExpression$1 | AssignmentExpression$1 | AwaitExpression$1 | BinaryExpression$1 | CallExpression$1 | ChainExpression$1 | ClassExpression$1 | ConditionalExpression$1 | FunctionExpression$1 | Identifier$1 | ImportExpression$1 | JSXElement$1 | JSXFragment$1 | LiteralExpression$1 | LogicalExpression$1 | MemberExpression$1 | MetaProperty$1 | NewExpression$1 | ObjectExpression$1 | ObjectPattern$1 | SequenceExpression$1 | Super$1 | TaggedTemplateExpression$1 | TemplateLiteral$1 | ThisExpression$1 | TSAsExpression$1 | TSInstantiationExpression$1 | TSNonNullExpression$1 | TSSatisfiesExpression$1 | TSTypeAssertion$1 | UnaryExpression$1 | UpdateExpression$1 | YieldExpression$1;
644
- declare interface ExpressionStatement$1 extends BaseNode$1 {
645
- type: AST_NODE_TYPES$1.ExpressionStatement;
646
- directive: string | undefined;
647
- expression: Expression$1;
648
- }
649
- declare type ForInitialiser$1 = Expression$1 | LetOrConstOrVarDeclaration$1;
650
- declare interface ForInStatement$1 extends BaseNode$1 {
651
- type: AST_NODE_TYPES$1.ForInStatement;
652
- body: Statement$1;
653
- left: ForInitialiser$1;
654
- right: Expression$1;
655
- }
656
- declare type ForOfInitialiser$1 = Expression$1 | LetOrConstOrVarDeclaration$1 | UsingInForOfDeclaration$1;
657
- declare interface ForOfStatement$1 extends BaseNode$1 {
658
- type: AST_NODE_TYPES$1.ForOfStatement;
659
- await: boolean;
660
- body: Statement$1;
661
- left: ForOfInitialiser$1;
662
- right: Expression$1;
663
- }
664
- declare interface ForStatement$1 extends BaseNode$1 {
665
- type: AST_NODE_TYPES$1.ForStatement;
666
- body: Statement$1;
667
- init: Expression$1 | ForInitialiser$1 | null;
668
- test: Expression$1 | null;
669
- update: Expression$1 | null;
670
- }
671
- declare interface FunctionBase$1 extends BaseNode$1 {
672
- /**
673
- * Whether the function is async:
674
- * ```
675
- * async function foo() {}
676
- * const x = async function () {}
677
- * const x = async () => {}
678
- * ```
679
- */
680
- async: boolean;
681
- /**
682
- * The body of the function.
683
- * - For an `ArrowFunctionExpression` this may be an `Expression` or `BlockStatement`.
684
- * - For a `FunctionDeclaration` or `FunctionExpression` this is always a `BlockStatement`.
685
- * - For a `TSDeclareFunction` this is always `undefined`.
686
- * - For a `TSEmptyBodyFunctionExpression` this is always `null`.
687
- */
688
- body: BlockStatement$1 | Expression$1 | null | undefined;
689
- /**
690
- * This is only `true` if and only if the node is a `TSDeclareFunction` and it has `declare`:
691
- * ```
692
- * declare function foo() {}
693
- * ```
694
- */
695
- declare: boolean;
696
- /**
697
- * This is only ever `true` if and only the node is an `ArrowFunctionExpression` and the body
698
- * is an expression:
699
- * ```
700
- * (() => 1)
701
- * ```
702
- */
703
- expression: boolean;
704
- /**
705
- * Whether the function is a generator function:
706
- * ```
707
- * function *foo() {}
708
- * const x = function *() {}
709
- * ```
710
- * This is always `false` for arrow functions as they cannot be generators.
711
- */
712
- generator: boolean;
713
- /**
714
- * The function's name.
715
- * - For an `ArrowFunctionExpression` this is always `null`.
716
- * - For a `FunctionExpression` this may be `null` if the name is omitted.
717
- * - For a `FunctionDeclaration` or `TSDeclareFunction` this may be `null` if
718
- * and only if the parent is an `ExportDefaultDeclaration`.
719
- */
720
- id: Identifier$1 | null;
721
- /**
722
- * The list of parameters declared for the function.
723
- */
724
- params: Parameter$1[];
725
- /**
726
- * The return type annotation for the function.
727
- */
728
- returnType: TSTypeAnnotation$1 | undefined;
729
- /**
730
- * The generic type parameter declaration for the function.
731
- */
732
- typeParameters: TSTypeParameterDeclaration$1 | undefined;
733
- }
734
- declare type FunctionDeclaration$1 = FunctionDeclarationWithName$1 | FunctionDeclarationWithOptionalName$1;
735
- declare interface FunctionDeclarationBase$1 extends FunctionBase$1 {
736
- type: AST_NODE_TYPES$1.FunctionDeclaration;
737
- body: BlockStatement$1;
738
- declare: false;
739
- expression: false;
740
- }
741
- /**
742
- * A normal function declaration:
743
- * ```
744
- * function f() {}
745
- * ```
746
- */
747
- declare interface FunctionDeclarationWithName$1 extends FunctionDeclarationBase$1 {
748
- id: Identifier$1;
749
- }
750
- /**
751
- * Default-exported function declarations have optional names:
752
- * ```
753
- * export default function () {}
754
- * ```
755
- */
756
- declare interface FunctionDeclarationWithOptionalName$1 extends FunctionDeclarationBase$1 {
757
- id: Identifier$1 | null;
758
- }
759
- declare interface FunctionExpression$1 extends FunctionBase$1 {
760
- type: AST_NODE_TYPES$1.FunctionExpression;
761
- body: BlockStatement$1;
762
- expression: false;
763
- }
764
- declare type FunctionLike$1 = ArrowFunctionExpression$1 | FunctionDeclaration$1 | FunctionExpression$1 | TSDeclareFunction$1 | TSEmptyBodyFunctionExpression$1;
765
- declare interface Identifier$1 extends BaseNode$1 {
766
- type: AST_NODE_TYPES$1.Identifier;
767
- decorators: Decorator$1[];
768
- name: string;
769
- optional: boolean;
770
- typeAnnotation: TSTypeAnnotation$1 | undefined;
771
- }
772
- declare interface IdentifierToken$1 extends BaseToken$1 {
773
- type: AST_TOKEN_TYPES$1.Identifier;
774
- }
775
- declare interface IfStatement$1 extends BaseNode$1 {
776
- type: AST_NODE_TYPES$1.IfStatement;
777
- alternate: Statement$1 | null;
778
- consequent: Statement$1;
779
- test: Expression$1;
780
- }
781
- declare interface ImportAttribute$1 extends BaseNode$1 {
782
- type: AST_NODE_TYPES$1.ImportAttribute;
783
- key: Identifier$1 | Literal$1;
784
- value: Literal$1;
785
- }
786
- declare type ImportClause$1 = ImportDefaultSpecifier$1 | ImportNamespaceSpecifier$1 | ImportSpecifier$1;
787
- declare interface ImportDeclaration$1 extends BaseNode$1 {
788
- type: AST_NODE_TYPES$1.ImportDeclaration;
789
- /**
790
- * The assertions declared for the export.
791
- * @example
792
- * ```ts
793
- * import * from 'mod' assert \{ type: 'json' \};
794
- * ```
795
- * @deprecated Replaced with {@link `attributes`}.
796
- */
797
- assertions: ImportAttribute$1[];
798
- /**
799
- * The attributes declared for the export.
800
- * @example
801
- * ```ts
802
- * import * from 'mod' with \{ type: 'json' \};
803
- * ```
804
- */
805
- attributes: ImportAttribute$1[];
806
- /**
807
- * The kind of the import.
808
- */
809
- importKind: ImportKind$1;
810
- /**
811
- * The source module being imported from.
812
- */
813
- source: StringLiteral$1;
814
- /**
815
- * The specifiers being imported.
816
- * If this is an empty array then either there are no specifiers:
817
- * ```
818
- * import {} from 'mod';
819
- * ```
820
- * Or it is a side-effect import:
821
- * ```
822
- * import 'mod';
823
- * ```
824
- */
825
- specifiers: ImportClause$1[];
826
- }
827
- declare interface ImportDefaultSpecifier$1 extends BaseNode$1 {
828
- type: AST_NODE_TYPES$1.ImportDefaultSpecifier;
829
- local: Identifier$1;
830
- }
831
- declare interface ImportExpression$1 extends BaseNode$1 {
832
- type: AST_NODE_TYPES$1.ImportExpression;
833
- /**
834
- * The attributes declared for the dynamic import.
835
- * @example
836
- * ```ts
837
- * import('mod', \{ assert: \{ type: 'json' \} \});
838
- * ```
839
- * @deprecated Replaced with {@link `options`}.
840
- */
841
- attributes: Expression$1 | null;
842
- /**
843
- * The options bag declared for the dynamic import.
844
- * @example
845
- * ```ts
846
- * import('mod', \{ assert: \{ type: 'json' \} \});
847
- * ```
848
- */
849
- options: Expression$1 | null;
850
- source: Expression$1;
851
- }
852
- declare type ImportKind$1 = ExportAndImportKind$1;
853
- declare interface ImportNamespaceSpecifier$1 extends BaseNode$1 {
854
- type: AST_NODE_TYPES$1.ImportNamespaceSpecifier;
855
- local: Identifier$1;
856
- }
857
- declare interface ImportSpecifier$1 extends BaseNode$1 {
858
- type: AST_NODE_TYPES$1.ImportSpecifier;
859
- imported: Identifier$1 | StringLiteral$1;
860
- importKind: ImportKind$1;
861
- local: Identifier$1;
862
- }
863
- declare interface JSXAttribute$1 extends BaseNode$1 {
864
- type: AST_NODE_TYPES$1.JSXAttribute;
865
- name: JSXIdentifier$1 | JSXNamespacedName$1;
866
- value: JSXElement$1 | JSXExpression$1 | Literal$1 | null;
867
- }
868
- declare type JSXChild$1 = JSXElement$1 | JSXExpression$1 | JSXFragment$1 | JSXText$1;
869
- declare interface JSXClosingElement$1 extends BaseNode$1 {
870
- type: AST_NODE_TYPES$1.JSXClosingElement;
871
- name: JSXTagNameExpression$1;
872
- }
873
- declare interface JSXClosingFragment$1 extends BaseNode$1 {
874
- type: AST_NODE_TYPES$1.JSXClosingFragment;
875
- }
876
- declare interface JSXElement$1 extends BaseNode$1 {
877
- type: AST_NODE_TYPES$1.JSXElement;
878
- children: JSXChild$1[];
879
- closingElement: JSXClosingElement$1 | null;
880
- openingElement: JSXOpeningElement$1;
881
- }
882
- declare interface JSXEmptyExpression$1 extends BaseNode$1 {
883
- type: AST_NODE_TYPES$1.JSXEmptyExpression;
884
- }
885
- declare type JSXExpression$1 = JSXExpressionContainer$1 | JSXSpreadChild$1;
886
- declare interface JSXExpressionContainer$1 extends BaseNode$1 {
887
- type: AST_NODE_TYPES$1.JSXExpressionContainer;
888
- expression: Expression$1 | JSXEmptyExpression$1;
889
- }
890
- declare interface JSXFragment$1 extends BaseNode$1 {
891
- type: AST_NODE_TYPES$1.JSXFragment;
892
- children: JSXChild$1[];
893
- closingFragment: JSXClosingFragment$1;
894
- openingFragment: JSXOpeningFragment$1;
895
- }
896
- declare interface JSXIdentifier$1 extends BaseNode$1 {
897
- type: AST_NODE_TYPES$1.JSXIdentifier;
898
- name: string;
899
- }
900
- declare interface JSXIdentifierToken$1 extends BaseToken$1 {
901
- type: AST_TOKEN_TYPES$1.JSXIdentifier;
902
- }
903
- declare interface JSXMemberExpression$1 extends BaseNode$1 {
904
- type: AST_NODE_TYPES$1.JSXMemberExpression;
905
- object: JSXTagNameExpression$1;
906
- property: JSXIdentifier$1;
907
- }
908
- declare interface JSXNamespacedName$1 extends BaseNode$1 {
909
- type: AST_NODE_TYPES$1.JSXNamespacedName;
910
- name: JSXIdentifier$1;
911
- namespace: JSXIdentifier$1;
912
- }
913
- declare interface JSXOpeningElement$1 extends BaseNode$1 {
914
- type: AST_NODE_TYPES$1.JSXOpeningElement;
915
- attributes: (JSXAttribute$1 | JSXSpreadAttribute$1)[];
916
- name: JSXTagNameExpression$1;
917
- selfClosing: boolean;
918
- typeArguments: TSTypeParameterInstantiation$1 | undefined;
919
- }
920
- declare interface JSXOpeningFragment$1 extends BaseNode$1 {
921
- type: AST_NODE_TYPES$1.JSXOpeningFragment;
922
- }
923
- declare interface JSXSpreadAttribute$1 extends BaseNode$1 {
924
- type: AST_NODE_TYPES$1.JSXSpreadAttribute;
925
- argument: Expression$1;
926
- }
927
- declare interface JSXSpreadChild$1 extends BaseNode$1 {
928
- type: AST_NODE_TYPES$1.JSXSpreadChild;
929
- expression: Expression$1 | JSXEmptyExpression$1;
930
- }
931
- declare type JSXTagNameExpression$1 = JSXIdentifier$1 | JSXMemberExpression$1 | JSXNamespacedName$1;
932
- declare interface JSXText$1 extends BaseNode$1 {
933
- type: AST_NODE_TYPES$1.JSXText;
934
- raw: string;
935
- value: string;
936
- }
937
- declare interface JSXTextToken$1 extends BaseToken$1 {
938
- type: AST_TOKEN_TYPES$1.JSXText;
939
- }
940
- declare interface KeywordToken$1 extends BaseToken$1 {
941
- type: AST_TOKEN_TYPES$1.Keyword;
942
- }
943
- declare interface LabeledStatement$1 extends BaseNode$1 {
944
- type: AST_NODE_TYPES$1.LabeledStatement;
945
- body: Statement$1;
946
- label: Identifier$1;
947
- }
948
- declare type LeftHandSideExpression$1 = ArrayExpression$1 | ArrayPattern$1 | ArrowFunctionExpression$1 | CallExpression$1 | ClassExpression$1 | FunctionExpression$1 | Identifier$1 | JSXElement$1 | JSXFragment$1 | LiteralExpression$1 | MemberExpression$1 | MetaProperty$1 | ObjectExpression$1 | ObjectPattern$1 | SequenceExpression$1 | Super$1 | TaggedTemplateExpression$1 | ThisExpression$1 | TSAsExpression$1 | TSNonNullExpression$1 | TSTypeAssertion$1;
949
- declare type LetOrConstOrVarDeclaration$1 = ConstDeclaration$1 | LetOrVarDeclaredDeclaration$1 | LetOrVarNonDeclaredDeclaration$1;
950
- declare interface LetOrConstOrVarDeclarationBase$1 extends BaseNode$1 {
951
- type: AST_NODE_TYPES$1.VariableDeclaration;
952
- /**
953
- * The variables declared by this declaration.
954
- * Always non-empty.
955
- * @example
956
- * ```ts
957
- * let x;
958
- * let y, z;
959
- * ```
960
- */
961
- declarations: LetOrConstOrVarDeclarator$1[];
962
- /**
963
- * Whether the declaration is `declare`d
964
- * @example
965
- * ```ts
966
- * declare const x = 1;
967
- * ```
968
- */
969
- declare: boolean;
970
- /**
971
- * The keyword used to declare the variable(s)
972
- * @example
973
- * ```ts
974
- * const x = 1;
975
- * let y = 2;
976
- * var z = 3;
977
- * ```
978
- */
979
- kind: 'const' | 'let' | 'var';
980
- }
981
- declare type LetOrConstOrVarDeclarator$1 = VariableDeclaratorDefiniteAssignment$1 | VariableDeclaratorMaybeInit$1 | VariableDeclaratorNoInit$1;
982
- declare interface LetOrVarDeclaredDeclaration$1 extends LetOrConstOrVarDeclarationBase$1 {
983
- /**
984
- * In a `declare let` declaration, the declarators must not have definite assignment
985
- * assertions or initializers.
986
- *
987
- * @example
988
- * ```ts
989
- * using x = 1;
990
- * using y =1, z = 2;
991
- * ```
992
- */
993
- declarations: VariableDeclaratorNoInit$1[];
994
- declare: true;
995
- kind: 'let' | 'var';
996
- }
997
- declare interface LetOrVarNonDeclaredDeclaration$1 extends LetOrConstOrVarDeclarationBase$1 {
998
- /**
999
- * In a `let`/`var` declaration, the declarators may have definite assignment
1000
- * assertions or initializers, but not both.
1001
- */
1002
- declarations: (VariableDeclaratorDefiniteAssignment$1 | VariableDeclaratorMaybeInit$1)[];
1003
- declare: false;
1004
- kind: 'let' | 'var';
1005
- }
1006
- declare interface LineComment$1 extends BaseToken$1 {
1007
- type: AST_TOKEN_TYPES$1.Line;
1008
- }
1009
- declare type Literal$1 = BigIntLiteral$1 | BooleanLiteral$1 | NullLiteral$1 | NumberLiteral$1 | RegExpLiteral$1 | StringLiteral$1;
1010
- declare interface LiteralBase$1 extends BaseNode$1 {
1011
- type: AST_NODE_TYPES$1.Literal;
1012
- raw: string;
1013
- value: bigint | boolean | number | string | RegExp | null;
1014
- }
1015
- declare type LiteralExpression$1 = Literal$1 | TemplateLiteral$1;
1016
- declare interface LogicalExpression$1 extends BaseNode$1 {
1017
- type: AST_NODE_TYPES$1.LogicalExpression;
1018
- left: Expression$1;
1019
- operator: '&&' | '??' | '||';
1020
- right: Expression$1;
1021
- }
1022
- declare type MemberExpression$1 = MemberExpressionComputedName$1 | MemberExpressionNonComputedName$1;
1023
- declare interface MemberExpressionBase$1 extends BaseNode$1 {
1024
- computed: boolean;
1025
- object: Expression$1;
1026
- optional: boolean;
1027
- property: Expression$1 | Identifier$1 | PrivateIdentifier$1;
1028
- }
1029
- declare interface MemberExpressionComputedName$1 extends MemberExpressionBase$1 {
1030
- type: AST_NODE_TYPES$1.MemberExpression;
1031
- computed: true;
1032
- property: Expression$1;
1033
- }
1034
- declare interface MemberExpressionNonComputedName$1 extends MemberExpressionBase$1 {
1035
- type: AST_NODE_TYPES$1.MemberExpression;
1036
- computed: false;
1037
- property: Identifier$1 | PrivateIdentifier$1;
1038
- }
1039
- declare interface MetaProperty$1 extends BaseNode$1 {
1040
- type: AST_NODE_TYPES$1.MetaProperty;
1041
- meta: Identifier$1;
1042
- property: Identifier$1;
1043
- }
1044
- declare type MethodDefinition$1 = MethodDefinitionComputedName$1 | MethodDefinitionNonComputedName$1;
1045
- /** this should not be directly used - instead use MethodDefinitionComputedNameBase or MethodDefinitionNonComputedNameBase */
1046
- declare interface MethodDefinitionBase$1 extends BaseNode$1 {
1047
- accessibility: Accessibility$1 | undefined;
1048
- computed: boolean;
1049
- decorators: Decorator$1[];
1050
- key: PropertyName$1;
1051
- kind: 'constructor' | 'get' | 'method' | 'set';
1052
- optional: boolean;
1053
- override: boolean;
1054
- static: boolean;
1055
- value: FunctionExpression$1 | TSEmptyBodyFunctionExpression$1;
1056
- }
1057
- declare interface MethodDefinitionComputedName$1 extends MethodDefinitionComputedNameBase$1 {
1058
- type: AST_NODE_TYPES$1.MethodDefinition;
1059
- }
1060
- declare interface MethodDefinitionComputedNameBase$1 extends MethodDefinitionBase$1 {
1061
- computed: true;
1062
- key: PropertyNameComputed$1;
1063
- }
1064
- declare interface MethodDefinitionNonComputedName$1 extends ClassMethodDefinitionNonComputedNameBase$1 {
1065
- type: AST_NODE_TYPES$1.MethodDefinition;
1066
- }
1067
- declare interface MethodDefinitionNonComputedNameBase$1 extends MethodDefinitionBase$1 {
1068
- computed: false;
1069
- key: PropertyNameNonComputed$1;
1070
- }
1071
- declare type NamedExportDeclarations$1 = ClassDeclarationWithName$1 | ClassDeclarationWithOptionalName$1 | FunctionDeclarationWithName$1 | FunctionDeclarationWithOptionalName$1 | TSDeclareFunction$1 | TSEnumDeclaration$1 | TSImportEqualsDeclaration$1 | TSInterfaceDeclaration$1 | TSModuleDeclaration$1 | TSTypeAliasDeclaration$1 | VariableDeclaration$1;
1072
- declare interface NewExpression$1 extends BaseNode$1 {
1073
- type: AST_NODE_TYPES$1.NewExpression;
1074
- arguments: CallExpressionArgument$1[];
1075
- callee: Expression$1;
1076
- typeArguments: TSTypeParameterInstantiation$1 | undefined;
1077
- }
1078
- declare type Node$1 = AccessorProperty$1 | ArrayExpression$1 | ArrayPattern$1 | ArrowFunctionExpression$1 | AssignmentExpression$1 | AssignmentPattern$1 | AwaitExpression$1 | BinaryExpression$1 | BlockStatement$1 | BreakStatement$1 | CallExpression$1 | CatchClause$1 | ChainExpression$1 | ClassBody$1 | ClassDeclaration$1 | ClassExpression$1 | ConditionalExpression$1 | ContinueStatement$1 | DebuggerStatement$1 | Decorator$1 | DoWhileStatement$1 | EmptyStatement$1 | ExportAllDeclaration$1 | ExportDefaultDeclaration$1 | ExportNamedDeclaration$1 | ExportSpecifier$1 | ExpressionStatement$1 | ForInStatement$1 | ForOfStatement$1 | ForStatement$1 | FunctionDeclaration$1 | FunctionExpression$1 | Identifier$1 | IfStatement$1 | ImportAttribute$1 | ImportDeclaration$1 | ImportDefaultSpecifier$1 | ImportExpression$1 | ImportNamespaceSpecifier$1 | ImportSpecifier$1 | JSXAttribute$1 | JSXClosingElement$1 | JSXClosingFragment$1 | JSXElement$1 | JSXEmptyExpression$1 | JSXExpressionContainer$1 | JSXFragment$1 | JSXIdentifier$1 | JSXMemberExpression$1 | JSXNamespacedName$1 | JSXOpeningElement$1 | JSXOpeningFragment$1 | JSXSpreadAttribute$1 | JSXSpreadChild$1 | JSXText$1 | LabeledStatement$1 | Literal$1 | LogicalExpression$1 | MemberExpression$1 | MetaProperty$1 | MethodDefinition$1 | NewExpression$1 | ObjectExpression$1 | ObjectPattern$1 | PrivateIdentifier$1 | Program$1 | Property$1 | PropertyDefinition$1 | RestElement$1 | ReturnStatement$1 | SequenceExpression$1 | SpreadElement$1 | StaticBlock$1 | Super$1 | SwitchCase$1 | SwitchStatement$1 | TaggedTemplateExpression$1 | TemplateElement$1 | TemplateLiteral$1 | ThisExpression$1 | ThrowStatement$1 | TryStatement$1 | TSAbstractAccessorProperty$1 | TSAbstractKeyword$1 | TSAbstractMethodDefinition$1 | TSAbstractPropertyDefinition$1 | TSAnyKeyword$1 | TSArrayType$1 | TSAsExpression$1 | TSAsyncKeyword$1 | TSBigIntKeyword$1 | TSBooleanKeyword$1 | TSCallSignatureDeclaration$1 | TSClassImplements$1 | TSConditionalType$1 | TSConstructorType$1 | TSConstructSignatureDeclaration$1 | TSDeclareFunction$1 | TSDeclareKeyword$1 | TSEmptyBodyFunctionExpression$1 | TSEnumBody$1 | TSEnumDeclaration$1 | TSEnumMember$1 | TSExportAssignment$1 | TSExportKeyword$1 | TSExternalModuleReference$1 | TSFunctionType$1 | TSImportEqualsDeclaration$1 | TSImportType$1 | TSIndexedAccessType$1 | TSIndexSignature$1 | TSInferType$1 | TSInstantiationExpression$1 | TSInterfaceBody$1 | TSInterfaceDeclaration$1 | TSInterfaceHeritage$1 | TSIntersectionType$1 | TSIntrinsicKeyword$1 | TSLiteralType$1 | TSMappedType$1 | TSMethodSignature$1 | TSModuleBlock$1 | TSModuleDeclaration$1 | TSNamedTupleMember$1 | TSNamespaceExportDeclaration$1 | TSNeverKeyword$1 | TSNonNullExpression$1 | TSNullKeyword$1 | TSNumberKeyword$1 | TSObjectKeyword$1 | TSOptionalType$1 | TSParameterProperty$1 | TSPrivateKeyword$1 | TSPropertySignature$1 | TSProtectedKeyword$1 | TSPublicKeyword$1 | TSQualifiedName$1 | TSReadonlyKeyword$1 | TSRestType$1 | TSSatisfiesExpression$1 | TSStaticKeyword$1 | TSStringKeyword$1 | TSSymbolKeyword$1 | TSTemplateLiteralType$1 | TSThisType$1 | TSTupleType$1 | TSTypeAliasDeclaration$1 | TSTypeAnnotation$1 | TSTypeAssertion$1 | TSTypeLiteral$1 | TSTypeOperator$1 | TSTypeParameter$1 | TSTypeParameterDeclaration$1 | TSTypeParameterInstantiation$1 | TSTypePredicate$1 | TSTypeQuery$1 | TSTypeReference$1 | TSUndefinedKeyword$1 | TSUnionType$1 | TSUnknownKeyword$1 | TSVoidKeyword$1 | UnaryExpression$1 | UpdateExpression$1 | VariableDeclaration$1 | VariableDeclarator$1 | WhileStatement$1 | WithStatement$1 | YieldExpression$1;
1079
- declare interface NodeOrTokenData$1 {
1080
- type: string;
1081
- /**
1082
- * The source location information of the node.
1083
- *
1084
- * The loc property is defined as nullable by ESTree, but ESLint requires this property.
1085
- */
1086
- loc: SourceLocation$1;
1087
- range: Range$1;
1088
- }
1089
- declare interface NullLiteral$1 extends LiteralBase$1 {
1090
- raw: 'null';
1091
- value: null;
1092
- }
1093
- declare interface NullToken$1 extends BaseToken$1 {
1094
- type: AST_TOKEN_TYPES$1.Null;
1095
- }
1096
- declare interface NumberLiteral$1 extends LiteralBase$1 {
1097
- value: number;
1098
- }
1099
- declare interface NumericToken$1 extends BaseToken$1 {
1100
- type: AST_TOKEN_TYPES$1.Numeric;
1101
- }
1102
- declare interface ObjectExpression$1 extends BaseNode$1 {
1103
- type: AST_NODE_TYPES$1.ObjectExpression;
1104
- properties: ObjectLiteralElement$1[];
1105
- }
1106
- declare type ObjectLiteralElement$1 = Property$1 | SpreadElement$1;
1107
- declare interface ObjectPattern$1 extends BaseNode$1 {
1108
- type: AST_NODE_TYPES$1.ObjectPattern;
1109
- decorators: Decorator$1[];
1110
- optional: boolean;
1111
- properties: (Property$1 | RestElement$1)[];
1112
- typeAnnotation: TSTypeAnnotation$1 | undefined;
1113
- }
1114
- declare type Parameter$1 = ArrayPattern$1 | AssignmentPattern$1 | Identifier$1 | ObjectPattern$1 | RestElement$1 | TSParameterProperty$1;
1115
- declare type ParameterPropertyParameter$1 = (AssignmentPattern$1 & {
1116
- left: Identifier$1;
1117
- }) | Identifier$1;
1118
- declare interface Position$1 {
1119
- /**
1120
- * Column number on the line (0-indexed)
1121
- */
1122
- column: number;
1123
- /**
1124
- * Line number (1-indexed)
1125
- */
1126
- line: number;
1127
- }
1128
- declare interface PrivateIdentifier$1 extends BaseNode$1 {
1129
- type: AST_NODE_TYPES$1.PrivateIdentifier;
1130
- name: string;
1131
- }
1132
- declare interface PrivateIdentifierToken$1 extends BaseToken$1 {
1133
- type: AST_TOKEN_TYPES$1.PrivateIdentifier;
1134
- }
1135
- declare interface PrivateInExpression$1 extends BaseNode$1 {
1136
- type: AST_NODE_TYPES$1.BinaryExpression;
1137
- left: PrivateIdentifier$1;
1138
- operator: 'in';
1139
- right: Expression$1;
1140
- }
1141
- declare interface Program$1 extends NodeOrTokenData$1 {
1142
- type: AST_NODE_TYPES$1.Program;
1143
- body: ProgramStatement$1[];
1144
- comments: Comment$1[] | undefined;
1145
- sourceType: 'module' | 'script';
1146
- tokens: Token$1[] | undefined;
1147
- }
1148
- declare type ProgramStatement$1 = ExportAllDeclaration$1 | ExportDefaultDeclaration$1 | ExportNamedDeclaration$1 | ImportDeclaration$1 | Statement$1 | TSImportEqualsDeclaration$1 | TSNamespaceExportDeclaration$1;
1149
- declare type Property$1 = PropertyComputedName$1 | PropertyNonComputedName$1;
1150
- declare interface PropertyBase$1 extends BaseNode$1 {
1151
- type: AST_NODE_TYPES$1.Property;
1152
- computed: boolean;
1153
- key: PropertyName$1;
1154
- kind: 'get' | 'init' | 'set';
1155
- method: boolean;
1156
- optional: boolean;
1157
- shorthand: boolean;
1158
- value: AssignmentPattern$1 | BindingName$1 | Expression$1 | TSEmptyBodyFunctionExpression$1;
1159
- }
1160
- declare interface PropertyComputedName$1 extends PropertyBase$1 {
1161
- computed: true;
1162
- key: PropertyNameComputed$1;
1163
- }
1164
- declare type PropertyDefinition$1 = PropertyDefinitionComputedName$1 | PropertyDefinitionNonComputedName$1;
1165
- declare interface PropertyDefinitionBase$1 extends BaseNode$1 {
1166
- accessibility: Accessibility$1 | undefined;
1167
- computed: boolean;
1168
- declare: boolean;
1169
- decorators: Decorator$1[];
1170
- definite: boolean;
1171
- key: PropertyName$1;
1172
- optional: boolean;
1173
- override: boolean;
1174
- readonly: boolean;
1175
- static: boolean;
1176
- typeAnnotation: TSTypeAnnotation$1 | undefined;
1177
- value: Expression$1 | null;
1178
- }
1179
- declare interface PropertyDefinitionComputedName$1 extends PropertyDefinitionComputedNameBase$1 {
1180
- type: AST_NODE_TYPES$1.PropertyDefinition;
1181
- }
1182
- declare interface PropertyDefinitionComputedNameBase$1 extends PropertyDefinitionBase$1 {
1183
- computed: true;
1184
- key: PropertyNameComputed$1;
1185
- }
1186
- declare interface PropertyDefinitionNonComputedName$1 extends ClassPropertyDefinitionNonComputedNameBase$1 {
1187
- type: AST_NODE_TYPES$1.PropertyDefinition;
1188
- }
1189
- declare interface PropertyDefinitionNonComputedNameBase$1 extends PropertyDefinitionBase$1 {
1190
- computed: false;
1191
- key: PropertyNameNonComputed$1;
1192
- }
1193
- declare type PropertyName$1 = ClassPropertyNameNonComputed$1 | PropertyNameComputed$1 | PropertyNameNonComputed$1;
1194
- declare type PropertyNameComputed$1 = Expression$1;
1195
- declare type PropertyNameNonComputed$1 = Identifier$1 | NumberLiteral$1 | StringLiteral$1;
1196
- declare interface PropertyNonComputedName$1 extends PropertyBase$1 {
1197
- computed: false;
1198
- key: PropertyNameNonComputed$1;
1199
- }
1200
- declare interface PunctuatorToken$1 extends BaseToken$1 {
1201
- type: AST_TOKEN_TYPES$1.Punctuator;
1202
- value: ValueOf$1<PunctuatorTokenToText$1>;
1203
- }
1204
- declare interface PunctuatorTokenToText$1 extends AssignmentOperatorToText$1 {
1205
- [SyntaxKind.AmpersandAmpersandToken]: '&&';
1206
- [SyntaxKind.AmpersandToken]: '&';
1207
- [SyntaxKind.AsteriskAsteriskToken]: '**';
1208
- [SyntaxKind.AsteriskToken]: '*';
1209
- [SyntaxKind.AtToken]: '@';
1210
- [SyntaxKind.BacktickToken]: '`';
1211
- [SyntaxKind.BarBarToken]: '||';
1212
- [SyntaxKind.BarToken]: '|';
1213
- [SyntaxKind.CaretToken]: '^';
1214
- [SyntaxKind.CloseBraceToken]: '}';
1215
- [SyntaxKind.CloseBracketToken]: ']';
1216
- [SyntaxKind.CloseParenToken]: ')';
1217
- [SyntaxKind.ColonToken]: ':';
1218
- [SyntaxKind.CommaToken]: ',';
1219
- [SyntaxKind.DotDotDotToken]: '...';
1220
- [SyntaxKind.DotToken]: '.';
1221
- [SyntaxKind.EqualsEqualsEqualsToken]: '===';
1222
- [SyntaxKind.EqualsEqualsToken]: '==';
1223
- [SyntaxKind.EqualsGreaterThanToken]: '=>';
1224
- [SyntaxKind.ExclamationEqualsEqualsToken]: '!==';
1225
- [SyntaxKind.ExclamationEqualsToken]: '!=';
1226
- [SyntaxKind.ExclamationToken]: '!';
1227
- [SyntaxKind.GreaterThanEqualsToken]: '>=';
1228
- [SyntaxKind.GreaterThanGreaterThanGreaterThanToken]: '>>>';
1229
- [SyntaxKind.GreaterThanGreaterThanToken]: '>>';
1230
- [SyntaxKind.GreaterThanToken]: '>';
1231
- [SyntaxKind.HashToken]: '#';
1232
- [SyntaxKind.LessThanEqualsToken]: '<=';
1233
- [SyntaxKind.LessThanLessThanToken]: '<<';
1234
- [SyntaxKind.LessThanSlashToken]: '</';
1235
- [SyntaxKind.LessThanToken]: '<';
1236
- [SyntaxKind.MinusMinusToken]: '--';
1237
- [SyntaxKind.MinusToken]: '-';
1238
- [SyntaxKind.OpenBraceToken]: '{';
1239
- [SyntaxKind.OpenBracketToken]: '[';
1240
- [SyntaxKind.OpenParenToken]: '(';
1241
- [SyntaxKind.PercentToken]: '%';
1242
- [SyntaxKind.PlusPlusToken]: '++';
1243
- [SyntaxKind.PlusToken]: '+';
1244
- [SyntaxKind.QuestionDotToken]: '?.';
1245
- [SyntaxKind.QuestionQuestionToken]: '??';
1246
- [SyntaxKind.QuestionToken]: '?';
1247
- [SyntaxKind.SemicolonToken]: ';';
1248
- [SyntaxKind.SlashToken]: '/';
1249
- [SyntaxKind.TildeToken]: '~';
1250
- }
1251
- /**
1252
- * An array of two numbers.
1253
- * Both numbers are a 0-based index which is the position in the array of source code characters.
1254
- * The first is the start position of the node, the second is the end position of the node.
1255
- */
1256
- declare type Range$1 = [number, number];
1257
- declare interface RegExpLiteral$1 extends LiteralBase$1 {
1258
- regex: {
1259
- flags: string;
1260
- pattern: string;
1261
- };
1262
- value: RegExp | null;
1263
- }
1264
- declare interface RegularExpressionToken$1 extends BaseToken$1 {
1265
- type: AST_TOKEN_TYPES$1.RegularExpression;
1266
- regex: {
1267
- flags: string;
1268
- pattern: string;
1269
- };
1270
- }
1271
- declare interface RestElement$1 extends BaseNode$1 {
1272
- type: AST_NODE_TYPES$1.RestElement;
1273
- argument: DestructuringPattern$1;
1274
- decorators: Decorator$1[];
1275
- optional: boolean;
1276
- typeAnnotation: TSTypeAnnotation$1 | undefined;
1277
- value: AssignmentPattern$1 | undefined;
1278
- }
1279
- declare interface ReturnStatement$1 extends BaseNode$1 {
1280
- type: AST_NODE_TYPES$1.ReturnStatement;
1281
- argument: Expression$1 | null;
1282
- }
1283
- declare interface SequenceExpression$1 extends BaseNode$1 {
1284
- type: AST_NODE_TYPES$1.SequenceExpression;
1285
- expressions: Expression$1[];
1286
- }
1287
- declare interface SourceLocation$1 {
1288
- /**
1289
- * The position of the first character after the parsed source region
1290
- */
1291
- end: Position$1;
1292
- /**
1293
- * The position of the first character of the parsed source region
1294
- */
1295
- start: Position$1;
1296
- }
1297
- declare interface SpreadElement$1 extends BaseNode$1 {
1298
- type: AST_NODE_TYPES$1.SpreadElement;
1299
- argument: Expression$1;
1300
- }
1301
- declare type Statement$1 = BlockStatement$1 | BreakStatement$1 | ClassDeclarationWithName$1 | ContinueStatement$1 | DebuggerStatement$1 | DoWhileStatement$1 | EmptyStatement$1 | ExportAllDeclaration$1 | ExportDefaultDeclaration$1 | ExportNamedDeclaration$1 | ExpressionStatement$1 | ForInStatement$1 | ForOfStatement$1 | ForStatement$1 | FunctionDeclarationWithName$1 | IfStatement$1 | ImportDeclaration$1 | LabeledStatement$1 | ReturnStatement$1 | SwitchStatement$1 | ThrowStatement$1 | TryStatement$1 | TSDeclareFunction$1 | TSEnumDeclaration$1 | TSExportAssignment$1 | TSImportEqualsDeclaration$1 | TSInterfaceDeclaration$1 | TSModuleDeclaration$1 | TSNamespaceExportDeclaration$1 | TSTypeAliasDeclaration$1 | VariableDeclaration$1 | WhileStatement$1 | WithStatement$1;
1302
- declare interface StaticBlock$1 extends BaseNode$1 {
1303
- type: AST_NODE_TYPES$1.StaticBlock;
1304
- body: Statement$1[];
1305
- }
1306
- declare interface StringLiteral$1 extends LiteralBase$1 {
1307
- value: string;
1308
- }
1309
- declare interface StringToken$1 extends BaseToken$1 {
1310
- type: AST_TOKEN_TYPES$1.String;
1311
- }
1312
- declare interface Super$1 extends BaseNode$1 {
1313
- type: AST_NODE_TYPES$1.Super;
1314
- }
1315
- declare interface SwitchCase$1 extends BaseNode$1 {
1316
- type: AST_NODE_TYPES$1.SwitchCase;
1317
- consequent: Statement$1[];
1318
- test: Expression$1 | null;
1319
- }
1320
- declare interface SwitchStatement$1 extends BaseNode$1 {
1321
- type: AST_NODE_TYPES$1.SwitchStatement;
1322
- cases: SwitchCase$1[];
1323
- discriminant: Expression$1;
1324
- }
1325
- declare interface SymmetricBinaryExpression$1 extends BaseNode$1 {
1326
- type: AST_NODE_TYPES$1.BinaryExpression;
1327
- left: Expression$1;
1328
- operator: ValueOf$1<BinaryOperatorToText$1>;
1329
- right: Expression$1;
1330
- }
1331
- declare interface TaggedTemplateExpression$1 extends BaseNode$1 {
1332
- type: AST_NODE_TYPES$1.TaggedTemplateExpression;
1333
- quasi: TemplateLiteral$1;
1334
- tag: Expression$1;
1335
- typeArguments: TSTypeParameterInstantiation$1 | undefined;
1336
- }
1337
- declare interface TemplateElement$1 extends BaseNode$1 {
1338
- type: AST_NODE_TYPES$1.TemplateElement;
1339
- tail: boolean;
1340
- value: {
1341
- cooked: string;
1342
- raw: string;
1343
- };
1344
- }
1345
- declare interface TemplateLiteral$1 extends BaseNode$1 {
1346
- type: AST_NODE_TYPES$1.TemplateLiteral;
1347
- expressions: Expression$1[];
1348
- quasis: TemplateElement$1[];
1349
- }
1350
- declare interface TemplateToken$1 extends BaseToken$1 {
1351
- type: AST_TOKEN_TYPES$1.Template;
1352
- }
1353
- declare interface ThisExpression$1 extends BaseNode$1 {
1354
- type: AST_NODE_TYPES$1.ThisExpression;
1355
- }
1356
- declare interface ThrowStatement$1 extends BaseNode$1 {
1357
- type: AST_NODE_TYPES$1.ThrowStatement;
1358
- argument: Expression$1;
1359
- }
1360
- declare type Token$1 = BooleanToken$1 | Comment$1 | IdentifierToken$1 | JSXIdentifierToken$1 | JSXTextToken$1 | KeywordToken$1 | NullToken$1 | NumericToken$1 | PrivateIdentifierToken$1 | PunctuatorToken$1 | RegularExpressionToken$1 | StringToken$1 | TemplateToken$1;
1361
- declare interface TryStatement$1 extends BaseNode$1 {
1362
- type: AST_NODE_TYPES$1.TryStatement;
1363
- block: BlockStatement$1;
1364
- finalizer: BlockStatement$1 | null;
1365
- handler: CatchClause$1 | null;
1366
- }
1367
- declare type TSAbstractAccessorProperty$1 = TSAbstractAccessorPropertyComputedName$1 | TSAbstractAccessorPropertyNonComputedName$1;
1368
- declare interface TSAbstractAccessorPropertyComputedName$1 extends PropertyDefinitionComputedNameBase$1 {
1369
- type: AST_NODE_TYPES$1.TSAbstractAccessorProperty;
1370
- value: null;
1371
- }
1372
- declare interface TSAbstractAccessorPropertyNonComputedName$1 extends PropertyDefinitionNonComputedNameBase$1 {
1373
- type: AST_NODE_TYPES$1.TSAbstractAccessorProperty;
1374
- value: null;
1375
- }
1376
- declare interface TSAbstractKeyword$1 extends BaseNode$1 {
1377
- type: AST_NODE_TYPES$1.TSAbstractKeyword;
1378
- }
1379
- declare type TSAbstractMethodDefinition$1 = TSAbstractMethodDefinitionComputedName$1 | TSAbstractMethodDefinitionNonComputedName$1;
1380
- declare interface TSAbstractMethodDefinitionComputedName$1 extends MethodDefinitionComputedNameBase$1 {
1381
- type: AST_NODE_TYPES$1.TSAbstractMethodDefinition;
1382
- }
1383
- declare interface TSAbstractMethodDefinitionNonComputedName$1 extends MethodDefinitionNonComputedNameBase$1 {
1384
- type: AST_NODE_TYPES$1.TSAbstractMethodDefinition;
1385
- }
1386
- declare type TSAbstractPropertyDefinition$1 = TSAbstractPropertyDefinitionComputedName$1 | TSAbstractPropertyDefinitionNonComputedName$1;
1387
- declare interface TSAbstractPropertyDefinitionComputedName$1 extends PropertyDefinitionComputedNameBase$1 {
1388
- type: AST_NODE_TYPES$1.TSAbstractPropertyDefinition;
1389
- value: null;
1390
- }
1391
- declare interface TSAbstractPropertyDefinitionNonComputedName$1 extends PropertyDefinitionNonComputedNameBase$1 {
1392
- type: AST_NODE_TYPES$1.TSAbstractPropertyDefinition;
1393
- value: null;
1394
- }
1395
- declare interface TSAnyKeyword$1 extends BaseNode$1 {
1396
- type: AST_NODE_TYPES$1.TSAnyKeyword;
1397
- }
1398
- declare interface TSArrayType$1 extends BaseNode$1 {
1399
- type: AST_NODE_TYPES$1.TSArrayType;
1400
- elementType: TypeNode$1;
1401
- }
1402
- declare interface TSAsExpression$1 extends BaseNode$1 {
1403
- type: AST_NODE_TYPES$1.TSAsExpression;
1404
- expression: Expression$1;
1405
- typeAnnotation: TypeNode$1;
1406
- }
1407
- declare interface TSAsyncKeyword$1 extends BaseNode$1 {
1408
- type: AST_NODE_TYPES$1.TSAsyncKeyword;
1409
- }
1410
- declare interface TSBigIntKeyword$1 extends BaseNode$1 {
1411
- type: AST_NODE_TYPES$1.TSBigIntKeyword;
1412
- }
1413
- declare interface TSBooleanKeyword$1 extends BaseNode$1 {
1414
- type: AST_NODE_TYPES$1.TSBooleanKeyword;
1415
- }
1416
- declare interface TSCallSignatureDeclaration$1 extends TSFunctionSignatureBase$1 {
1417
- type: AST_NODE_TYPES$1.TSCallSignatureDeclaration;
1418
- }
1419
- declare interface TSClassImplements$1 extends TSHeritageBase$1 {
1420
- type: AST_NODE_TYPES$1.TSClassImplements;
1421
- }
1422
- declare interface TSConditionalType$1 extends BaseNode$1 {
1423
- type: AST_NODE_TYPES$1.TSConditionalType;
1424
- checkType: TypeNode$1;
1425
- extendsType: TypeNode$1;
1426
- falseType: TypeNode$1;
1427
- trueType: TypeNode$1;
1428
- }
1429
- declare interface TSConstructorType$1 extends TSFunctionSignatureBase$1 {
1430
- type: AST_NODE_TYPES$1.TSConstructorType;
1431
- abstract: boolean;
1432
- }
1433
- declare interface TSConstructSignatureDeclaration$1 extends TSFunctionSignatureBase$1 {
1434
- type: AST_NODE_TYPES$1.TSConstructSignatureDeclaration;
1435
- }
1436
- declare type TSDeclareFunction$1 = TSDeclareFunctionNoDeclare$1 | TSDeclareFunctionWithDeclare$1;
1437
- declare interface TSDeclareFunctionBase$1 extends FunctionBase$1 {
1438
- type: AST_NODE_TYPES$1.TSDeclareFunction;
1439
- /**
1440
- * TS1183: An implementation cannot be declared in ambient contexts.
1441
- */
1442
- body: undefined;
1443
- /**
1444
- * Whether the declaration has `declare` modifier.
1445
- */
1446
- declare: boolean;
1447
- expression: false;
1448
- }
1449
- /**
1450
- * Function declaration without the `declare` keyword:
1451
- * ```
1452
- * function foo(): void;
1453
- * ```
1454
- * This can either be an overload signature or a declaration in an ambient context
1455
- * (e.g. `declare module`)
1456
- */
1457
- declare interface TSDeclareFunctionNoDeclare$1 extends TSDeclareFunctionBase$1 {
1458
- declare: false;
1459
- /**
1460
- * - TS1221: Generators are not allowed in an ambient context.
1461
- * - TS1222: An overload signature cannot be declared as a generator.
1462
- */
1463
- generator: false;
1464
- }
1465
- /**
1466
- * Function declaration with the `declare` keyword:
1467
- * ```
1468
- * declare function foo(): void;
1469
- * ```
1470
- */
1471
- declare interface TSDeclareFunctionWithDeclare$1 extends TSDeclareFunctionBase$1 {
1472
- /**
1473
- * TS1040: 'async' modifier cannot be used in an ambient context.
1474
- */
1475
- async: false;
1476
- declare: true;
1477
- /**
1478
- * TS1221: Generators are not allowed in an ambient context.
1479
- */
1480
- generator: false;
1481
- }
1482
- declare interface TSDeclareKeyword$1 extends BaseNode$1 {
1483
- type: AST_NODE_TYPES$1.TSDeclareKeyword;
1484
- }
1485
- declare interface TSEmptyBodyFunctionExpression$1 extends FunctionBase$1 {
1486
- type: AST_NODE_TYPES$1.TSEmptyBodyFunctionExpression;
1487
- body: null;
1488
- id: null;
1489
- }
1490
- declare interface TSEnumBody$1 extends BaseNode$1 {
1491
- type: AST_NODE_TYPES$1.TSEnumBody;
1492
- members: TSEnumMember$1[];
1493
- }
1494
- declare interface TSEnumDeclaration$1 extends BaseNode$1 {
1495
- type: AST_NODE_TYPES$1.TSEnumDeclaration;
1496
- /**
1497
- * The body of the enum.
1498
- */
1499
- body: TSEnumBody$1;
1500
- /**
1501
- * Whether this is a `const` enum.
1502
- * @example
1503
- * ```ts
1504
- * const enum Foo {}
1505
- * ```
1506
- */
1507
- const: boolean;
1508
- /**
1509
- * Whether this is a `declare`d enum.
1510
- * @example
1511
- * ```ts
1512
- * declare enum Foo {}
1513
- * ```
1514
- */
1515
- declare: boolean;
1516
- /**
1517
- * The enum name.
1518
- */
1519
- id: Identifier$1;
1520
- /**
1521
- * The enum members.
1522
- * @deprecated Use {@link body} instead.
1523
- */
1524
- members: TSEnumMember$1[];
1525
- }
1526
- declare interface TSEnumMember$1 extends BaseNode$1 {
1527
- type: AST_NODE_TYPES$1.TSEnumMember;
1528
- id: Identifier$1 | StringLiteral$1;
1529
- initializer: Expression$1 | undefined;
1530
- /**
1531
- * @deprecated the enum member is always non-computed.
1532
- */
1533
- computed: boolean;
1534
- }
1535
- declare interface TSExportAssignment$1 extends BaseNode$1 {
1536
- type: AST_NODE_TYPES$1.TSExportAssignment;
1537
- expression: Expression$1;
1538
- }
1539
- declare interface TSExportKeyword$1 extends BaseNode$1 {
1540
- type: AST_NODE_TYPES$1.TSExportKeyword;
1541
- }
1542
- declare interface TSExternalModuleReference$1 extends BaseNode$1 {
1543
- type: AST_NODE_TYPES$1.TSExternalModuleReference;
1544
- expression: StringLiteral$1;
1545
- }
1546
- declare interface TSFunctionSignatureBase$1 extends BaseNode$1 {
1547
- params: Parameter$1[];
1548
- returnType: TSTypeAnnotation$1 | undefined;
1549
- typeParameters: TSTypeParameterDeclaration$1 | undefined;
1550
- }
1551
- declare interface TSFunctionType$1 extends TSFunctionSignatureBase$1 {
1552
- type: AST_NODE_TYPES$1.TSFunctionType;
1553
- }
1554
- declare interface TSHeritageBase$1 extends BaseNode$1 {
1555
- expression: Expression$1;
1556
- typeArguments: TSTypeParameterInstantiation$1 | undefined;
1557
- }
1558
- declare type TSImportEqualsDeclaration$1 = TSImportEqualsNamespaceDeclaration$1 | TSImportEqualsRequireDeclaration$1;
1559
- declare interface TSImportEqualsDeclarationBase$1 extends BaseNode$1 {
1560
- type: AST_NODE_TYPES$1.TSImportEqualsDeclaration;
1561
- /**
1562
- * The locally imported name.
1563
- */
1564
- id: Identifier$1;
1565
- /**
1566
- * The kind of the import. Always `'value'` unless `moduleReference` is a
1567
- * `TSExternalModuleReference`.
1568
- */
1569
- importKind: ImportKind$1;
1570
- /**
1571
- * The value being aliased.
1572
- * @example
1573
- * ```ts
1574
- * import F1 = A;
1575
- * import F2 = A.B.C;
1576
- * import F3 = require('mod');
1577
- * ```
1578
- */
1579
- moduleReference: Identifier$1 | TSExternalModuleReference$1 | TSQualifiedName$1;
1580
- }
1581
- declare interface TSImportEqualsNamespaceDeclaration$1 extends TSImportEqualsDeclarationBase$1 {
1582
- /**
1583
- * The kind of the import.
1584
- */
1585
- importKind: 'value';
1586
- /**
1587
- * The value being aliased.
1588
- * ```
1589
- * import F1 = A;
1590
- * import F2 = A.B.C;
1591
- * ```
1592
- */
1593
- moduleReference: Identifier$1 | TSQualifiedName$1;
1594
- }
1595
- declare interface TSImportEqualsRequireDeclaration$1 extends TSImportEqualsDeclarationBase$1 {
1596
- /**
1597
- * The kind of the import.
1598
- */
1599
- importKind: ImportKind$1;
1600
- /**
1601
- * The value being aliased.
1602
- * ```
1603
- * import F3 = require('mod');
1604
- * ```
1605
- */
1606
- moduleReference: TSExternalModuleReference$1;
1607
- }
1608
- declare interface TSImportType$1 extends BaseNode$1 {
1609
- type: AST_NODE_TYPES$1.TSImportType;
1610
- /** @deprecated Use {@link `source`} instead. */
1611
- argument: TypeNode$1;
1612
- options: ObjectExpression$1 | null;
1613
- qualifier: EntityName$1 | null;
1614
- source: StringLiteral$1;
1615
- typeArguments: TSTypeParameterInstantiation$1 | null;
1616
- }
1617
- declare interface TSIndexedAccessType$1 extends BaseNode$1 {
1618
- type: AST_NODE_TYPES$1.TSIndexedAccessType;
1619
- indexType: TypeNode$1;
1620
- objectType: TypeNode$1;
1621
- }
1622
- declare interface TSIndexSignature$1 extends BaseNode$1 {
1623
- type: AST_NODE_TYPES$1.TSIndexSignature;
1624
- accessibility: Accessibility$1 | undefined;
1625
- parameters: Parameter$1[];
1626
- readonly: boolean;
1627
- static: boolean;
1628
- typeAnnotation: TSTypeAnnotation$1 | undefined;
1629
- }
1630
- declare interface TSInferType$1 extends BaseNode$1 {
1631
- type: AST_NODE_TYPES$1.TSInferType;
1632
- typeParameter: TSTypeParameter$1;
1633
- }
1634
- declare interface TSInstantiationExpression$1 extends BaseNode$1 {
1635
- type: AST_NODE_TYPES$1.TSInstantiationExpression;
1636
- expression: Expression$1;
1637
- typeArguments: TSTypeParameterInstantiation$1;
1638
- }
1639
- declare interface TSInterfaceBody$1 extends BaseNode$1 {
1640
- type: AST_NODE_TYPES$1.TSInterfaceBody;
1641
- body: TypeElement$1[];
1642
- }
1643
- declare interface TSInterfaceDeclaration$1 extends BaseNode$1 {
1644
- type: AST_NODE_TYPES$1.TSInterfaceDeclaration;
1645
- /**
1646
- * The body of the interface
1647
- */
1648
- body: TSInterfaceBody$1;
1649
- /**
1650
- * Whether the interface was `declare`d
1651
- */
1652
- declare: boolean;
1653
- /**
1654
- * The types this interface `extends`
1655
- */
1656
- extends: TSInterfaceHeritage$1[];
1657
- /**
1658
- * The name of this interface
1659
- */
1660
- id: Identifier$1;
1661
- /**
1662
- * The generic type parameters declared for the interface. Empty declaration
1663
- * (`<>`) is different from no declaration.
1664
- */
1665
- typeParameters: TSTypeParameterDeclaration$1 | undefined;
1666
- }
1667
- declare interface TSInterfaceHeritage$1 extends TSHeritageBase$1 {
1668
- type: AST_NODE_TYPES$1.TSInterfaceHeritage;
1669
- }
1670
- declare interface TSIntersectionType$1 extends BaseNode$1 {
1671
- type: AST_NODE_TYPES$1.TSIntersectionType;
1672
- types: TypeNode$1[];
1673
- }
1674
- declare interface TSIntrinsicKeyword$1 extends BaseNode$1 {
1675
- type: AST_NODE_TYPES$1.TSIntrinsicKeyword;
1676
- }
1677
- declare interface TSLiteralType$1 extends BaseNode$1 {
1678
- type: AST_NODE_TYPES$1.TSLiteralType;
1679
- literal: Exclude<LiteralExpression$1, NullLiteral$1 | RegExpLiteral$1> | UnaryExpressionMinus$1 | UnaryExpressionPlus$1;
1680
- }
1681
- declare interface TSMappedType$1 extends BaseNode$1 {
1682
- type: AST_NODE_TYPES$1.TSMappedType;
1683
- constraint: TypeNode$1;
1684
- key: Identifier$1;
1685
- nameType: TypeNode$1 | null;
1686
- optional: boolean | '+' | '-' | undefined;
1687
- readonly: boolean | '+' | '-' | undefined;
1688
- typeAnnotation: TypeNode$1 | undefined;
1689
- /** @deprecated Use {@link `constraint`} and {@link `key`} instead. */
1690
- typeParameter: TSTypeParameter$1;
1691
- }
1692
- declare type TSMethodSignature$1 = TSMethodSignatureComputedName$1 | TSMethodSignatureNonComputedName$1;
1693
- declare interface TSMethodSignatureBase$1 extends BaseNode$1 {
1694
- type: AST_NODE_TYPES$1.TSMethodSignature;
1695
- accessibility: Accessibility$1 | undefined;
1696
- computed: boolean;
1697
- key: PropertyName$1;
1698
- kind: 'get' | 'method' | 'set';
1699
- optional: boolean;
1700
- params: Parameter$1[];
1701
- readonly: boolean;
1702
- returnType: TSTypeAnnotation$1 | undefined;
1703
- static: boolean;
1704
- typeParameters: TSTypeParameterDeclaration$1 | undefined;
1705
- }
1706
- declare interface TSMethodSignatureComputedName$1 extends TSMethodSignatureBase$1 {
1707
- computed: true;
1708
- key: PropertyNameComputed$1;
1709
- }
1710
- declare interface TSMethodSignatureNonComputedName$1 extends TSMethodSignatureBase$1 {
1711
- computed: false;
1712
- key: PropertyNameNonComputed$1;
1713
- }
1714
- declare interface TSModuleBlock$1 extends BaseNode$1 {
1715
- type: AST_NODE_TYPES$1.TSModuleBlock;
1716
- body: ProgramStatement$1[];
1717
- }
1718
- declare type TSModuleDeclaration$1 = TSModuleDeclarationGlobal$1 | TSModuleDeclarationModule$1 | TSModuleDeclarationNamespace$1;
1719
- declare interface TSModuleDeclarationBase$1 extends BaseNode$1 {
1720
- type: AST_NODE_TYPES$1.TSModuleDeclaration;
1721
- /**
1722
- * The body of the module.
1723
- * This can only be `undefined` for the code `declare module 'mod';`
1724
- */
1725
- body?: TSModuleBlock$1;
1726
- /**
1727
- * Whether the module is `declare`d
1728
- * @example
1729
- * ```ts
1730
- * declare namespace F {}
1731
- * ```
1732
- */
1733
- declare: boolean;
1734
- /**
1735
- * Whether this is a global declaration
1736
- * @example
1737
- * ```ts
1738
- * declare global {}
1739
- * ```
1740
- *
1741
- * @deprecated Use {@link kind} instead
1742
- */
1743
- global: boolean;
1744
- /**
1745
- * The name of the module
1746
- * ```
1747
- * namespace A {}
1748
- * namespace A.B.C {}
1749
- * module 'a' {}
1750
- * ```
1751
- */
1752
- id: Identifier$1 | Literal$1 | TSQualifiedName$1;
1753
- /**
1754
- * The keyword used to define this module declaration
1755
- * @example
1756
- * ```ts
1757
- * namespace Foo {}
1758
- * ^^^^^^^^^
1759
- *
1760
- * module 'foo' {}
1761
- * ^^^^^^
1762
- *
1763
- * global {}
1764
- * ^^^^^^
1765
- * ```
1766
- */
1767
- kind: TSModuleDeclarationKind$1;
1768
- }
1769
- declare interface TSModuleDeclarationGlobal$1 extends TSModuleDeclarationBase$1 {
1770
- body: TSModuleBlock$1;
1771
- /**
1772
- * This will always be an Identifier with name `global`
1773
- */
1774
- id: Identifier$1;
1775
- kind: 'global';
1776
- }
1777
- declare type TSModuleDeclarationKind$1 = 'global' | 'module' | 'namespace';
1778
- declare type TSModuleDeclarationModule$1 = TSModuleDeclarationModuleWithIdentifierId$1 | TSModuleDeclarationModuleWithStringId$1;
1779
- declare interface TSModuleDeclarationModuleBase$1 extends TSModuleDeclarationBase$1 {
1780
- kind: 'module';
1781
- }
1782
- /**
1783
- * The legacy module declaration, replaced with namespace declarations.
1784
- * ```
1785
- * module A {}
1786
- * ```
1787
- */
1788
- declare interface TSModuleDeclarationModuleWithIdentifierId$1 extends TSModuleDeclarationModuleBase$1 {
1789
- body: TSModuleBlock$1;
1790
- id: Identifier$1;
1791
- kind: 'module';
1792
- }
1793
- declare type TSModuleDeclarationModuleWithStringId$1 = TSModuleDeclarationModuleWithStringIdDeclared$1 | TSModuleDeclarationModuleWithStringIdNotDeclared$1;
1794
- /**
1795
- * A string module declaration that is declared:
1796
- * ```
1797
- * declare module 'foo' {}
1798
- * declare module 'foo';
1799
- * ```
1800
- */
1801
- declare interface TSModuleDeclarationModuleWithStringIdDeclared$1 extends TSModuleDeclarationModuleBase$1 {
1802
- body?: TSModuleBlock$1;
1803
- declare: true;
1804
- id: StringLiteral$1;
1805
- kind: 'module';
1806
- }
1807
- /**
1808
- * A string module declaration that is not declared:
1809
- * ```
1810
- * module 'foo' {}
1811
- * ```
1812
- */
1813
- declare interface TSModuleDeclarationModuleWithStringIdNotDeclared$1 extends TSModuleDeclarationModuleBase$1 {
1814
- body: TSModuleBlock$1;
1815
- declare: false;
1816
- id: StringLiteral$1;
1817
- kind: 'module';
1818
- }
1819
- declare interface TSModuleDeclarationNamespace$1 extends TSModuleDeclarationBase$1 {
1820
- body: TSModuleBlock$1;
1821
- id: Identifier$1 | TSQualifiedName$1;
1822
- kind: 'namespace';
1823
- }
1824
- declare interface TSNamedTupleMember$1 extends BaseNode$1 {
1825
- type: AST_NODE_TYPES$1.TSNamedTupleMember;
1826
- elementType: TypeNode$1;
1827
- label: Identifier$1;
1828
- optional: boolean;
1829
- }
1830
- /**
1831
- * For the following declaration:
1832
- * ```
1833
- * export as namespace X;
1834
- * ```
1835
- */
1836
- declare interface TSNamespaceExportDeclaration$1 extends BaseNode$1 {
1837
- type: AST_NODE_TYPES$1.TSNamespaceExportDeclaration;
1838
- /**
1839
- * The name of the global variable that's exported as namespace
1840
- */
1841
- id: Identifier$1;
1842
- }
1843
- declare interface TSNeverKeyword$1 extends BaseNode$1 {
1844
- type: AST_NODE_TYPES$1.TSNeverKeyword;
1845
- }
1846
- declare interface TSNonNullExpression$1 extends BaseNode$1 {
1847
- type: AST_NODE_TYPES$1.TSNonNullExpression;
1848
- expression: Expression$1;
1849
- }
1850
- declare interface TSNullKeyword$1 extends BaseNode$1 {
1851
- type: AST_NODE_TYPES$1.TSNullKeyword;
1852
- }
1853
- declare interface TSNumberKeyword$1 extends BaseNode$1 {
1854
- type: AST_NODE_TYPES$1.TSNumberKeyword;
1855
- }
1856
- declare interface TSObjectKeyword$1 extends BaseNode$1 {
1857
- type: AST_NODE_TYPES$1.TSObjectKeyword;
1858
- }
1859
- declare interface TSOptionalType$1 extends BaseNode$1 {
1860
- type: AST_NODE_TYPES$1.TSOptionalType;
1861
- typeAnnotation: TypeNode$1;
1862
- }
1863
- declare interface TSParameterProperty$1 extends BaseNode$1 {
1864
- type: AST_NODE_TYPES$1.TSParameterProperty;
1865
- accessibility: Accessibility$1 | undefined;
1866
- decorators: Decorator$1[];
1867
- override: boolean;
1868
- parameter: ParameterPropertyParameter$1;
1869
- readonly: boolean;
1870
- static: boolean;
1871
- }
1872
- declare interface TSPrivateKeyword$1 extends BaseNode$1 {
1873
- type: AST_NODE_TYPES$1.TSPrivateKeyword;
1874
- }
1875
- declare type TSPropertySignature$1 = TSPropertySignatureComputedName$1 | TSPropertySignatureNonComputedName$1;
1876
- declare interface TSPropertySignatureBase$1 extends BaseNode$1 {
1877
- type: AST_NODE_TYPES$1.TSPropertySignature;
1878
- accessibility: Accessibility$1 | undefined;
1879
- computed: boolean;
1880
- key: PropertyName$1;
1881
- optional: boolean;
1882
- readonly: boolean;
1883
- static: boolean;
1884
- typeAnnotation: TSTypeAnnotation$1 | undefined;
1885
- }
1886
- declare interface TSPropertySignatureComputedName$1 extends TSPropertySignatureBase$1 {
1887
- computed: true;
1888
- key: PropertyNameComputed$1;
1889
- }
1890
- declare interface TSPropertySignatureNonComputedName$1 extends TSPropertySignatureBase$1 {
1891
- computed: false;
1892
- key: PropertyNameNonComputed$1;
1893
- }
1894
- declare interface TSProtectedKeyword$1 extends BaseNode$1 {
1895
- type: AST_NODE_TYPES$1.TSProtectedKeyword;
1896
- }
1897
- declare interface TSPublicKeyword$1 extends BaseNode$1 {
1898
- type: AST_NODE_TYPES$1.TSPublicKeyword;
1899
- }
1900
- declare interface TSQualifiedName$1 extends BaseNode$1 {
1901
- type: AST_NODE_TYPES$1.TSQualifiedName;
1902
- left: EntityName$1;
1903
- right: Identifier$1;
1904
- }
1905
- declare interface TSReadonlyKeyword$1 extends BaseNode$1 {
1906
- type: AST_NODE_TYPES$1.TSReadonlyKeyword;
1907
- }
1908
- declare interface TSRestType$1 extends BaseNode$1 {
1909
- type: AST_NODE_TYPES$1.TSRestType;
1910
- typeAnnotation: TypeNode$1;
1911
- }
1912
- declare interface TSSatisfiesExpression$1 extends BaseNode$1 {
1913
- type: AST_NODE_TYPES$1.TSSatisfiesExpression;
1914
- expression: Expression$1;
1915
- typeAnnotation: TypeNode$1;
1916
- }
1917
- declare interface TSStaticKeyword$1 extends BaseNode$1 {
1918
- type: AST_NODE_TYPES$1.TSStaticKeyword;
1919
- }
1920
- declare interface TSStringKeyword$1 extends BaseNode$1 {
1921
- type: AST_NODE_TYPES$1.TSStringKeyword;
1922
- }
1923
- declare interface TSSymbolKeyword$1 extends BaseNode$1 {
1924
- type: AST_NODE_TYPES$1.TSSymbolKeyword;
1925
- }
1926
- declare interface TSTemplateLiteralType$1 extends BaseNode$1 {
1927
- type: AST_NODE_TYPES$1.TSTemplateLiteralType;
1928
- quasis: TemplateElement$1[];
1929
- types: TypeNode$1[];
1930
- }
1931
- declare interface TSThisType$1 extends BaseNode$1 {
1932
- type: AST_NODE_TYPES$1.TSThisType;
1933
- }
1934
- declare interface TSTupleType$1 extends BaseNode$1 {
1935
- type: AST_NODE_TYPES$1.TSTupleType;
1936
- elementTypes: TypeNode$1[];
1937
- }
1938
- declare interface TSTypeAliasDeclaration$1 extends BaseNode$1 {
1939
- type: AST_NODE_TYPES$1.TSTypeAliasDeclaration;
1940
- /**
1941
- * Whether the type was `declare`d.
1942
- * @example
1943
- * ```ts
1944
- * declare type T = 1;
1945
- * ```
1946
- */
1947
- declare: boolean;
1948
- /**
1949
- * The name of the type.
1950
- */
1951
- id: Identifier$1;
1952
- /**
1953
- * The "value" (type) of the declaration
1954
- */
1955
- typeAnnotation: TypeNode$1;
1956
- /**
1957
- * The generic type parameters declared for the type. Empty declaration
1958
- * (`<>`) is different from no declaration.
1959
- */
1960
- typeParameters: TSTypeParameterDeclaration$1 | undefined;
1961
- }
1962
- declare interface TSTypeAnnotation$1 extends BaseNode$1 {
1963
- type: AST_NODE_TYPES$1.TSTypeAnnotation;
1964
- typeAnnotation: TypeNode$1;
1965
- }
1966
- declare interface TSTypeAssertion$1 extends BaseNode$1 {
1967
- type: AST_NODE_TYPES$1.TSTypeAssertion;
1968
- expression: Expression$1;
1969
- typeAnnotation: TypeNode$1;
1970
- }
1971
- declare interface TSTypeLiteral$1 extends BaseNode$1 {
1972
- type: AST_NODE_TYPES$1.TSTypeLiteral;
1973
- members: TypeElement$1[];
1974
- }
1975
- declare interface TSTypeOperator$1 extends BaseNode$1 {
1976
- type: AST_NODE_TYPES$1.TSTypeOperator;
1977
- operator: 'keyof' | 'readonly' | 'unique';
1978
- typeAnnotation: TypeNode$1 | undefined;
1979
- }
1980
- declare interface TSTypeParameter$1 extends BaseNode$1 {
1981
- type: AST_NODE_TYPES$1.TSTypeParameter;
1982
- const: boolean;
1983
- constraint: TypeNode$1 | undefined;
1984
- default: TypeNode$1 | undefined;
1985
- in: boolean;
1986
- name: Identifier$1;
1987
- out: boolean;
1988
- }
1989
- declare interface TSTypeParameterDeclaration$1 extends BaseNode$1 {
1990
- type: AST_NODE_TYPES$1.TSTypeParameterDeclaration;
1991
- params: TSTypeParameter$1[];
1992
- }
1993
- declare interface TSTypeParameterInstantiation$1 extends BaseNode$1 {
1994
- type: AST_NODE_TYPES$1.TSTypeParameterInstantiation;
1995
- params: TypeNode$1[];
1996
- }
1997
- declare interface TSTypePredicate$1 extends BaseNode$1 {
1998
- type: AST_NODE_TYPES$1.TSTypePredicate;
1999
- asserts: boolean;
2000
- parameterName: Identifier$1 | TSThisType$1;
2001
- typeAnnotation: TSTypeAnnotation$1 | null;
2002
- }
2003
- declare interface TSTypeQuery$1 extends BaseNode$1 {
2004
- type: AST_NODE_TYPES$1.TSTypeQuery;
2005
- exprName: EntityName$1 | TSImportType$1;
2006
- typeArguments: TSTypeParameterInstantiation$1 | undefined;
2007
- }
2008
- declare interface TSTypeReference$1 extends BaseNode$1 {
2009
- type: AST_NODE_TYPES$1.TSTypeReference;
2010
- typeArguments: TSTypeParameterInstantiation$1 | undefined;
2011
- typeName: EntityName$1;
2012
- }
2013
- declare interface TSUndefinedKeyword$1 extends BaseNode$1 {
2014
- type: AST_NODE_TYPES$1.TSUndefinedKeyword;
2015
- }
2016
- declare interface TSUnionType$1 extends BaseNode$1 {
2017
- type: AST_NODE_TYPES$1.TSUnionType;
2018
- types: TypeNode$1[];
2019
- }
2020
- declare interface TSUnknownKeyword$1 extends BaseNode$1 {
2021
- type: AST_NODE_TYPES$1.TSUnknownKeyword;
2022
- }
2023
- declare interface TSVoidKeyword$1 extends BaseNode$1 {
2024
- type: AST_NODE_TYPES$1.TSVoidKeyword;
2025
- }
2026
- declare type TypeElement$1 = TSCallSignatureDeclaration$1 | TSConstructSignatureDeclaration$1 | TSIndexSignature$1 | TSMethodSignature$1 | TSPropertySignature$1;
2027
- declare type TypeNode$1 = TSAbstractKeyword$1 | TSAnyKeyword$1 | TSArrayType$1 | TSAsyncKeyword$1 | TSBigIntKeyword$1 | TSBooleanKeyword$1 | TSConditionalType$1 | TSConstructorType$1 | TSDeclareKeyword$1 | TSExportKeyword$1 | TSFunctionType$1 | TSImportType$1 | TSIndexedAccessType$1 | TSInferType$1 | TSIntersectionType$1 | TSIntrinsicKeyword$1 | TSLiteralType$1 | TSMappedType$1 | TSNamedTupleMember$1 | TSNeverKeyword$1 | TSNullKeyword$1 | TSNumberKeyword$1 | TSObjectKeyword$1 | TSOptionalType$1 | TSPrivateKeyword$1 | TSProtectedKeyword$1 | TSPublicKeyword$1 | TSQualifiedName$1 | TSReadonlyKeyword$1 | TSRestType$1 | TSStaticKeyword$1 | TSStringKeyword$1 | TSSymbolKeyword$1 | TSTemplateLiteralType$1 | TSThisType$1 | TSTupleType$1 | TSTypeLiteral$1 | TSTypeOperator$1 | TSTypePredicate$1 | TSTypeQuery$1 | TSTypeReference$1 | TSUndefinedKeyword$1 | TSUnionType$1 | TSUnknownKeyword$1 | TSVoidKeyword$1;
2028
- declare type UnaryExpression$1 = UnaryExpressionBitwiseNot$1 | UnaryExpressionDelete$1 | UnaryExpressionMinus$1 | UnaryExpressionNot$1 | UnaryExpressionPlus$1 | UnaryExpressionTypeof$1 | UnaryExpressionVoid$1;
2029
- declare interface UnaryExpressionBase$1 extends BaseNode$1 {
2030
- argument: Expression$1;
2031
- operator: string;
2032
- prefix: boolean;
2033
- }
2034
- declare type UnaryExpressionBitwiseNot$1 = UnaryExpressionSpecific$1<'~'>;
2035
- declare type UnaryExpressionDelete$1 = UnaryExpressionSpecific$1<'delete'>;
2036
- declare type UnaryExpressionMinus$1 = UnaryExpressionSpecific$1<'-'>;
2037
- declare type UnaryExpressionNot$1 = UnaryExpressionSpecific$1<'!'>;
2038
- declare type UnaryExpressionPlus$1 = UnaryExpressionSpecific$1<'+'>;
2039
- declare interface UnaryExpressionSpecific$1<T extends string> extends UnaryExpressionBase$1 {
2040
- type: AST_NODE_TYPES$1.UnaryExpression;
2041
- operator: T;
2042
- }
2043
- declare type UnaryExpressionTypeof$1 = UnaryExpressionSpecific$1<'typeof'>;
2044
- declare type UnaryExpressionVoid$1 = UnaryExpressionSpecific$1<'void'>;
2045
- declare interface UpdateExpression$1 extends UnaryExpressionBase$1 {
2046
- type: AST_NODE_TYPES$1.UpdateExpression;
2047
- operator: '++' | '--';
2048
- }
2049
- declare type UsingDeclaration$1 = UsingInForOfDeclaration$1 | UsingInNormalContextDeclaration$1;
2050
- declare interface UsingDeclarationBase$1 extends BaseNode$1 {
2051
- type: AST_NODE_TYPES$1.VariableDeclaration;
2052
- /**
2053
- * This value will always be `false`
2054
- * because 'declare' modifier cannot appear on a 'using' declaration.
2055
- */
2056
- declare: false;
2057
- /**
2058
- * The keyword used to declare the variable(s)
2059
- * @example
2060
- * ```ts
2061
- * using x = 1;
2062
- * await using y = 2;
2063
- * ```
2064
- */
2065
- kind: 'await using' | 'using';
2066
- }
2067
- declare type UsingDeclarator$1 = UsingInForOfDeclarator$1 | UsingInNormalContextDeclarator$1;
2068
- declare interface UsingInForOfDeclaration$1 extends UsingDeclarationBase$1 {
2069
- /**
2070
- * The variables declared by this declaration.
2071
- * Always has exactly one element.
2072
- * @example
2073
- * ```ts
2074
- * for (using x of y) {}
2075
- * ```
2076
- */
2077
- declarations: [UsingInForOfDeclarator$1];
2078
- }
2079
- declare interface UsingInForOfDeclarator$1 extends VariableDeclaratorBase$1 {
2080
- definite: false;
2081
- id: Identifier$1;
2082
- init: null;
2083
- }
2084
- declare interface UsingInNormalContextDeclaration$1 extends UsingDeclarationBase$1 {
2085
- /**
2086
- * The variables declared by this declaration.
2087
- * Always non-empty.
2088
- * @example
2089
- * ```ts
2090
- * using x = 1;
2091
- * using y = 1, z = 2;
2092
- * ```
2093
- */
2094
- declarations: UsingInNormalContextDeclarator$1[];
2095
- }
2096
- declare interface UsingInNormalContextDeclarator$1 extends VariableDeclaratorBase$1 {
2097
- definite: false;
2098
- id: Identifier$1;
2099
- init: Expression$1;
2100
- }
2101
- declare type ValueOf$1<T> = T[keyof T];
2102
- declare type VariableDeclaration$1 = LetOrConstOrVarDeclaration$1 | UsingDeclaration$1;
2103
- declare type VariableDeclarator$1 = LetOrConstOrVarDeclarator$1 | UsingDeclarator$1;
2104
- declare interface VariableDeclaratorBase$1 extends BaseNode$1 {
2105
- type: AST_NODE_TYPES$1.VariableDeclarator;
2106
- /**
2107
- * Whether there's definite assignment assertion (`let x!: number`).
2108
- * If `true`, then: `id` must be an identifier with a type annotation,
2109
- * `init` must be `null`, and the declarator must be a `var`/`let` declarator.
2110
- */
2111
- definite: boolean;
2112
- /**
2113
- * The name(s) of the variable(s).
2114
- */
2115
- id: BindingName$1;
2116
- /**
2117
- * The initializer expression of the variable. Must be present for `const` unless
2118
- * in a `declare const`.
2119
- */
2120
- init: Expression$1 | null;
2121
- }
2122
- declare interface VariableDeclaratorDefiniteAssignment$1 extends VariableDeclaratorBase$1 {
2123
- definite: true;
2124
- /**
2125
- * The name of the variable. Must have a type annotation.
2126
- */
2127
- id: Identifier$1;
2128
- init: null;
2129
- }
2130
- declare interface VariableDeclaratorMaybeInit$1 extends VariableDeclaratorBase$1 {
2131
- definite: false;
2132
- }
2133
- declare interface VariableDeclaratorNoInit$1 extends VariableDeclaratorBase$1 {
2134
- definite: false;
2135
- init: null;
2136
- }
2137
- declare interface WhileStatement$1 extends BaseNode$1 {
2138
- type: AST_NODE_TYPES$1.WhileStatement;
2139
- body: Statement$1;
2140
- test: Expression$1;
2141
- }
2142
- declare interface WithStatement$1 extends BaseNode$1 {
2143
- type: AST_NODE_TYPES$1.WithStatement;
2144
- body: Statement$1;
2145
- object: Expression$1;
2146
- }
2147
- declare interface YieldExpression$1 extends BaseNode$1 {
2148
- type: AST_NODE_TYPES$1.YieldExpression;
2149
- argument: Expression$1 | null;
2150
- delegate: boolean;
2151
- }
2152
-
2153
- type Lib = 'decorators' | 'decorators.legacy' | 'dom' | 'dom.asynciterable' | 'dom.iterable' | 'es5' | 'es6' | 'es7' | 'es2015' | 'es2015.collection' | 'es2015.core' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' | 'es2015.proxy' | 'es2015.reflect' | 'es2015.symbol' | 'es2015.symbol.wellknown' | 'es2016' | 'es2016.array.include' | 'es2016.full' | 'es2016.intl' | 'es2017' | 'es2017.arraybuffer' | 'es2017.date' | 'es2017.full' | 'es2017.intl' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' | 'es2017.typedarrays' | 'es2018' | 'es2018.asyncgenerator' | 'es2018.asynciterable' | 'es2018.full' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' | 'es2019' | 'es2019.array' | 'es2019.full' | 'es2019.intl' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' | 'es2020' | 'es2020.bigint' | 'es2020.date' | 'es2020.full' | 'es2020.intl' | 'es2020.number' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' | 'es2021' | 'es2021.full' | 'es2021.intl' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' | 'es2022' | 'es2022.array' | 'es2022.error' | 'es2022.full' | 'es2022.intl' | 'es2022.object' | 'es2022.regexp' | 'es2022.string' | 'es2023' | 'es2023.array' | 'es2023.collection' | 'es2023.full' | 'es2023.intl' | 'es2024' | 'es2024.arraybuffer' | 'es2024.collection' | 'es2024.full' | 'es2024.object' | 'es2024.promise' | 'es2024.regexp' | 'es2024.sharedmemory' | 'es2024.string' | 'esnext' | 'esnext.array' | 'esnext.asynciterable' | 'esnext.bigint' | 'esnext.collection' | 'esnext.decorators' | 'esnext.disposable' | 'esnext.error' | 'esnext.float16' | 'esnext.full' | 'esnext.intl' | 'esnext.iterator' | 'esnext.object' | 'esnext.promise' | 'esnext.regexp' | 'esnext.sharedmemory' | 'esnext.string' | 'esnext.symbol' | 'esnext.weakref' | 'lib' | 'scripthost' | 'webworker' | 'webworker.asynciterable' | 'webworker.importscripts' | 'webworker.iterable';
2154
-
2155
- type DebugLevel = boolean | ('eslint' | 'typescript' | 'typescript-eslint')[];
2156
- type CacheDurationSeconds = number | 'Infinity';
2157
- type EcmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | 2026 | 'latest' | undefined;
2158
- type SourceTypeClassic = 'module' | 'script';
2159
- type SourceType = 'commonjs' | SourceTypeClassic;
2160
- type JSDocParsingMode = 'all' | 'none' | 'type-info';
2161
- /**
2162
- * Granular options to configure the project service.
2163
- */
2164
- interface ProjectServiceOptions {
2165
- /**
2166
- * Globs of files to allow running with the default project compiler options
2167
- * despite not being matched by the project service.
2168
- */
2169
- allowDefaultProject?: string[];
2170
- /**
2171
- * Path to a TSConfig to use instead of TypeScript's default project configuration.
2172
- * @default 'tsconfig.json'
2173
- */
2174
- defaultProject?: string;
2175
- /**
2176
- * Whether to allow TypeScript plugins as configured in the TSConfig.
2177
- */
2178
- loadTypeScriptPlugins?: boolean;
2179
- /**
2180
- * The maximum number of files {@link allowDefaultProject} may match.
2181
- * Each file match slows down linting, so if you do need to use this, please
2182
- * file an informative issue on typescript-eslint explaining why - so we can
2183
- * help you avoid using it!
2184
- * @default 8
2185
- */
2186
- maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING?: number;
2187
- }
2188
- interface ParserOptions {
2189
- [additionalProperties: string]: unknown;
2190
- cacheLifetime?: {
2191
- glob?: CacheDurationSeconds;
2192
- };
2193
- debugLevel?: DebugLevel;
2194
- ecmaFeatures?: {
2195
- [key: string]: unknown;
2196
- globalReturn?: boolean | undefined;
2197
- jsx?: boolean | undefined;
2198
- } | undefined;
2199
- ecmaVersion?: EcmaVersion;
2200
- emitDecoratorMetadata?: boolean;
2201
- errorOnTypeScriptSyntacticAndSemanticIssues?: boolean;
2202
- errorOnUnknownASTType?: boolean;
2203
- experimentalDecorators?: boolean;
2204
- extraFileExtensions?: string[];
2205
- filePath?: string;
2206
- isolatedDeclarations?: boolean;
2207
- jsDocParsingMode?: JSDocParsingMode;
2208
- jsxFragmentName?: string | null;
2209
- jsxPragma?: string | null;
2210
- lib?: Lib[];
2211
- programs?: Program$2[] | null;
2212
- project?: boolean | string | string[] | null;
2213
- projectFolderIgnoreList?: string[];
2214
- projectService?: boolean | ProjectServiceOptions;
2215
- range?: boolean;
2216
- sourceType?: SourceType | undefined;
2217
- tokens?: boolean;
2218
- tsconfigRootDir?: string;
2219
- warnOnUnsupportedTypeScriptVersion?: boolean;
2220
- }
2221
-
2222
- declare module "./index" {
2223
- interface BaseNode {
2224
- parent: Node$1;
2225
- }
2226
- interface Program {
2227
- /**
2228
- * @remarks This never-used property exists only as a convenience for code that tries to access node parents repeatedly.
2229
- */
2230
- parent?: never;
2231
- }
2232
- interface AccessorPropertyComputedName {
2233
- parent: ClassBody$1;
2234
- }
2235
- interface AccessorPropertyNonComputedName {
2236
- parent: ClassBody$1;
2237
- }
2238
- interface TSAbstractAccessorPropertyComputedName {
2239
- parent: ClassBody$1;
2240
- }
2241
- interface TSAbstractAccessorPropertyNonComputedName {
2242
- parent: ClassBody$1;
2243
- }
2244
- interface VariableDeclaratorDefiniteAssignment {
2245
- parent: VariableDeclaration$1;
2246
- }
2247
- interface VariableDeclaratorMaybeInit {
2248
- parent: VariableDeclaration$1;
2249
- }
2250
- interface VariableDeclaratorNoInit {
2251
- parent: VariableDeclaration$1;
2252
- }
2253
- interface UsingInForOfDeclarator {
2254
- parent: VariableDeclaration$1;
2255
- }
2256
- interface UsingInNormalContextDeclarator {
2257
- parent: VariableDeclaration$1;
2258
- }
2259
- interface CatchClause {
2260
- parent: TryStatement$1;
2261
- }
2262
- interface ClassBody {
2263
- parent: ClassDeclaration$1 | ClassExpression$1;
2264
- }
2265
- interface ImportAttribute {
2266
- parent: ExportAllDeclaration$1 | ExportNamedDeclaration$1 | ImportDeclaration$1 | TSImportType$1;
2267
- }
2268
- interface ImportDefaultSpecifier {
2269
- parent: ImportDeclaration$1;
2270
- }
2271
- interface ImportNamespaceSpecifier {
2272
- parent: ImportDeclaration$1;
2273
- }
2274
- interface ImportSpecifier {
2275
- parent: ExportAllDeclaration$1 | ExportNamedDeclaration$1 | ImportDeclaration$1;
2276
- }
2277
- interface ExportDefaultDeclaration {
2278
- parent: BlockStatement$1 | Program$1 | TSModuleBlock$1;
2279
- }
2280
- interface ExportNamedDeclarationWithoutSourceWithMultiple {
2281
- parent: BlockStatement$1 | Program$1 | TSModuleBlock$1;
2282
- }
2283
- interface ExportNamedDeclarationWithoutSourceWithSingle {
2284
- parent: BlockStatement$1 | Program$1 | TSModuleBlock$1;
2285
- }
2286
- interface ExportNamedDeclarationWithSource {
2287
- parent: BlockStatement$1 | Program$1 | TSModuleBlock$1;
2288
- }
2289
- interface FunctionDeclarationWithName {
2290
- parent: BlockStatement$1 | ExportDefaultDeclaration$1 | ExportNamedDeclaration$1 | Program$1;
2291
- }
2292
- interface FunctionDeclarationWithOptionalName {
2293
- parent: ExportDefaultDeclaration$1;
2294
- }
2295
- interface JSXAttribute {
2296
- parent: JSXOpeningElement$1;
2297
- }
2298
- interface JSXClosingElement {
2299
- parent: JSXElement$1;
2300
- }
2301
- interface JSXClosingFragment {
2302
- parent: JSXFragment$1;
2303
- }
2304
- interface JSXOpeningElement {
2305
- parent: JSXElement$1;
2306
- }
2307
- interface JSXOpeningFragment {
2308
- parent: JSXFragment$1;
2309
- }
2310
- interface JSXSpreadAttribute {
2311
- parent: JSXOpeningElement$1;
2312
- }
2313
- interface MethodDefinitionComputedName {
2314
- parent: ClassBody$1;
2315
- }
2316
- interface MethodDefinitionNonComputedName {
2317
- parent: ClassBody$1;
2318
- }
2319
- interface TSAbstractMethodDefinitionComputedName {
2320
- parent: ClassBody$1;
2321
- }
2322
- interface TSAbstractMethodDefinitionNonComputedName {
2323
- parent: ClassBody$1;
2324
- }
2325
- interface PropertyComputedName {
2326
- parent: ObjectExpression$1 | ObjectPattern$1;
2327
- }
2328
- interface PropertyNonComputedName {
2329
- parent: ObjectExpression$1 | ObjectPattern$1;
2330
- }
2331
- interface PropertyDefinitionComputedName {
2332
- parent: ClassBody$1;
2333
- }
2334
- interface PropertyDefinitionNonComputedName {
2335
- parent: ClassBody$1;
2336
- }
2337
- interface TSAbstractPropertyDefinitionComputedName {
2338
- parent: ClassBody$1;
2339
- }
2340
- interface TSAbstractPropertyDefinitionNonComputedName {
2341
- parent: ClassBody$1;
2342
- }
2343
- interface SpreadElement {
2344
- parent: ArrayExpression$1 | CallExpression$1 | NewExpression$1 | ObjectExpression$1;
2345
- }
2346
- interface StaticBlock {
2347
- parent: ClassBody$1;
2348
- }
2349
- interface SwitchCase {
2350
- parent: SwitchStatement$1;
2351
- }
2352
- interface TemplateElement {
2353
- parent: TemplateLiteral$1 | TSTemplateLiteralType$1;
2354
- }
2355
- interface TSCallSignatureDeclaration {
2356
- parent: TSInterfaceBody$1 | TSTypeLiteral$1;
2357
- }
2358
- interface TSConstructSignatureDeclaration {
2359
- parent: TSInterfaceBody$1 | TSTypeLiteral$1;
2360
- }
2361
- interface TSClassImplements {
2362
- parent: ClassDeclaration$1 | ClassExpression$1;
2363
- }
2364
- interface TSEnumBody {
2365
- parent: TSEnumDeclaration$1;
2366
- }
2367
- interface TSEnumMember {
2368
- parent: TSEnumBody$1;
2369
- }
2370
- interface TSIndexSignature {
2371
- parent: ClassBody$1 | TSInterfaceBody$1 | TSTypeLiteral$1;
2372
- }
2373
- interface TSInterfaceBody {
2374
- parent: TSInterfaceDeclaration$1;
2375
- }
2376
- interface TSInterfaceHeritage {
2377
- parent: TSInterfaceBody$1;
2378
- }
2379
- interface TSMethodSignatureComputedName {
2380
- parent: TSInterfaceBody$1 | TSTypeLiteral$1;
2381
- }
2382
- interface TSMethodSignatureNonComputedName {
2383
- parent: TSInterfaceBody$1 | TSTypeLiteral$1;
2384
- }
2385
- interface TSModuleBlock {
2386
- parent: TSModuleDeclaration$1;
2387
- }
2388
- interface TSParameterProperty {
2389
- parent: FunctionLike$1;
2390
- }
2391
- interface TSPropertySignatureComputedName {
2392
- parent: TSInterfaceBody$1 | TSTypeLiteral$1;
2393
- }
2394
- interface TSPropertySignatureNonComputedName {
2395
- parent: TSInterfaceBody$1 | TSTypeLiteral$1;
2396
- }
2397
- interface TSTypeParameter {
2398
- parent: TSInferType$1 | TSMappedType$1 | TSTypeParameterDeclaration$1;
2399
- }
2400
- interface ExportSpecifierWithIdentifierLocal {
2401
- parent: ExportNamedDeclaration$1;
2402
- }
2403
- interface ExportSpecifierWithStringOrLiteralLocal {
2404
- parent: ExportNamedDeclaration$1;
2405
- }
2406
- }
2407
-
2408
- type NodeWithParent = Exclude<Node$1, Program$1>;
2409
-
2410
5
  /**********************************************
2411
6
  * DO NOT MODIFY THIS FILE MANUALLY *
2412
7
  * *
@@ -4555,6 +2150,75 @@ declare interface YieldExpression extends BaseNode {
4555
2150
  delegate: boolean;
4556
2151
  }
4557
2152
 
2153
+ type Lib = 'decorators' | 'decorators.legacy' | 'dom' | 'dom.asynciterable' | 'dom.iterable' | 'es5' | 'es6' | 'es7' | 'es2015' | 'es2015.collection' | 'es2015.core' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' | 'es2015.proxy' | 'es2015.reflect' | 'es2015.symbol' | 'es2015.symbol.wellknown' | 'es2016' | 'es2016.array.include' | 'es2016.full' | 'es2016.intl' | 'es2017' | 'es2017.arraybuffer' | 'es2017.date' | 'es2017.full' | 'es2017.intl' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' | 'es2017.typedarrays' | 'es2018' | 'es2018.asyncgenerator' | 'es2018.asynciterable' | 'es2018.full' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' | 'es2019' | 'es2019.array' | 'es2019.full' | 'es2019.intl' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' | 'es2020' | 'es2020.bigint' | 'es2020.date' | 'es2020.full' | 'es2020.intl' | 'es2020.number' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' | 'es2021' | 'es2021.full' | 'es2021.intl' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' | 'es2022' | 'es2022.array' | 'es2022.error' | 'es2022.full' | 'es2022.intl' | 'es2022.object' | 'es2022.regexp' | 'es2022.string' | 'es2023' | 'es2023.array' | 'es2023.collection' | 'es2023.full' | 'es2023.intl' | 'es2024' | 'es2024.arraybuffer' | 'es2024.collection' | 'es2024.full' | 'es2024.object' | 'es2024.promise' | 'es2024.regexp' | 'es2024.sharedmemory' | 'es2024.string' | 'es2025' | 'es2025.collection' | 'es2025.float16' | 'es2025.full' | 'es2025.intl' | 'es2025.iterator' | 'es2025.promise' | 'es2025.regexp' | 'esnext' | 'esnext.array' | 'esnext.asynciterable' | 'esnext.bigint' | 'esnext.collection' | 'esnext.date' | 'esnext.decorators' | 'esnext.disposable' | 'esnext.error' | 'esnext.float16' | 'esnext.full' | 'esnext.intl' | 'esnext.iterator' | 'esnext.object' | 'esnext.promise' | 'esnext.regexp' | 'esnext.sharedmemory' | 'esnext.string' | 'esnext.symbol' | 'esnext.temporal' | 'esnext.typedarrays' | 'esnext.weakref' | 'lib' | 'scripthost' | 'webworker' | 'webworker.asynciterable' | 'webworker.importscripts' | 'webworker.iterable';
2154
+
2155
+ type DebugLevel = boolean | ('eslint' | 'typescript' | 'typescript-eslint')[];
2156
+ type CacheDurationSeconds = number | 'Infinity';
2157
+ type EcmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | 2026 | 'latest' | undefined;
2158
+ type SourceTypeClassic = 'module' | 'script';
2159
+ type SourceType = 'commonjs' | SourceTypeClassic;
2160
+ type JSDocParsingMode = 'all' | 'none' | 'type-info';
2161
+ /**
2162
+ * Granular options to configure the project service.
2163
+ */
2164
+ interface ProjectServiceOptions {
2165
+ /**
2166
+ * Globs of files to allow running with the default project compiler options
2167
+ * despite not being matched by the project service.
2168
+ */
2169
+ allowDefaultProject?: string[];
2170
+ /**
2171
+ * Path to a TSConfig to use instead of TypeScript's default project configuration.
2172
+ * @default 'tsconfig.json'
2173
+ */
2174
+ defaultProject?: string;
2175
+ /**
2176
+ * Whether to allow TypeScript plugins as configured in the TSConfig.
2177
+ */
2178
+ loadTypeScriptPlugins?: boolean;
2179
+ /**
2180
+ * The maximum number of files {@link allowDefaultProject} may match.
2181
+ * Each file match slows down linting, so if you do need to use this, please
2182
+ * file an informative issue on typescript-eslint explaining why - so we can
2183
+ * help you avoid using it!
2184
+ * @default 8
2185
+ */
2186
+ maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING?: number;
2187
+ }
2188
+ interface ParserOptions {
2189
+ [additionalProperties: string]: unknown;
2190
+ cacheLifetime?: {
2191
+ glob?: CacheDurationSeconds;
2192
+ };
2193
+ debugLevel?: DebugLevel;
2194
+ ecmaFeatures?: {
2195
+ [key: string]: unknown;
2196
+ globalReturn?: boolean | undefined;
2197
+ jsx?: boolean | undefined;
2198
+ } | undefined;
2199
+ ecmaVersion?: EcmaVersion;
2200
+ emitDecoratorMetadata?: boolean;
2201
+ errorOnTypeScriptSyntacticAndSemanticIssues?: boolean;
2202
+ errorOnUnknownASTType?: boolean;
2203
+ experimentalDecorators?: boolean;
2204
+ extraFileExtensions?: string[];
2205
+ filePath?: string;
2206
+ isolatedDeclarations?: boolean;
2207
+ jsDocParsingMode?: JSDocParsingMode;
2208
+ jsxFragmentName?: string | null;
2209
+ jsxPragma?: string | null;
2210
+ lib?: Lib[];
2211
+ programs?: Program$1[] | null;
2212
+ project?: boolean | string | string[] | null;
2213
+ projectFolderIgnoreList?: string[];
2214
+ projectService?: boolean | ProjectServiceOptions;
2215
+ range?: boolean;
2216
+ sourceType?: SourceType | undefined;
2217
+ tokens?: boolean;
2218
+ tsconfigRootDir?: string;
2219
+ warnOnUnsupportedTypeScriptVersion?: boolean;
2220
+ }
2221
+
4558
2222
  declare module "./index" {
4559
2223
  interface BaseNode {
4560
2224
  parent: Node;
@@ -4741,6 +2405,8 @@ declare module "./index" {
4741
2405
  }
4742
2406
  }
4743
2407
 
2408
+ type NodeWithParent = Exclude<Node, Program>;
2409
+
4744
2410
  declare module 'typescript' {
4745
2411
  interface AssertClause extends ts.ImportAttributes {
4746
2412
  }
@@ -4759,180 +2425,180 @@ type TSToken = ts.Token<ts.SyntaxKind>;
4759
2425
  type TSNode = ts.ArrayBindingPattern | ts.ArrayLiteralExpression | ts.ArrayTypeNode | ts.ArrowFunction | ts.AsExpression | ts.AssertClause | ts.AssertEntry | ts.AwaitExpression | ts.BigIntLiteral | ts.BinaryExpression | ts.BindingElement | ts.Block | ts.BooleanLiteral | ts.BreakStatement | ts.Bundle | ts.CallExpression | ts.CallSignatureDeclaration | ts.CaseBlock | ts.CaseClause | ts.CatchClause | ts.ClassDeclaration | ts.ClassExpression | ts.ClassStaticBlockDeclaration | ts.CommaListExpression | ts.ComputedPropertyName | ts.ConditionalExpression | ts.ConditionalTypeNode | ts.ConstructorDeclaration | ts.ConstructorTypeNode | ts.ConstructSignatureDeclaration | ts.ContinueStatement | ts.DebuggerStatement | ts.Decorator | ts.DefaultClause | ts.DeleteExpression | ts.DoStatement | ts.ElementAccessExpression | ts.EmptyStatement | ts.EnumDeclaration | ts.EnumMember | ts.ExportAssignment | ts.ExportDeclaration | ts.ExportSpecifier | ts.ExpressionStatement | ts.ExpressionWithTypeArguments | ts.ExternalModuleReference | ts.ForInStatement | ts.ForOfStatement | ts.ForStatement | ts.FunctionDeclaration | ts.FunctionExpression | ts.FunctionTypeNode | ts.GetAccessorDeclaration | ts.HeritageClause | ts.Identifier | ts.IfStatement | ts.ImportAttribute | ts.ImportAttributes | ts.ImportClause | ts.ImportDeclaration | ts.ImportEqualsDeclaration | ts.ImportExpression | ts.ImportSpecifier | ts.ImportTypeNode | ts.IndexedAccessTypeNode | ts.IndexSignatureDeclaration | ts.InferTypeNode | ts.InterfaceDeclaration | ts.IntersectionTypeNode | ts.JSDoc | ts.JSDocAllType | ts.JSDocAugmentsTag | ts.JSDocAuthorTag | ts.JSDocCallbackTag | ts.JSDocClassTag | ts.JSDocEnumTag | ts.JSDocFunctionType | ts.JSDocNonNullableType | ts.JSDocNullableType | ts.JSDocOptionalType | ts.JSDocParameterTag | ts.JSDocPropertyTag | ts.JSDocReturnTag | ts.JSDocSignature | ts.JSDocTemplateTag | ts.JSDocThisTag | ts.JSDocTypedefTag | ts.JSDocTypeExpression | ts.JSDocTypeLiteral | ts.JSDocTypeTag | ts.JSDocUnknownTag | ts.JSDocUnknownType | ts.JSDocVariadicType | ts.JsonMinusNumericLiteral | ts.JsxAttribute | ts.JsxClosingElement | ts.JsxClosingFragment | ts.JsxElement | ts.JsxExpression | ts.JsxFragment | ts.JsxNamespacedName | ts.JsxOpeningElement | ts.JsxOpeningFragment | ts.JsxSelfClosingElement | ts.JsxSpreadAttribute | ts.JsxText | ts.KeywordTypeNode | ts.LabeledStatement | ts.LiteralTypeNode | ts.MappedTypeNode | ts.MetaProperty | ts.MethodDeclaration | ts.MethodSignature | ts.MissingDeclaration | ts.Modifier | ts.ModuleBlock | ts.ModuleDeclaration | ts.NamedExports | ts.NamedImports | ts.NamedTupleMember | ts.NamespaceExportDeclaration | ts.NamespaceImport | ts.NewExpression | ts.NonNullExpression | ts.NoSubstitutionTemplateLiteral | ts.NotEmittedStatement | ts.NullLiteral | ts.NumericLiteral | ts.ObjectBindingPattern | ts.ObjectLiteralExpression | ts.OmittedExpression | ts.OptionalTypeNode | ts.ParameterDeclaration | ts.ParenthesizedExpression | ts.ParenthesizedTypeNode | ts.PartiallyEmittedExpression | ts.PostfixUnaryExpression | ts.PrefixUnaryExpression | ts.PrivateIdentifier | ts.PropertyAccessExpression | ts.PropertyAssignment | ts.PropertyDeclaration | ts.PropertySignature | ts.QualifiedName | ts.RegularExpressionLiteral | ts.RestTypeNode | ts.ReturnStatement | ts.SatisfiesExpression | ts.SemicolonClassElement | ts.SetAccessorDeclaration | ts.ShorthandPropertyAssignment | ts.SourceFile | ts.SpreadAssignment | ts.SpreadElement | ts.StringLiteral | ts.SuperExpression | ts.SwitchStatement | ts.SyntheticExpression | ts.TaggedTemplateExpression | ts.TemplateExpression | ts.TemplateHead | ts.TemplateLiteralTypeNode | ts.TemplateMiddle | ts.TemplateSpan | ts.TemplateTail | ts.ThisExpression | ts.ThisTypeNode | ts.ThrowStatement | ts.TryStatement | ts.TupleTypeNode | ts.TypeAliasDeclaration | ts.TypeAssertion | ts.TypeLiteralNode | ts.TypeOfExpression | ts.TypeOperatorNode | ts.TypeParameterDeclaration | ts.TypePredicateNode | ts.TypeQueryNode | ts.TypeReferenceNode | ts.UnionTypeNode | ts.VariableDeclaration | ts.VariableDeclarationList | ts.VariableStatement | ts.VoidExpression | ts.WhileStatement | ts.WithStatement | ts.YieldExpression;
4760
2426
 
4761
2427
  interface EstreeToTsNodeTypes {
4762
- [AST_NODE_TYPES$1.AccessorProperty]: ts.PropertyDeclaration;
4763
- [AST_NODE_TYPES$1.ArrayExpression]: ts.ArrayLiteralExpression;
4764
- [AST_NODE_TYPES$1.ArrayPattern]: ts.ArrayBindingPattern | ts.ArrayLiteralExpression;
4765
- [AST_NODE_TYPES$1.ArrowFunctionExpression]: ts.ArrowFunction;
4766
- [AST_NODE_TYPES$1.AssignmentExpression]: ts.BinaryExpression;
4767
- [AST_NODE_TYPES$1.AssignmentPattern]: ts.BinaryExpression | ts.BindingElement | ts.ParameterDeclaration | ts.ShorthandPropertyAssignment;
4768
- [AST_NODE_TYPES$1.AwaitExpression]: ts.AwaitExpression;
4769
- [AST_NODE_TYPES$1.BinaryExpression]: ts.BinaryExpression;
4770
- [AST_NODE_TYPES$1.BlockStatement]: ts.Block;
4771
- [AST_NODE_TYPES$1.BreakStatement]: ts.BreakStatement;
4772
- [AST_NODE_TYPES$1.CallExpression]: ts.CallExpression;
4773
- [AST_NODE_TYPES$1.CatchClause]: ts.CatchClause;
4774
- [AST_NODE_TYPES$1.ChainExpression]: ts.CallExpression | ts.ElementAccessExpression | ts.NonNullExpression | ts.PropertyAccessExpression;
4775
- [AST_NODE_TYPES$1.ClassBody]: ts.ClassDeclaration | ts.ClassExpression;
4776
- [AST_NODE_TYPES$1.ClassDeclaration]: ts.ClassDeclaration;
4777
- [AST_NODE_TYPES$1.ClassExpression]: ts.ClassExpression;
4778
- [AST_NODE_TYPES$1.ConditionalExpression]: ts.ConditionalExpression;
4779
- [AST_NODE_TYPES$1.ContinueStatement]: ts.ContinueStatement;
4780
- [AST_NODE_TYPES$1.DebuggerStatement]: ts.DebuggerStatement;
4781
- [AST_NODE_TYPES$1.Decorator]: ts.Decorator;
4782
- [AST_NODE_TYPES$1.DoWhileStatement]: ts.DoStatement;
4783
- [AST_NODE_TYPES$1.EmptyStatement]: ts.EmptyStatement;
4784
- [AST_NODE_TYPES$1.ExportAllDeclaration]: ts.ExportDeclaration;
4785
- [AST_NODE_TYPES$1.ExportDefaultDeclaration]: ts.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportAssignment | ts.FunctionDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement;
4786
- [AST_NODE_TYPES$1.ExportNamedDeclaration]: ts.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportDeclaration | ts.FunctionDeclaration | ts.ImportEqualsDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement;
4787
- [AST_NODE_TYPES$1.ExportSpecifier]: ts.ExportSpecifier;
4788
- [AST_NODE_TYPES$1.ExpressionStatement]: ts.ExpressionStatement;
4789
- [AST_NODE_TYPES$1.ForInStatement]: ts.ForInStatement;
4790
- [AST_NODE_TYPES$1.ForOfStatement]: ts.ForOfStatement;
4791
- [AST_NODE_TYPES$1.ForStatement]: ts.ForStatement;
4792
- [AST_NODE_TYPES$1.FunctionDeclaration]: ts.FunctionDeclaration;
4793
- [AST_NODE_TYPES$1.FunctionExpression]: ts.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
4794
- [AST_NODE_TYPES$1.Identifier]: ts.ConstructorDeclaration | ts.Identifier | ts.Token<ts.SyntaxKind.ImportKeyword | ts.SyntaxKind.NewKeyword>;
4795
- [AST_NODE_TYPES$1.IfStatement]: ts.IfStatement;
4796
- [AST_NODE_TYPES$1.PrivateIdentifier]: ts.PrivateIdentifier;
4797
- [AST_NODE_TYPES$1.PropertyDefinition]: ts.PropertyDeclaration;
4798
- [AST_NODE_TYPES$1.ImportAttribute]: 'ImportAttribute' extends keyof typeof ts ? ts.ImportAttribute : ts.AssertEntry;
4799
- [AST_NODE_TYPES$1.ImportDeclaration]: ts.ImportDeclaration;
4800
- [AST_NODE_TYPES$1.ImportDefaultSpecifier]: ts.ImportClause;
4801
- [AST_NODE_TYPES$1.ImportExpression]: ts.CallExpression;
4802
- [AST_NODE_TYPES$1.ImportNamespaceSpecifier]: ts.NamespaceImport;
4803
- [AST_NODE_TYPES$1.ImportSpecifier]: ts.ImportSpecifier;
4804
- [AST_NODE_TYPES$1.JSXAttribute]: ts.JsxAttribute;
4805
- [AST_NODE_TYPES$1.JSXClosingElement]: ts.JsxClosingElement;
4806
- [AST_NODE_TYPES$1.JSXClosingFragment]: ts.JsxClosingFragment;
4807
- [AST_NODE_TYPES$1.JSXElement]: ts.JsxElement | ts.JsxSelfClosingElement;
4808
- [AST_NODE_TYPES$1.JSXEmptyExpression]: ts.JsxExpression;
4809
- [AST_NODE_TYPES$1.JSXExpressionContainer]: ts.JsxExpression;
4810
- [AST_NODE_TYPES$1.JSXFragment]: ts.JsxFragment;
4811
- [AST_NODE_TYPES$1.JSXIdentifier]: ts.Identifier | ts.ThisExpression;
4812
- [AST_NODE_TYPES$1.JSXMemberExpression]: ts.PropertyAccessExpression;
4813
- [AST_NODE_TYPES$1.JSXNamespacedName]: ts.JsxNamespacedName;
4814
- [AST_NODE_TYPES$1.JSXOpeningElement]: ts.JsxOpeningElement | ts.JsxSelfClosingElement;
4815
- [AST_NODE_TYPES$1.JSXOpeningFragment]: ts.JsxOpeningFragment;
4816
- [AST_NODE_TYPES$1.JSXSpreadAttribute]: ts.JsxSpreadAttribute;
4817
- [AST_NODE_TYPES$1.JSXSpreadChild]: ts.JsxExpression;
4818
- [AST_NODE_TYPES$1.JSXText]: ts.JsxText;
4819
- [AST_NODE_TYPES$1.LabeledStatement]: ts.LabeledStatement;
4820
- [AST_NODE_TYPES$1.Literal]: ts.BigIntLiteral | ts.BooleanLiteral | ts.NullLiteral | ts.NumericLiteral | ts.RegularExpressionLiteral | ts.StringLiteral;
4821
- [AST_NODE_TYPES$1.LogicalExpression]: ts.BinaryExpression;
4822
- [AST_NODE_TYPES$1.MemberExpression]: ts.ElementAccessExpression | ts.PropertyAccessExpression;
4823
- [AST_NODE_TYPES$1.MetaProperty]: ts.MetaProperty;
4824
- [AST_NODE_TYPES$1.MethodDefinition]: ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
4825
- [AST_NODE_TYPES$1.NewExpression]: ts.NewExpression;
4826
- [AST_NODE_TYPES$1.ObjectExpression]: ts.ObjectLiteralExpression;
4827
- [AST_NODE_TYPES$1.ObjectPattern]: ts.ObjectBindingPattern | ts.ObjectLiteralExpression;
4828
- [AST_NODE_TYPES$1.Program]: ts.SourceFile;
4829
- [AST_NODE_TYPES$1.Property]: ts.BindingElement | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.PropertyAssignment | ts.SetAccessorDeclaration | ts.ShorthandPropertyAssignment;
4830
- [AST_NODE_TYPES$1.RestElement]: ts.BindingElement | ts.ParameterDeclaration | ts.SpreadAssignment | ts.SpreadElement;
4831
- [AST_NODE_TYPES$1.ReturnStatement]: ts.ReturnStatement;
4832
- [AST_NODE_TYPES$1.SequenceExpression]: ts.BinaryExpression;
4833
- [AST_NODE_TYPES$1.SpreadElement]: ts.SpreadAssignment | ts.SpreadElement;
4834
- [AST_NODE_TYPES$1.StaticBlock]: ts.ClassStaticBlockDeclaration;
4835
- [AST_NODE_TYPES$1.Super]: ts.SuperExpression;
4836
- [AST_NODE_TYPES$1.SwitchCase]: ts.CaseClause | ts.DefaultClause;
4837
- [AST_NODE_TYPES$1.SwitchStatement]: ts.SwitchStatement;
4838
- [AST_NODE_TYPES$1.TaggedTemplateExpression]: ts.TaggedTemplateExpression;
4839
- [AST_NODE_TYPES$1.TemplateElement]: ts.NoSubstitutionTemplateLiteral | ts.TemplateHead | ts.TemplateMiddle | ts.TemplateTail;
4840
- [AST_NODE_TYPES$1.TemplateLiteral]: ts.NoSubstitutionTemplateLiteral | ts.TemplateExpression;
4841
- [AST_NODE_TYPES$1.ThisExpression]: ts.Identifier | ts.KeywordTypeNode | ts.ThisExpression;
4842
- [AST_NODE_TYPES$1.ThrowStatement]: ts.ThrowStatement;
4843
- [AST_NODE_TYPES$1.TryStatement]: ts.TryStatement;
4844
- [AST_NODE_TYPES$1.TSAbstractAccessorProperty]: ts.PropertyDeclaration;
4845
- [AST_NODE_TYPES$1.TSAbstractMethodDefinition]: ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
4846
- [AST_NODE_TYPES$1.TSAbstractPropertyDefinition]: ts.PropertyDeclaration;
4847
- [AST_NODE_TYPES$1.TSArrayType]: ts.ArrayTypeNode;
4848
- [AST_NODE_TYPES$1.TSAsExpression]: ts.AsExpression;
4849
- [AST_NODE_TYPES$1.TSCallSignatureDeclaration]: ts.CallSignatureDeclaration;
4850
- [AST_NODE_TYPES$1.TSClassImplements]: ts.ExpressionWithTypeArguments;
4851
- [AST_NODE_TYPES$1.TSConditionalType]: ts.ConditionalTypeNode;
4852
- [AST_NODE_TYPES$1.TSConstructorType]: ts.ConstructorTypeNode;
4853
- [AST_NODE_TYPES$1.TSConstructSignatureDeclaration]: ts.ConstructSignatureDeclaration;
4854
- [AST_NODE_TYPES$1.TSDeclareFunction]: ts.FunctionDeclaration;
4855
- [AST_NODE_TYPES$1.TSEnumBody]: ts.EnumDeclaration;
4856
- [AST_NODE_TYPES$1.TSEnumDeclaration]: ts.EnumDeclaration;
4857
- [AST_NODE_TYPES$1.TSEnumMember]: ts.EnumMember;
4858
- [AST_NODE_TYPES$1.TSExportAssignment]: ts.ExportAssignment;
4859
- [AST_NODE_TYPES$1.TSExternalModuleReference]: ts.ExternalModuleReference;
4860
- [AST_NODE_TYPES$1.TSFunctionType]: ts.FunctionTypeNode;
4861
- [AST_NODE_TYPES$1.TSImportEqualsDeclaration]: ts.ImportEqualsDeclaration;
4862
- [AST_NODE_TYPES$1.TSImportType]: ts.ImportTypeNode;
4863
- [AST_NODE_TYPES$1.TSIndexedAccessType]: ts.IndexedAccessTypeNode;
4864
- [AST_NODE_TYPES$1.TSIndexSignature]: ts.IndexSignatureDeclaration;
4865
- [AST_NODE_TYPES$1.TSInferType]: ts.InferTypeNode;
4866
- [AST_NODE_TYPES$1.TSInstantiationExpression]: ts.ExpressionWithTypeArguments;
4867
- [AST_NODE_TYPES$1.TSInterfaceBody]: ts.InterfaceDeclaration;
4868
- [AST_NODE_TYPES$1.TSInterfaceDeclaration]: ts.InterfaceDeclaration;
4869
- [AST_NODE_TYPES$1.TSInterfaceHeritage]: ts.ExpressionWithTypeArguments;
4870
- [AST_NODE_TYPES$1.TSIntersectionType]: ts.IntersectionTypeNode;
4871
- [AST_NODE_TYPES$1.TSLiteralType]: ts.LiteralTypeNode;
4872
- [AST_NODE_TYPES$1.TSMappedType]: ts.MappedTypeNode;
4873
- [AST_NODE_TYPES$1.TSMethodSignature]: ts.GetAccessorDeclaration | ts.MethodSignature | ts.SetAccessorDeclaration;
4874
- [AST_NODE_TYPES$1.TSModuleBlock]: ts.ModuleBlock;
4875
- [AST_NODE_TYPES$1.TSModuleDeclaration]: ts.ModuleDeclaration;
4876
- [AST_NODE_TYPES$1.TSNamedTupleMember]: ts.NamedTupleMember;
4877
- [AST_NODE_TYPES$1.TSNamespaceExportDeclaration]: ts.NamespaceExportDeclaration;
4878
- [AST_NODE_TYPES$1.TSNonNullExpression]: ts.NonNullExpression;
4879
- [AST_NODE_TYPES$1.TSOptionalType]: ts.OptionalTypeNode;
4880
- [AST_NODE_TYPES$1.TSParameterProperty]: ts.ParameterDeclaration;
4881
- [AST_NODE_TYPES$1.TSPropertySignature]: ts.PropertySignature;
4882
- [AST_NODE_TYPES$1.TSQualifiedName]: ts.Identifier | ts.QualifiedName;
4883
- [AST_NODE_TYPES$1.TSRestType]: ts.NamedTupleMember | ts.RestTypeNode;
4884
- [AST_NODE_TYPES$1.TSSatisfiesExpression]: ts.SatisfiesExpression;
4885
- [AST_NODE_TYPES$1.TSTemplateLiteralType]: ts.TemplateLiteralTypeNode;
4886
- [AST_NODE_TYPES$1.TSThisType]: ts.ThisTypeNode;
4887
- [AST_NODE_TYPES$1.TSTupleType]: ts.TupleTypeNode;
4888
- [AST_NODE_TYPES$1.TSTypeAliasDeclaration]: ts.TypeAliasDeclaration;
4889
- [AST_NODE_TYPES$1.TSTypeAnnotation]: undefined;
4890
- [AST_NODE_TYPES$1.TSTypeAssertion]: ts.TypeAssertion;
4891
- [AST_NODE_TYPES$1.TSTypeLiteral]: ts.TypeLiteralNode;
4892
- [AST_NODE_TYPES$1.TSTypeOperator]: ts.TypeOperatorNode;
4893
- [AST_NODE_TYPES$1.TSTypeParameter]: ts.TypeParameterDeclaration;
4894
- [AST_NODE_TYPES$1.TSTypeParameterDeclaration]: undefined;
4895
- [AST_NODE_TYPES$1.TSTypeParameterInstantiation]: ts.CallExpression | ts.ExpressionWithTypeArguments | ts.ImportTypeNode | ts.JsxOpeningElement | ts.JsxSelfClosingElement | ts.NewExpression | ts.TaggedTemplateExpression | ts.TypeQueryNode | ts.TypeReferenceNode;
4896
- [AST_NODE_TYPES$1.TSTypePredicate]: ts.TypePredicateNode;
4897
- [AST_NODE_TYPES$1.TSTypeQuery]: ts.ImportTypeNode | ts.TypeQueryNode;
4898
- [AST_NODE_TYPES$1.TSTypeReference]: ts.TypeReferenceNode;
4899
- [AST_NODE_TYPES$1.TSUnionType]: ts.UnionTypeNode;
4900
- [AST_NODE_TYPES$1.UnaryExpression]: ts.DeleteExpression | ts.PostfixUnaryExpression | ts.PrefixUnaryExpression | ts.TypeOfExpression | ts.VoidExpression;
4901
- [AST_NODE_TYPES$1.UpdateExpression]: ts.PostfixUnaryExpression | ts.PrefixUnaryExpression;
4902
- [AST_NODE_TYPES$1.VariableDeclaration]: ts.VariableDeclarationList | ts.VariableStatement;
4903
- [AST_NODE_TYPES$1.VariableDeclarator]: ts.VariableDeclaration;
4904
- [AST_NODE_TYPES$1.WhileStatement]: ts.WhileStatement;
4905
- [AST_NODE_TYPES$1.WithStatement]: ts.WithStatement;
4906
- [AST_NODE_TYPES$1.YieldExpression]: ts.YieldExpression;
4907
- [AST_NODE_TYPES$1.TSEmptyBodyFunctionExpression]: ts.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
4908
- [AST_NODE_TYPES$1.TSAbstractKeyword]: ts.Token<ts.SyntaxKind.AbstractKeyword>;
4909
- [AST_NODE_TYPES$1.TSAnyKeyword]: ts.KeywordTypeNode;
4910
- [AST_NODE_TYPES$1.TSBigIntKeyword]: ts.KeywordTypeNode;
4911
- [AST_NODE_TYPES$1.TSBooleanKeyword]: ts.KeywordTypeNode;
4912
- [AST_NODE_TYPES$1.TSIntrinsicKeyword]: ts.KeywordTypeNode;
4913
- [AST_NODE_TYPES$1.TSNeverKeyword]: ts.KeywordTypeNode;
4914
- [AST_NODE_TYPES$1.TSNullKeyword]: ts.KeywordTypeNode | ts.NullLiteral;
4915
- [AST_NODE_TYPES$1.TSNumberKeyword]: ts.KeywordTypeNode;
4916
- [AST_NODE_TYPES$1.TSObjectKeyword]: ts.KeywordTypeNode;
4917
- [AST_NODE_TYPES$1.TSStringKeyword]: ts.KeywordTypeNode;
4918
- [AST_NODE_TYPES$1.TSSymbolKeyword]: ts.KeywordTypeNode;
4919
- [AST_NODE_TYPES$1.TSUndefinedKeyword]: ts.KeywordTypeNode;
4920
- [AST_NODE_TYPES$1.TSUnknownKeyword]: ts.KeywordTypeNode;
4921
- [AST_NODE_TYPES$1.TSVoidKeyword]: ts.KeywordTypeNode;
4922
- [AST_NODE_TYPES$1.TSAsyncKeyword]: ts.Token<ts.SyntaxKind.AsyncKeyword>;
4923
- [AST_NODE_TYPES$1.TSDeclareKeyword]: ts.Token<ts.SyntaxKind.DeclareKeyword>;
4924
- [AST_NODE_TYPES$1.TSExportKeyword]: ts.Token<ts.SyntaxKind.ExportKeyword>;
4925
- [AST_NODE_TYPES$1.TSPrivateKeyword]: ts.Token<ts.SyntaxKind.PrivateKeyword>;
4926
- [AST_NODE_TYPES$1.TSProtectedKeyword]: ts.Token<ts.SyntaxKind.ProtectedKeyword>;
4927
- [AST_NODE_TYPES$1.TSPublicKeyword]: ts.Token<ts.SyntaxKind.PublicKeyword>;
4928
- [AST_NODE_TYPES$1.TSReadonlyKeyword]: ts.Token<ts.SyntaxKind.ReadonlyKeyword>;
4929
- [AST_NODE_TYPES$1.TSStaticKeyword]: ts.Token<ts.SyntaxKind.StaticKeyword>;
2428
+ [AST_NODE_TYPES.AccessorProperty]: ts.PropertyDeclaration;
2429
+ [AST_NODE_TYPES.ArrayExpression]: ts.ArrayLiteralExpression;
2430
+ [AST_NODE_TYPES.ArrayPattern]: ts.ArrayBindingPattern | ts.ArrayLiteralExpression;
2431
+ [AST_NODE_TYPES.ArrowFunctionExpression]: ts.ArrowFunction;
2432
+ [AST_NODE_TYPES.AssignmentExpression]: ts.BinaryExpression;
2433
+ [AST_NODE_TYPES.AssignmentPattern]: ts.BinaryExpression | ts.BindingElement | ts.ParameterDeclaration | ts.ShorthandPropertyAssignment;
2434
+ [AST_NODE_TYPES.AwaitExpression]: ts.AwaitExpression;
2435
+ [AST_NODE_TYPES.BinaryExpression]: ts.BinaryExpression;
2436
+ [AST_NODE_TYPES.BlockStatement]: ts.Block;
2437
+ [AST_NODE_TYPES.BreakStatement]: ts.BreakStatement;
2438
+ [AST_NODE_TYPES.CallExpression]: ts.CallExpression;
2439
+ [AST_NODE_TYPES.CatchClause]: ts.CatchClause;
2440
+ [AST_NODE_TYPES.ChainExpression]: ts.CallExpression | ts.ElementAccessExpression | ts.NonNullExpression | ts.PropertyAccessExpression;
2441
+ [AST_NODE_TYPES.ClassBody]: ts.ClassDeclaration | ts.ClassExpression;
2442
+ [AST_NODE_TYPES.ClassDeclaration]: ts.ClassDeclaration;
2443
+ [AST_NODE_TYPES.ClassExpression]: ts.ClassExpression;
2444
+ [AST_NODE_TYPES.ConditionalExpression]: ts.ConditionalExpression;
2445
+ [AST_NODE_TYPES.ContinueStatement]: ts.ContinueStatement;
2446
+ [AST_NODE_TYPES.DebuggerStatement]: ts.DebuggerStatement;
2447
+ [AST_NODE_TYPES.Decorator]: ts.Decorator;
2448
+ [AST_NODE_TYPES.DoWhileStatement]: ts.DoStatement;
2449
+ [AST_NODE_TYPES.EmptyStatement]: ts.EmptyStatement;
2450
+ [AST_NODE_TYPES.ExportAllDeclaration]: ts.ExportDeclaration;
2451
+ [AST_NODE_TYPES.ExportDefaultDeclaration]: ts.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportAssignment | ts.FunctionDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement;
2452
+ [AST_NODE_TYPES.ExportNamedDeclaration]: ts.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportDeclaration | ts.FunctionDeclaration | ts.ImportEqualsDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement;
2453
+ [AST_NODE_TYPES.ExportSpecifier]: ts.ExportSpecifier;
2454
+ [AST_NODE_TYPES.ExpressionStatement]: ts.ExpressionStatement;
2455
+ [AST_NODE_TYPES.ForInStatement]: ts.ForInStatement;
2456
+ [AST_NODE_TYPES.ForOfStatement]: ts.ForOfStatement;
2457
+ [AST_NODE_TYPES.ForStatement]: ts.ForStatement;
2458
+ [AST_NODE_TYPES.FunctionDeclaration]: ts.FunctionDeclaration;
2459
+ [AST_NODE_TYPES.FunctionExpression]: ts.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
2460
+ [AST_NODE_TYPES.Identifier]: ts.ConstructorDeclaration | ts.Identifier | ts.Token<ts.SyntaxKind.ImportKeyword | ts.SyntaxKind.NewKeyword>;
2461
+ [AST_NODE_TYPES.IfStatement]: ts.IfStatement;
2462
+ [AST_NODE_TYPES.PrivateIdentifier]: ts.PrivateIdentifier;
2463
+ [AST_NODE_TYPES.PropertyDefinition]: ts.PropertyDeclaration;
2464
+ [AST_NODE_TYPES.ImportAttribute]: 'ImportAttribute' extends keyof typeof ts ? ts.ImportAttribute : ts.AssertEntry;
2465
+ [AST_NODE_TYPES.ImportDeclaration]: ts.ImportDeclaration;
2466
+ [AST_NODE_TYPES.ImportDefaultSpecifier]: ts.ImportClause;
2467
+ [AST_NODE_TYPES.ImportExpression]: ts.CallExpression;
2468
+ [AST_NODE_TYPES.ImportNamespaceSpecifier]: ts.NamespaceImport;
2469
+ [AST_NODE_TYPES.ImportSpecifier]: ts.ImportSpecifier;
2470
+ [AST_NODE_TYPES.JSXAttribute]: ts.JsxAttribute;
2471
+ [AST_NODE_TYPES.JSXClosingElement]: ts.JsxClosingElement;
2472
+ [AST_NODE_TYPES.JSXClosingFragment]: ts.JsxClosingFragment;
2473
+ [AST_NODE_TYPES.JSXElement]: ts.JsxElement | ts.JsxSelfClosingElement;
2474
+ [AST_NODE_TYPES.JSXEmptyExpression]: ts.JsxExpression;
2475
+ [AST_NODE_TYPES.JSXExpressionContainer]: ts.JsxExpression;
2476
+ [AST_NODE_TYPES.JSXFragment]: ts.JsxFragment;
2477
+ [AST_NODE_TYPES.JSXIdentifier]: ts.Identifier | ts.ThisExpression;
2478
+ [AST_NODE_TYPES.JSXMemberExpression]: ts.PropertyAccessExpression;
2479
+ [AST_NODE_TYPES.JSXNamespacedName]: ts.JsxNamespacedName;
2480
+ [AST_NODE_TYPES.JSXOpeningElement]: ts.JsxOpeningElement | ts.JsxSelfClosingElement;
2481
+ [AST_NODE_TYPES.JSXOpeningFragment]: ts.JsxOpeningFragment;
2482
+ [AST_NODE_TYPES.JSXSpreadAttribute]: ts.JsxSpreadAttribute;
2483
+ [AST_NODE_TYPES.JSXSpreadChild]: ts.JsxExpression;
2484
+ [AST_NODE_TYPES.JSXText]: ts.JsxText;
2485
+ [AST_NODE_TYPES.LabeledStatement]: ts.LabeledStatement;
2486
+ [AST_NODE_TYPES.Literal]: ts.BigIntLiteral | ts.BooleanLiteral | ts.NullLiteral | ts.NumericLiteral | ts.RegularExpressionLiteral | ts.StringLiteral;
2487
+ [AST_NODE_TYPES.LogicalExpression]: ts.BinaryExpression;
2488
+ [AST_NODE_TYPES.MemberExpression]: ts.ElementAccessExpression | ts.PropertyAccessExpression;
2489
+ [AST_NODE_TYPES.MetaProperty]: ts.MetaProperty;
2490
+ [AST_NODE_TYPES.MethodDefinition]: ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
2491
+ [AST_NODE_TYPES.NewExpression]: ts.NewExpression;
2492
+ [AST_NODE_TYPES.ObjectExpression]: ts.ObjectLiteralExpression;
2493
+ [AST_NODE_TYPES.ObjectPattern]: ts.ObjectBindingPattern | ts.ObjectLiteralExpression;
2494
+ [AST_NODE_TYPES.Program]: ts.SourceFile;
2495
+ [AST_NODE_TYPES.Property]: ts.BindingElement | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.PropertyAssignment | ts.SetAccessorDeclaration | ts.ShorthandPropertyAssignment;
2496
+ [AST_NODE_TYPES.RestElement]: ts.BindingElement | ts.ParameterDeclaration | ts.SpreadAssignment | ts.SpreadElement;
2497
+ [AST_NODE_TYPES.ReturnStatement]: ts.ReturnStatement;
2498
+ [AST_NODE_TYPES.SequenceExpression]: ts.BinaryExpression;
2499
+ [AST_NODE_TYPES.SpreadElement]: ts.SpreadAssignment | ts.SpreadElement;
2500
+ [AST_NODE_TYPES.StaticBlock]: ts.ClassStaticBlockDeclaration;
2501
+ [AST_NODE_TYPES.Super]: ts.SuperExpression;
2502
+ [AST_NODE_TYPES.SwitchCase]: ts.CaseClause | ts.DefaultClause;
2503
+ [AST_NODE_TYPES.SwitchStatement]: ts.SwitchStatement;
2504
+ [AST_NODE_TYPES.TaggedTemplateExpression]: ts.TaggedTemplateExpression;
2505
+ [AST_NODE_TYPES.TemplateElement]: ts.NoSubstitutionTemplateLiteral | ts.TemplateHead | ts.TemplateMiddle | ts.TemplateTail;
2506
+ [AST_NODE_TYPES.TemplateLiteral]: ts.NoSubstitutionTemplateLiteral | ts.TemplateExpression;
2507
+ [AST_NODE_TYPES.ThisExpression]: ts.Identifier | ts.KeywordTypeNode | ts.ThisExpression;
2508
+ [AST_NODE_TYPES.ThrowStatement]: ts.ThrowStatement;
2509
+ [AST_NODE_TYPES.TryStatement]: ts.TryStatement;
2510
+ [AST_NODE_TYPES.TSAbstractAccessorProperty]: ts.PropertyDeclaration;
2511
+ [AST_NODE_TYPES.TSAbstractMethodDefinition]: ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
2512
+ [AST_NODE_TYPES.TSAbstractPropertyDefinition]: ts.PropertyDeclaration;
2513
+ [AST_NODE_TYPES.TSArrayType]: ts.ArrayTypeNode;
2514
+ [AST_NODE_TYPES.TSAsExpression]: ts.AsExpression;
2515
+ [AST_NODE_TYPES.TSCallSignatureDeclaration]: ts.CallSignatureDeclaration;
2516
+ [AST_NODE_TYPES.TSClassImplements]: ts.ExpressionWithTypeArguments;
2517
+ [AST_NODE_TYPES.TSConditionalType]: ts.ConditionalTypeNode;
2518
+ [AST_NODE_TYPES.TSConstructorType]: ts.ConstructorTypeNode;
2519
+ [AST_NODE_TYPES.TSConstructSignatureDeclaration]: ts.ConstructSignatureDeclaration;
2520
+ [AST_NODE_TYPES.TSDeclareFunction]: ts.FunctionDeclaration;
2521
+ [AST_NODE_TYPES.TSEnumBody]: ts.EnumDeclaration;
2522
+ [AST_NODE_TYPES.TSEnumDeclaration]: ts.EnumDeclaration;
2523
+ [AST_NODE_TYPES.TSEnumMember]: ts.EnumMember;
2524
+ [AST_NODE_TYPES.TSExportAssignment]: ts.ExportAssignment;
2525
+ [AST_NODE_TYPES.TSExternalModuleReference]: ts.ExternalModuleReference;
2526
+ [AST_NODE_TYPES.TSFunctionType]: ts.FunctionTypeNode;
2527
+ [AST_NODE_TYPES.TSImportEqualsDeclaration]: ts.ImportEqualsDeclaration;
2528
+ [AST_NODE_TYPES.TSImportType]: ts.ImportTypeNode;
2529
+ [AST_NODE_TYPES.TSIndexedAccessType]: ts.IndexedAccessTypeNode;
2530
+ [AST_NODE_TYPES.TSIndexSignature]: ts.IndexSignatureDeclaration;
2531
+ [AST_NODE_TYPES.TSInferType]: ts.InferTypeNode;
2532
+ [AST_NODE_TYPES.TSInstantiationExpression]: ts.ExpressionWithTypeArguments;
2533
+ [AST_NODE_TYPES.TSInterfaceBody]: ts.InterfaceDeclaration;
2534
+ [AST_NODE_TYPES.TSInterfaceDeclaration]: ts.InterfaceDeclaration;
2535
+ [AST_NODE_TYPES.TSInterfaceHeritage]: ts.ExpressionWithTypeArguments;
2536
+ [AST_NODE_TYPES.TSIntersectionType]: ts.IntersectionTypeNode;
2537
+ [AST_NODE_TYPES.TSLiteralType]: ts.LiteralTypeNode;
2538
+ [AST_NODE_TYPES.TSMappedType]: ts.MappedTypeNode;
2539
+ [AST_NODE_TYPES.TSMethodSignature]: ts.GetAccessorDeclaration | ts.MethodSignature | ts.SetAccessorDeclaration;
2540
+ [AST_NODE_TYPES.TSModuleBlock]: ts.ModuleBlock;
2541
+ [AST_NODE_TYPES.TSModuleDeclaration]: ts.ModuleDeclaration;
2542
+ [AST_NODE_TYPES.TSNamedTupleMember]: ts.NamedTupleMember;
2543
+ [AST_NODE_TYPES.TSNamespaceExportDeclaration]: ts.NamespaceExportDeclaration;
2544
+ [AST_NODE_TYPES.TSNonNullExpression]: ts.NonNullExpression;
2545
+ [AST_NODE_TYPES.TSOptionalType]: ts.OptionalTypeNode;
2546
+ [AST_NODE_TYPES.TSParameterProperty]: ts.ParameterDeclaration;
2547
+ [AST_NODE_TYPES.TSPropertySignature]: ts.PropertySignature;
2548
+ [AST_NODE_TYPES.TSQualifiedName]: ts.Identifier | ts.QualifiedName;
2549
+ [AST_NODE_TYPES.TSRestType]: ts.NamedTupleMember | ts.RestTypeNode;
2550
+ [AST_NODE_TYPES.TSSatisfiesExpression]: ts.SatisfiesExpression;
2551
+ [AST_NODE_TYPES.TSTemplateLiteralType]: ts.TemplateLiteralTypeNode;
2552
+ [AST_NODE_TYPES.TSThisType]: ts.ThisTypeNode;
2553
+ [AST_NODE_TYPES.TSTupleType]: ts.TupleTypeNode;
2554
+ [AST_NODE_TYPES.TSTypeAliasDeclaration]: ts.TypeAliasDeclaration;
2555
+ [AST_NODE_TYPES.TSTypeAnnotation]: undefined;
2556
+ [AST_NODE_TYPES.TSTypeAssertion]: ts.TypeAssertion;
2557
+ [AST_NODE_TYPES.TSTypeLiteral]: ts.TypeLiteralNode;
2558
+ [AST_NODE_TYPES.TSTypeOperator]: ts.TypeOperatorNode;
2559
+ [AST_NODE_TYPES.TSTypeParameter]: ts.TypeParameterDeclaration;
2560
+ [AST_NODE_TYPES.TSTypeParameterDeclaration]: undefined;
2561
+ [AST_NODE_TYPES.TSTypeParameterInstantiation]: ts.CallExpression | ts.ExpressionWithTypeArguments | ts.ImportTypeNode | ts.JsxOpeningElement | ts.JsxSelfClosingElement | ts.NewExpression | ts.TaggedTemplateExpression | ts.TypeQueryNode | ts.TypeReferenceNode;
2562
+ [AST_NODE_TYPES.TSTypePredicate]: ts.TypePredicateNode;
2563
+ [AST_NODE_TYPES.TSTypeQuery]: ts.ImportTypeNode | ts.TypeQueryNode;
2564
+ [AST_NODE_TYPES.TSTypeReference]: ts.TypeReferenceNode;
2565
+ [AST_NODE_TYPES.TSUnionType]: ts.UnionTypeNode;
2566
+ [AST_NODE_TYPES.UnaryExpression]: ts.DeleteExpression | ts.PostfixUnaryExpression | ts.PrefixUnaryExpression | ts.TypeOfExpression | ts.VoidExpression;
2567
+ [AST_NODE_TYPES.UpdateExpression]: ts.PostfixUnaryExpression | ts.PrefixUnaryExpression;
2568
+ [AST_NODE_TYPES.VariableDeclaration]: ts.VariableDeclarationList | ts.VariableStatement;
2569
+ [AST_NODE_TYPES.VariableDeclarator]: ts.VariableDeclaration;
2570
+ [AST_NODE_TYPES.WhileStatement]: ts.WhileStatement;
2571
+ [AST_NODE_TYPES.WithStatement]: ts.WithStatement;
2572
+ [AST_NODE_TYPES.YieldExpression]: ts.YieldExpression;
2573
+ [AST_NODE_TYPES.TSEmptyBodyFunctionExpression]: ts.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
2574
+ [AST_NODE_TYPES.TSAbstractKeyword]: ts.Token<ts.SyntaxKind.AbstractKeyword>;
2575
+ [AST_NODE_TYPES.TSAnyKeyword]: ts.KeywordTypeNode;
2576
+ [AST_NODE_TYPES.TSBigIntKeyword]: ts.KeywordTypeNode;
2577
+ [AST_NODE_TYPES.TSBooleanKeyword]: ts.KeywordTypeNode;
2578
+ [AST_NODE_TYPES.TSIntrinsicKeyword]: ts.KeywordTypeNode;
2579
+ [AST_NODE_TYPES.TSNeverKeyword]: ts.KeywordTypeNode;
2580
+ [AST_NODE_TYPES.TSNullKeyword]: ts.KeywordTypeNode | ts.NullLiteral;
2581
+ [AST_NODE_TYPES.TSNumberKeyword]: ts.KeywordTypeNode;
2582
+ [AST_NODE_TYPES.TSObjectKeyword]: ts.KeywordTypeNode;
2583
+ [AST_NODE_TYPES.TSStringKeyword]: ts.KeywordTypeNode;
2584
+ [AST_NODE_TYPES.TSSymbolKeyword]: ts.KeywordTypeNode;
2585
+ [AST_NODE_TYPES.TSUndefinedKeyword]: ts.KeywordTypeNode;
2586
+ [AST_NODE_TYPES.TSUnknownKeyword]: ts.KeywordTypeNode;
2587
+ [AST_NODE_TYPES.TSVoidKeyword]: ts.KeywordTypeNode;
2588
+ [AST_NODE_TYPES.TSAsyncKeyword]: ts.Token<ts.SyntaxKind.AsyncKeyword>;
2589
+ [AST_NODE_TYPES.TSDeclareKeyword]: ts.Token<ts.SyntaxKind.DeclareKeyword>;
2590
+ [AST_NODE_TYPES.TSExportKeyword]: ts.Token<ts.SyntaxKind.ExportKeyword>;
2591
+ [AST_NODE_TYPES.TSPrivateKeyword]: ts.Token<ts.SyntaxKind.PrivateKeyword>;
2592
+ [AST_NODE_TYPES.TSProtectedKeyword]: ts.Token<ts.SyntaxKind.ProtectedKeyword>;
2593
+ [AST_NODE_TYPES.TSPublicKeyword]: ts.Token<ts.SyntaxKind.PublicKeyword>;
2594
+ [AST_NODE_TYPES.TSReadonlyKeyword]: ts.Token<ts.SyntaxKind.ReadonlyKeyword>;
2595
+ [AST_NODE_TYPES.TSStaticKeyword]: ts.Token<ts.SyntaxKind.StaticKeyword>;
4930
2596
  }
4931
2597
  /**
4932
2598
  * Maps TSESTree AST Node type to the expected TypeScript AST Node type(s).
4933
2599
  * This mapping is based on the internal logic of the parser.
4934
2600
  */
4935
- type TSESTreeToTSNode<T extends Node$1 = Node$1> = Extract<ts.Token<ts.SyntaxKind.ImportKeyword | ts.SyntaxKind.NewKeyword> | TSNode, EstreeToTsNodeTypes[T['type']]>;
2601
+ type TSESTreeToTSNode<T extends Node = Node> = Extract<ts.Token<ts.SyntaxKind.ImportKeyword | ts.SyntaxKind.NewKeyword> | TSNode, EstreeToTsNodeTypes[T['type']]>;
4936
2602
 
4937
2603
  declare module 'typescript' {
4938
2604
  enum JSDocParsingMode {
@@ -4947,7 +2613,7 @@ interface ParserWeakMap<Key, ValueBase> {
4947
2613
  get<Value extends ValueBase>(key: Key): Value;
4948
2614
  has(key: unknown): boolean;
4949
2615
  }
4950
- interface ParserWeakMapESTreeToTSNode<Key extends Node$1 = Node$1> {
2616
+ interface ParserWeakMapESTreeToTSNode<Key extends Node = Node> {
4951
2617
  get<KeyBase extends Key>(key: KeyBase): TSESTreeToTSNode<KeyBase>;
4952
2618
  has(key: unknown): boolean;
4953
2619
  }
@@ -4958,15 +2624,15 @@ interface ParserServicesBase {
4958
2624
  }
4959
2625
  interface ParserServicesNodeMaps {
4960
2626
  esTreeNodeToTSNodeMap: ParserWeakMapESTreeToTSNode;
4961
- tsNodeToESTreeNodeMap: ParserWeakMap<TSNode | TSToken, Node$1>;
2627
+ tsNodeToESTreeNodeMap: ParserWeakMap<TSNode | TSToken, Node>;
4962
2628
  }
4963
2629
  interface ParserServicesWithTypeInformation extends ParserServicesNodeMaps, ParserServicesBase {
4964
- getSymbolAtLocation: (node: Node$1) => ts.Symbol | undefined;
4965
- getTypeAtLocation: (node: Node$1) => ts.Type;
4966
- getContextualType: (node: Expression$1) => ts.Type | undefined;
4967
- getResolvedSignature: (node: CallExpression$1 | NewExpression$1) => ts.Signature | undefined;
4968
- getTypeFromTypeNode: (node: TypeNode$1) => ts.Type;
4969
- getTypeOfSymbolAtLocation: (symbol: ts.Symbol, node: Node$1) => ts.Type;
2630
+ getSymbolAtLocation: (node: Node) => ts.Symbol | undefined;
2631
+ getTypeAtLocation: (node: Node) => ts.Type;
2632
+ getContextualType: (node: Expression) => ts.Type | undefined;
2633
+ getResolvedSignature: (node: CallExpression | NewExpression) => ts.Signature | undefined;
2634
+ getTypeFromTypeNode: (node: TypeNode) => ts.Type;
2635
+ getTypeOfSymbolAtLocation: (symbol: ts.Symbol, node: Node) => ts.Type;
4970
2636
  program: ts.Program;
4971
2637
  }
4972
2638
  interface ParserServicesWithoutTypeInformation extends ParserServicesNodeMaps, ParserServicesBase {
@@ -4975,10 +2641,10 @@ interface ParserServicesWithoutTypeInformation extends ParserServicesNodeMaps, P
4975
2641
  type ParserServices = ParserServicesWithoutTypeInformation | ParserServicesWithTypeInformation;
4976
2642
 
4977
2643
  declare namespace AST {
4978
- type TokenType = AST_TOKEN_TYPES$1;
4979
- type Token = Token$1;
4980
- type SourceLocation = SourceLocation$1;
4981
- type Range = Range$1;
2644
+ type TokenType = AST_TOKEN_TYPES;
2645
+ type Token = Token;
2646
+ type SourceLocation = SourceLocation;
2647
+ type Range = Range;
4982
2648
  }
4983
2649
 
4984
2650
  declare enum DefinitionType {
@@ -4995,7 +2661,7 @@ declare enum DefinitionType {
4995
2661
  Variable = "Variable"
4996
2662
  }
4997
2663
 
4998
- declare abstract class DefinitionBase<Type extends DefinitionType, Node extends NodeWithParent, Parent extends Node$1 | null, Name extends Node$1> {
2664
+ declare abstract class DefinitionBase<Type extends DefinitionType, Node extends NodeWithParent, Parent extends Node | null, Name extends Node> {
4999
2665
  /**
5000
2666
  * A unique ID for this instance - primarily used to help debugging and testing
5001
2667
  */
@@ -5027,75 +2693,75 @@ declare abstract class DefinitionBase<Type extends DefinitionType, Node extends
5027
2693
  abstract readonly isVariableDefinition: boolean;
5028
2694
  }
5029
2695
 
5030
- declare class CatchClauseDefinition extends DefinitionBase<DefinitionType.CatchClause, CatchClause$1, null, Identifier$1> {
2696
+ declare class CatchClauseDefinition extends DefinitionBase<DefinitionType.CatchClause, CatchClause, null, Identifier> {
5031
2697
  readonly isTypeDefinition = false;
5032
2698
  readonly isVariableDefinition = true;
5033
- constructor(name: Identifier$1, node: CatchClauseDefinition['node']);
2699
+ constructor(name: Identifier, node: CatchClauseDefinition['node']);
5034
2700
  }
5035
2701
 
5036
- declare class ClassNameDefinition extends DefinitionBase<DefinitionType.ClassName, ClassDeclaration$1 | ClassExpression$1, null, Identifier$1> {
2702
+ declare class ClassNameDefinition extends DefinitionBase<DefinitionType.ClassName, ClassDeclaration | ClassExpression, null, Identifier> {
5037
2703
  readonly isTypeDefinition = true;
5038
2704
  readonly isVariableDefinition = true;
5039
- constructor(name: Identifier$1, node: ClassNameDefinition['node']);
2705
+ constructor(name: Identifier, node: ClassNameDefinition['node']);
5040
2706
  }
5041
2707
 
5042
- declare class FunctionNameDefinition extends DefinitionBase<DefinitionType.FunctionName, FunctionDeclaration$1 | FunctionExpression$1 | TSDeclareFunction$1 | TSEmptyBodyFunctionExpression$1, null, Identifier$1> {
2708
+ declare class FunctionNameDefinition extends DefinitionBase<DefinitionType.FunctionName, FunctionDeclaration | FunctionExpression | TSDeclareFunction | TSEmptyBodyFunctionExpression, null, Identifier> {
5043
2709
  readonly isTypeDefinition = false;
5044
2710
  readonly isVariableDefinition = true;
5045
- constructor(name: Identifier$1, node: FunctionNameDefinition['node']);
2711
+ constructor(name: Identifier, node: FunctionNameDefinition['node']);
5046
2712
  }
5047
2713
 
5048
- declare class ImplicitGlobalVariableDefinition extends DefinitionBase<DefinitionType.ImplicitGlobalVariable, NodeWithParent, null, BindingName$1> {
2714
+ declare class ImplicitGlobalVariableDefinition extends DefinitionBase<DefinitionType.ImplicitGlobalVariable, NodeWithParent, null, BindingName> {
5049
2715
  readonly isTypeDefinition = false;
5050
2716
  readonly isVariableDefinition = true;
5051
- constructor(name: BindingName$1, node: ImplicitGlobalVariableDefinition['node']);
2717
+ constructor(name: BindingName, node: ImplicitGlobalVariableDefinition['node']);
5052
2718
  }
5053
2719
 
5054
- declare class ImportBindingDefinition extends DefinitionBase<DefinitionType.ImportBinding, ImportDefaultSpecifier$1 | ImportNamespaceSpecifier$1 | ImportSpecifier$1 | TSImportEqualsDeclaration$1, ImportDeclaration$1 | TSImportEqualsDeclaration$1, Identifier$1> {
2720
+ declare class ImportBindingDefinition extends DefinitionBase<DefinitionType.ImportBinding, ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | TSImportEqualsDeclaration, ImportDeclaration | TSImportEqualsDeclaration, Identifier> {
5055
2721
  readonly isTypeDefinition = true;
5056
2722
  readonly isVariableDefinition = true;
5057
- constructor(name: Identifier$1, node: TSImportEqualsDeclaration$1, decl: TSImportEqualsDeclaration$1);
5058
- constructor(name: Identifier$1, node: Exclude<ImportBindingDefinition['node'], TSImportEqualsDeclaration$1>, decl: ImportDeclaration$1);
2723
+ constructor(name: Identifier, node: TSImportEqualsDeclaration, decl: TSImportEqualsDeclaration);
2724
+ constructor(name: Identifier, node: Exclude<ImportBindingDefinition['node'], TSImportEqualsDeclaration>, decl: ImportDeclaration);
5059
2725
  }
5060
2726
 
5061
- declare class ParameterDefinition extends DefinitionBase<DefinitionType.Parameter, ArrowFunctionExpression$1 | FunctionDeclaration$1 | FunctionExpression$1 | TSCallSignatureDeclaration$1 | TSConstructorType$1 | TSConstructSignatureDeclaration$1 | TSDeclareFunction$1 | TSEmptyBodyFunctionExpression$1 | TSFunctionType$1 | TSMethodSignature$1, null, BindingName$1> {
2727
+ declare class ParameterDefinition extends DefinitionBase<DefinitionType.Parameter, ArrowFunctionExpression | FunctionDeclaration | FunctionExpression | TSCallSignatureDeclaration | TSConstructorType | TSConstructSignatureDeclaration | TSDeclareFunction | TSEmptyBodyFunctionExpression | TSFunctionType | TSMethodSignature, null, BindingName> {
5062
2728
  /**
5063
2729
  * Whether the parameter definition is a part of a rest parameter.
5064
2730
  */
5065
2731
  readonly isTypeDefinition = false;
5066
2732
  readonly isVariableDefinition = true;
5067
2733
  readonly rest: boolean;
5068
- constructor(name: BindingName$1, node: ParameterDefinition['node'], rest: boolean);
2734
+ constructor(name: BindingName, node: ParameterDefinition['node'], rest: boolean);
5069
2735
  }
5070
2736
 
5071
- declare class TSEnumMemberDefinition extends DefinitionBase<DefinitionType.TSEnumMember, TSEnumMember$1, null, Identifier$1 | StringLiteral$1> {
2737
+ declare class TSEnumMemberDefinition extends DefinitionBase<DefinitionType.TSEnumMember, TSEnumMember, null, Identifier | StringLiteral> {
5072
2738
  readonly isTypeDefinition = true;
5073
2739
  readonly isVariableDefinition = true;
5074
- constructor(name: Identifier$1 | StringLiteral$1, node: TSEnumMemberDefinition['node']);
2740
+ constructor(name: Identifier | StringLiteral, node: TSEnumMemberDefinition['node']);
5075
2741
  }
5076
2742
 
5077
- declare class TSEnumNameDefinition extends DefinitionBase<DefinitionType.TSEnumName, TSEnumDeclaration$1, null, Identifier$1> {
2743
+ declare class TSEnumNameDefinition extends DefinitionBase<DefinitionType.TSEnumName, TSEnumDeclaration, null, Identifier> {
5078
2744
  readonly isTypeDefinition = true;
5079
2745
  readonly isVariableDefinition = true;
5080
- constructor(name: Identifier$1, node: TSEnumNameDefinition['node']);
2746
+ constructor(name: Identifier, node: TSEnumNameDefinition['node']);
5081
2747
  }
5082
2748
 
5083
- declare class TSModuleNameDefinition extends DefinitionBase<DefinitionType.TSModuleName, TSModuleDeclaration$1, null, Identifier$1> {
2749
+ declare class TSModuleNameDefinition extends DefinitionBase<DefinitionType.TSModuleName, TSModuleDeclaration, null, Identifier> {
5084
2750
  readonly isTypeDefinition = true;
5085
2751
  readonly isVariableDefinition = true;
5086
- constructor(name: Identifier$1, node: TSModuleNameDefinition['node']);
2752
+ constructor(name: Identifier, node: TSModuleNameDefinition['node']);
5087
2753
  }
5088
2754
 
5089
- declare class TypeDefinition extends DefinitionBase<DefinitionType.Type, TSInterfaceDeclaration$1 | TSMappedType$1 | TSTypeAliasDeclaration$1 | TSTypeParameter$1, null, Identifier$1> {
2755
+ declare class TypeDefinition extends DefinitionBase<DefinitionType.Type, TSInterfaceDeclaration | TSMappedType | TSTypeAliasDeclaration | TSTypeParameter, null, Identifier> {
5090
2756
  readonly isTypeDefinition = true;
5091
2757
  readonly isVariableDefinition = false;
5092
- constructor(name: Identifier$1, node: TypeDefinition['node']);
2758
+ constructor(name: Identifier, node: TypeDefinition['node']);
5093
2759
  }
5094
2760
 
5095
- declare class VariableDefinition extends DefinitionBase<DefinitionType.Variable, VariableDeclarator$1, VariableDeclaration$1, Identifier$1> {
2761
+ declare class VariableDefinition extends DefinitionBase<DefinitionType.Variable, VariableDeclarator, VariableDeclaration, Identifier> {
5096
2762
  readonly isTypeDefinition = false;
5097
2763
  readonly isVariableDefinition = true;
5098
- constructor(name: Identifier$1, node: VariableDefinition['node'], decl: VariableDeclaration$1);
2764
+ constructor(name: Identifier, node: VariableDefinition['node'], decl: VariableDeclaration);
5099
2765
  }
5100
2766
 
5101
2767
  type Definition = CatchClauseDefinition | ClassNameDefinition | FunctionNameDefinition | ImplicitGlobalVariableDefinition | ImportBindingDefinition | ParameterDefinition | TSEnumMemberDefinition | TSEnumNameDefinition | TSModuleNameDefinition | TypeDefinition | VariableDefinition;
@@ -5107,7 +2773,7 @@ declare enum ReferenceFlag {
5107
2773
  }
5108
2774
  interface ReferenceImplicitGlobal {
5109
2775
  node: NodeWithParent;
5110
- pattern: BindingName$1;
2776
+ pattern: BindingName;
5111
2777
  ref?: Reference;
5112
2778
  }
5113
2779
  declare enum ReferenceTypeFlag {
@@ -5132,7 +2798,7 @@ declare class Reference {
5132
2798
  * Identifier syntax node.
5133
2799
  * @public
5134
2800
  */
5135
- readonly identifier: Identifier$1 | JSXIdentifier$1;
2801
+ readonly identifier: Identifier | JSXIdentifier;
5136
2802
  /**
5137
2803
  * `true` if this writing reference is a variable initializer or a default value.
5138
2804
  * @public
@@ -5148,8 +2814,8 @@ declare class Reference {
5148
2814
  * If reference is writeable, this is the node being written to it.
5149
2815
  * @public
5150
2816
  */
5151
- readonly writeExpr?: Node$1 | null;
5152
- constructor(identifier: Identifier$1 | JSXIdentifier$1, scope: Scope$1, flag: ReferenceFlag, writeExpr?: Node$1 | null, maybeImplicitGlobal?: ReferenceImplicitGlobal | null, init?: boolean, referenceType?: ReferenceTypeFlag);
2817
+ readonly writeExpr?: Node | null;
2818
+ constructor(identifier: Identifier | JSXIdentifier, scope: Scope$1, flag: ReferenceFlag, writeExpr?: Node | null, maybeImplicitGlobal?: ReferenceImplicitGlobal | null, init?: boolean, referenceType?: ReferenceTypeFlag);
5153
2819
  /**
5154
2820
  * True if this reference can reference types
5155
2821
  */
@@ -5205,7 +2871,7 @@ declare class VariableBase {
5205
2871
  * If this variable is redeclared, this array includes two or more nodes.
5206
2872
  * @public
5207
2873
  */
5208
- readonly identifiers: Identifier$1[];
2874
+ readonly identifiers: Identifier[];
5209
2875
  /**
5210
2876
  * The variable name, as given in the source code.
5211
2877
  * @public
@@ -5252,7 +2918,7 @@ declare class ESLintScopeVariable extends VariableBase {
5252
2918
  * If this key exists, it is a global variable added by ESLint.
5253
2919
  * If `true`, this global variable was defined by a globals comment directive in the source code file.
5254
2920
  */
5255
- eslintExplicitGlobalComments?: Comment$1[];
2921
+ eslintExplicitGlobalComments?: Comment[];
5256
2922
  }
5257
2923
 
5258
2924
  /**
@@ -5301,12 +2967,12 @@ declare enum ScopeType {
5301
2967
  with = "with"
5302
2968
  }
5303
2969
 
5304
- declare class FunctionScope extends ScopeBase<ScopeType.function, ArrowFunctionExpression$1 | FunctionDeclaration$1 | FunctionExpression$1 | Program$1 | TSDeclareFunction$1 | TSEmptyBodyFunctionExpression$1, Scope$1> {
2970
+ declare class FunctionScope extends ScopeBase<ScopeType.function, ArrowFunctionExpression | FunctionDeclaration | FunctionExpression | Program | TSDeclareFunction | TSEmptyBodyFunctionExpression, Scope$1> {
5305
2971
  constructor(scopeManager: ScopeManager, upperScope: FunctionScope['upper'], block: FunctionScope['block'], isMethodDefinition: boolean);
5306
2972
  protected isValidResolution(ref: Reference, variable: Variable): boolean;
5307
2973
  }
5308
2974
 
5309
- declare class GlobalScope extends ScopeBase<ScopeType.global, Program$1,
2975
+ declare class GlobalScope extends ScopeBase<ScopeType.global, Program,
5310
2976
  /**
5311
2977
  * The global scope has no parent.
5312
2978
  */
@@ -5318,16 +2984,16 @@ null> {
5318
2984
  defineImplicitVariable(name: string, options: ImplicitLibVariableOptions): void;
5319
2985
  }
5320
2986
 
5321
- declare class ModuleScope extends ScopeBase<ScopeType.module, Program$1, Scope$1> {
2987
+ declare class ModuleScope extends ScopeBase<ScopeType.module, Program, Scope$1> {
5322
2988
  constructor(scopeManager: ScopeManager, upperScope: ModuleScope['upper'], block: ModuleScope['block']);
5323
2989
  }
5324
2990
 
5325
- declare class TSModuleScope extends ScopeBase<ScopeType.tsModule, TSModuleDeclaration$1, Scope$1> {
2991
+ declare class TSModuleScope extends ScopeBase<ScopeType.tsModule, TSModuleDeclaration, Scope$1> {
5326
2992
  constructor(scopeManager: ScopeManager, upperScope: TSModuleScope['upper'], block: TSModuleScope['block']);
5327
2993
  }
5328
2994
 
5329
2995
  type VariableScope = FunctionScope | GlobalScope | ModuleScope | TSModuleScope;
5330
- declare abstract class ScopeBase<Type extends ScopeType, Block extends Node$1, Upper extends Scope$1 | null> {
2996
+ declare abstract class ScopeBase<Type extends ScopeType, Block extends Node, Upper extends Scope$1 | null> {
5331
2997
  #private;
5332
2998
  /**
5333
2999
  * A unique ID for this instance - primarily used to help debugging and testing
@@ -5399,70 +3065,70 @@ declare abstract class ScopeBase<Type extends ScopeType, Block extends Node$1, U
5399
3065
  * To override by function scopes.
5400
3066
  * References in default parameters isn't resolved to variables which are in their function body.
5401
3067
  */
5402
- protected defineVariable(nameOrVariable: string | Variable, set: Map<string, Variable>, variables: Variable[], node: Identifier$1 | null, def: Definition | null): void;
3068
+ protected defineVariable(nameOrVariable: string | Variable, set: Map<string, Variable>, variables: Variable[], node: Identifier | null, def: Definition | null): void;
5403
3069
  protected delegateToUpperScope(ref: Reference): void;
5404
3070
  protected isValidResolution(_ref: Reference, _variable: Variable): boolean;
5405
3071
  private addDeclaredVariablesOfNode;
5406
- defineIdentifier(node: Identifier$1, def: Definition): void;
5407
- defineLiteralIdentifier(node: StringLiteral$1, def: Definition): void;
5408
- referenceDualValueType(node: Identifier$1): void;
5409
- referenceType(node: Identifier$1): void;
5410
- referenceValue(node: Identifier$1 | JSXIdentifier$1, assign?: ReferenceFlag, writeExpr?: Expression$1 | null, maybeImplicitGlobal?: ReferenceImplicitGlobal | null, init?: boolean): void;
3072
+ defineIdentifier(node: Identifier, def: Definition): void;
3073
+ defineLiteralIdentifier(node: StringLiteral, def: Definition): void;
3074
+ referenceDualValueType(node: Identifier): void;
3075
+ referenceType(node: Identifier): void;
3076
+ referenceValue(node: Identifier | JSXIdentifier, assign?: ReferenceFlag, writeExpr?: Expression | null, maybeImplicitGlobal?: ReferenceImplicitGlobal | null, init?: boolean): void;
5411
3077
  }
5412
3078
 
5413
- declare class CatchScope extends ScopeBase<ScopeType.catch, CatchClause$1, Scope$1> {
3079
+ declare class CatchScope extends ScopeBase<ScopeType.catch, CatchClause, Scope$1> {
5414
3080
  constructor(scopeManager: ScopeManager, upperScope: CatchScope['upper'], block: CatchScope['block']);
5415
3081
  }
5416
3082
 
5417
- declare class ClassScope extends ScopeBase<ScopeType.class, ClassDeclaration$1 | ClassExpression$1, Scope$1> {
3083
+ declare class ClassScope extends ScopeBase<ScopeType.class, ClassDeclaration | ClassExpression, Scope$1> {
5418
3084
  constructor(scopeManager: ScopeManager, upperScope: ClassScope['upper'], block: ClassScope['block']);
5419
3085
  }
5420
3086
 
5421
- declare class ClassStaticBlockScope extends ScopeBase<ScopeType.classStaticBlock, StaticBlock$1, Scope$1> {
3087
+ declare class ClassStaticBlockScope extends ScopeBase<ScopeType.classStaticBlock, StaticBlock, Scope$1> {
5422
3088
  constructor(scopeManager: ScopeManager, upperScope: ClassStaticBlockScope['upper'], block: ClassStaticBlockScope['block']);
5423
3089
  }
5424
3090
 
5425
- declare class ConditionalTypeScope extends ScopeBase<ScopeType.conditionalType, TSConditionalType$1, Scope$1> {
3091
+ declare class ConditionalTypeScope extends ScopeBase<ScopeType.conditionalType, TSConditionalType, Scope$1> {
5426
3092
  constructor(scopeManager: ScopeManager, upperScope: ConditionalTypeScope['upper'], block: ConditionalTypeScope['block']);
5427
3093
  }
5428
3094
 
5429
- declare class ForScope extends ScopeBase<ScopeType.for, ForInStatement$1 | ForOfStatement$1 | ForStatement$1, Scope$1> {
3095
+ declare class ForScope extends ScopeBase<ScopeType.for, ForInStatement | ForOfStatement | ForStatement, Scope$1> {
5430
3096
  constructor(scopeManager: ScopeManager, upperScope: ForScope['upper'], block: ForScope['block']);
5431
3097
  }
5432
3098
 
5433
- declare class FunctionExpressionNameScope extends ScopeBase<ScopeType.functionExpressionName, FunctionExpression$1, Scope$1> {
3099
+ declare class FunctionExpressionNameScope extends ScopeBase<ScopeType.functionExpressionName, FunctionExpression, Scope$1> {
5434
3100
  readonly functionExpressionScope: true;
5435
3101
  constructor(scopeManager: ScopeManager, upperScope: FunctionExpressionNameScope['upper'], block: FunctionExpressionNameScope['block']);
5436
3102
  }
5437
3103
 
5438
- declare class FunctionTypeScope extends ScopeBase<ScopeType.functionType, TSCallSignatureDeclaration$1 | TSConstructorType$1 | TSConstructSignatureDeclaration$1 | TSFunctionType$1 | TSMethodSignature$1, Scope$1> {
3104
+ declare class FunctionTypeScope extends ScopeBase<ScopeType.functionType, TSCallSignatureDeclaration | TSConstructorType | TSConstructSignatureDeclaration | TSFunctionType | TSMethodSignature, Scope$1> {
5439
3105
  constructor(scopeManager: ScopeManager, upperScope: FunctionTypeScope['upper'], block: FunctionTypeScope['block']);
5440
3106
  }
5441
3107
 
5442
- declare class MappedTypeScope extends ScopeBase<ScopeType.mappedType, TSMappedType$1, Scope$1> {
3108
+ declare class MappedTypeScope extends ScopeBase<ScopeType.mappedType, TSMappedType, Scope$1> {
5443
3109
  constructor(scopeManager: ScopeManager, upperScope: MappedTypeScope['upper'], block: MappedTypeScope['block']);
5444
3110
  }
5445
3111
 
5446
- declare class SwitchScope extends ScopeBase<ScopeType.switch, SwitchStatement$1, Scope$1> {
3112
+ declare class SwitchScope extends ScopeBase<ScopeType.switch, SwitchStatement, Scope$1> {
5447
3113
  constructor(scopeManager: ScopeManager, upperScope: SwitchScope['upper'], block: SwitchScope['block']);
5448
3114
  }
5449
3115
 
5450
- declare class TSEnumScope extends ScopeBase<ScopeType.tsEnum, TSEnumDeclaration$1, Scope$1> {
3116
+ declare class TSEnumScope extends ScopeBase<ScopeType.tsEnum, TSEnumDeclaration, Scope$1> {
5451
3117
  constructor(scopeManager: ScopeManager, upperScope: TSEnumScope['upper'], block: TSEnumScope['block']);
5452
3118
  }
5453
3119
 
5454
- declare class TypeScope extends ScopeBase<ScopeType.type, TSInterfaceDeclaration$1 | TSTypeAliasDeclaration$1, Scope$1> {
3120
+ declare class TypeScope extends ScopeBase<ScopeType.type, TSInterfaceDeclaration | TSTypeAliasDeclaration, Scope$1> {
5455
3121
  constructor(scopeManager: ScopeManager, upperScope: TypeScope['upper'], block: TypeScope['block']);
5456
3122
  }
5457
3123
 
5458
- declare class WithScope extends ScopeBase<ScopeType.with, WithStatement$1, Scope$1> {
3124
+ declare class WithScope extends ScopeBase<ScopeType.with, WithStatement, Scope$1> {
5459
3125
  constructor(scopeManager: ScopeManager, upperScope: WithScope['upper'], block: WithScope['block']);
5460
3126
  close(scopeManager: ScopeManager): Scope$1 | null;
5461
3127
  }
5462
3128
 
5463
3129
  type Scope$1 = BlockScope | CatchScope | ClassFieldInitializerScope | ClassScope | ClassStaticBlockScope | ConditionalTypeScope | ForScope | FunctionExpressionNameScope | FunctionScope | FunctionTypeScope | GlobalScope | MappedTypeScope | ModuleScope | SwitchScope | TSEnumScope | TSModuleScope | TypeScope | WithScope;
5464
3130
 
5465
- declare class ClassFieldInitializerScope extends ScopeBase<ScopeType.classFieldInitializer, Expression$1, Scope$1> {
3131
+ declare class ClassFieldInitializerScope extends ScopeBase<ScopeType.classFieldInitializer, Expression, Scope$1> {
5466
3132
  constructor(scopeManager: ScopeManager, upperScope: ClassFieldInitializerScope['upper'], block: ClassFieldInitializerScope['block']);
5467
3133
  }
5468
3134
 
@@ -5477,12 +3143,12 @@ interface ScopeManagerOptions {
5477
3143
  declare class ScopeManager {
5478
3144
  #private;
5479
3145
  currentScope: Scope$1 | null;
5480
- readonly declaredVariables: WeakMap<Node$1, Variable[]>;
3146
+ readonly declaredVariables: WeakMap<Node, Variable[]>;
5481
3147
  /**
5482
3148
  * The root scope
5483
3149
  */
5484
3150
  globalScope: GlobalScope | null;
5485
- readonly nodeToScope: WeakMap<Node$1, Scope$1[]>;
3151
+ readonly nodeToScope: WeakMap<Node, Scope$1[]>;
5486
3152
  /**
5487
3153
  * All scopes
5488
3154
  * @public
@@ -5500,7 +3166,7 @@ declare class ScopeManager {
5500
3166
  * If the node does not define any variable, this returns an empty array.
5501
3167
  * @param node An AST node to get their variables.
5502
3168
  */
5503
- getDeclaredVariables(node: Node$1): Variable[];
3169
+ getDeclaredVariables(node: Node): Variable[];
5504
3170
  /**
5505
3171
  * Get the scope of a given AST node. The gotten scope's `block` property is the node.
5506
3172
  * This method never returns `function-expression-name` scope. If the node does not have their scope, this returns `null`.
@@ -5509,7 +3175,7 @@ declare class ScopeManager {
5509
3175
  * @param inner If the node has multiple scopes, this returns the outermost scope normally.
5510
3176
  * If `inner` is `true` then this returns the innermost scope.
5511
3177
  */
5512
- acquire(node: Node$1, inner?: boolean): Scope$1 | null;
3178
+ acquire(node: Node, inner?: boolean): Scope$1 | null;
5513
3179
  /**
5514
3180
  * Adds dynamically created globals to the global scope and resolve their references.
5515
3181
  * This method is called by ESLint.
@@ -5537,7 +3203,7 @@ declare class ScopeManager {
5537
3203
  protected nestScope<T extends Scope$1>(scope: T): T;
5538
3204
  }
5539
3205
 
5540
- declare class BlockScope extends ScopeBase<ScopeType.block, BlockStatement$1, Scope$1> {
3206
+ declare class BlockScope extends ScopeBase<ScopeType.block, BlockStatement, Scope$1> {
5541
3207
  constructor(scopeManager: ScopeManager, upperScope: BlockScope['upper'], block: BlockScope['block']);
5542
3208
  }
5543
3209
 
@@ -5643,13 +3309,13 @@ declare namespace Parser {
5643
3309
  /**
5644
3310
  * Parses the given text into an ESTree AST
5645
3311
  */
5646
- parse(text: string, options?: ParserOptions): Program$1;
3312
+ parse(text: string, options?: ParserOptions): Program;
5647
3313
  };
5648
3314
  interface ParseResult {
5649
3315
  /**
5650
3316
  * The ESTree AST
5651
3317
  */
5652
- ast: Program$1;
3318
+ ast: Program;
5653
3319
  /**
5654
3320
  * A `ScopeManager` object.
5655
3321
  * Custom parsers can use customized scope analysis for experimental/enhancement syntaxes.
@@ -6069,32 +3735,32 @@ declare class TokenStore {
6069
3735
  * @param right The node to check.
6070
3736
  * @returns `true` if one or more comments exist.
6071
3737
  */
6072
- commentsExistBetween(left: Node$1 | Token$1, right: Node$1 | Token$1): boolean;
3738
+ commentsExistBetween(left: Node | Token, right: Node | Token): boolean;
6073
3739
  /**
6074
3740
  * Gets all comment tokens directly after the given node or token.
6075
3741
  * @param nodeOrToken The AST node or token to check for adjacent comment tokens.
6076
3742
  * @returns An array of comments in occurrence order.
6077
3743
  */
6078
- getCommentsAfter(nodeOrToken: Node$1 | Token$1): Comment$1[];
3744
+ getCommentsAfter(nodeOrToken: Node | Token): Comment[];
6079
3745
  /**
6080
3746
  * Gets all comment tokens directly before the given node or token.
6081
3747
  * @param nodeOrToken The AST node or token to check for adjacent comment tokens.
6082
3748
  * @returns An array of comments in occurrence order.
6083
3749
  */
6084
- getCommentsBefore(nodeOrToken: Node$1 | Token$1): Comment$1[];
3750
+ getCommentsBefore(nodeOrToken: Node | Token): Comment[];
6085
3751
  /**
6086
3752
  * Gets all comment tokens inside the given node.
6087
3753
  * @param node The AST node to get the comments for.
6088
3754
  * @returns An array of comments in occurrence order.
6089
3755
  */
6090
- getCommentsInside(node: Node$1): Comment$1[];
3756
+ getCommentsInside(node: Node): Comment[];
6091
3757
  /**
6092
3758
  * Gets the first token of the given node.
6093
3759
  * @param node The AST node.
6094
3760
  * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`.
6095
3761
  * @returns An object representing the token.
6096
3762
  */
6097
- getFirstToken<T extends SourceCode.CursorWithSkipOptions>(node: Node$1, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
3763
+ getFirstToken<T extends SourceCode.CursorWithSkipOptions>(node: Node, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
6098
3764
  /**
6099
3765
  * Gets the first token between two non-overlapping nodes.
6100
3766
  * @param left Node before the desired token range.
@@ -6102,13 +3768,13 @@ declare class TokenStore {
6102
3768
  * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`.
6103
3769
  * @returns An object representing the token.
6104
3770
  */
6105
- getFirstTokenBetween<T extends SourceCode.CursorWithSkipOptions>(left: Node$1 | Token$1, right: Node$1 | Token$1, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
3771
+ getFirstTokenBetween<T extends SourceCode.CursorWithSkipOptions>(left: Node | Token, right: Node | Token, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
6106
3772
  /**
6107
3773
  * Gets the first `count` tokens of the given node.
6108
3774
  * @param node The AST node.
6109
3775
  * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`.
6110
3776
  */
6111
- getFirstTokens<T extends SourceCode.CursorWithCountOptions>(node: Node$1, options?: T): SourceCode.ReturnTypeFromOptions<T>[];
3777
+ getFirstTokens<T extends SourceCode.CursorWithCountOptions>(node: Node, options?: T): SourceCode.ReturnTypeFromOptions<T>[];
6112
3778
  /**
6113
3779
  * Gets the first `count` tokens between two non-overlapping nodes.
6114
3780
  * @param left Node before the desired token range.
@@ -6116,14 +3782,14 @@ declare class TokenStore {
6116
3782
  * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`.
6117
3783
  * @returns Tokens between left and right.
6118
3784
  */
6119
- getFirstTokensBetween<T extends SourceCode.CursorWithCountOptions>(left: Node$1 | Token$1, right: Node$1 | Token$1, options?: T): SourceCode.ReturnTypeFromOptions<T>[];
3785
+ getFirstTokensBetween<T extends SourceCode.CursorWithCountOptions>(left: Node | Token, right: Node | Token, options?: T): SourceCode.ReturnTypeFromOptions<T>[];
6120
3786
  /**
6121
3787
  * Gets the last token of the given node.
6122
3788
  * @param node The AST node.
6123
3789
  * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`.
6124
3790
  * @returns An object representing the token.
6125
3791
  */
6126
- getLastToken<T extends SourceCode.CursorWithSkipOptions>(node: Node$1, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
3792
+ getLastToken<T extends SourceCode.CursorWithSkipOptions>(node: Node, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
6127
3793
  /**
6128
3794
  * Gets the last token between two non-overlapping nodes.
6129
3795
  * @param left Node before the desired token range.
@@ -6131,13 +3797,13 @@ declare class TokenStore {
6131
3797
  * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`.
6132
3798
  * @returns An object representing the token.
6133
3799
  */
6134
- getLastTokenBetween<T extends SourceCode.CursorWithSkipOptions>(left: Node$1 | Token$1, right: Node$1 | Token$1, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
3800
+ getLastTokenBetween<T extends SourceCode.CursorWithSkipOptions>(left: Node | Token, right: Node | Token, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
6135
3801
  /**
6136
3802
  * Gets the last `count` tokens of the given node.
6137
3803
  * @param node The AST node.
6138
3804
  * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`.
6139
3805
  */
6140
- getLastTokens<T extends SourceCode.CursorWithCountOptions>(node: Node$1, options?: T): SourceCode.ReturnTypeFromOptions<T>[];
3806
+ getLastTokens<T extends SourceCode.CursorWithCountOptions>(node: Node, options?: T): SourceCode.ReturnTypeFromOptions<T>[];
6141
3807
  /**
6142
3808
  * Gets the last `count` tokens between two non-overlapping nodes.
6143
3809
  * @param left Node before the desired token range.
@@ -6145,21 +3811,21 @@ declare class TokenStore {
6145
3811
  * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`.
6146
3812
  * @returns Tokens between left and right.
6147
3813
  */
6148
- getLastTokensBetween<T extends SourceCode.CursorWithCountOptions>(left: Node$1 | Token$1, right: Node$1 | Token$1, options?: T): SourceCode.ReturnTypeFromOptions<T>[];
3814
+ getLastTokensBetween<T extends SourceCode.CursorWithCountOptions>(left: Node | Token, right: Node | Token, options?: T): SourceCode.ReturnTypeFromOptions<T>[];
6149
3815
  /**
6150
3816
  * Gets the token that follows a given node or token.
6151
3817
  * @param node The AST node or token.
6152
3818
  * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`.
6153
3819
  * @returns An object representing the token.
6154
3820
  */
6155
- getTokenAfter<T extends SourceCode.CursorWithSkipOptions>(node: Node$1 | Token$1, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
3821
+ getTokenAfter<T extends SourceCode.CursorWithSkipOptions>(node: Node | Token, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
6156
3822
  /**
6157
3823
  * Gets the token that precedes a given node or token.
6158
3824
  * @param node The AST node or token.
6159
3825
  * @param options The option object
6160
3826
  * @returns An object representing the token.
6161
3827
  */
6162
- getTokenBefore<T extends SourceCode.CursorWithSkipOptions>(node: Node$1 | Token$1, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
3828
+ getTokenBefore<T extends SourceCode.CursorWithSkipOptions>(node: Node | Token, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
6163
3829
  /**
6164
3830
  * Gets the token starting at the specified index.
6165
3831
  * @param offset Index of the start of the token's range.
@@ -6176,26 +3842,26 @@ declare class TokenStore {
6176
3842
  * @param afterCount The number of tokens after the node to retrieve.
6177
3843
  * @returns Array of objects representing tokens.
6178
3844
  */
6179
- getTokens(node: Node$1, beforeCount?: number, afterCount?: number): Token$1[];
3845
+ getTokens(node: Node, beforeCount?: number, afterCount?: number): Token[];
6180
3846
  /**
6181
3847
  * Gets all tokens that are related to the given node.
6182
3848
  * @param node The AST node.
6183
3849
  * @param options The option object. If this is a function then it's `options.filter`.
6184
3850
  * @returns Array of objects representing tokens.
6185
3851
  */
6186
- getTokens<T extends SourceCode.CursorWithCountOptions>(node: Node$1, options: T): SourceCode.ReturnTypeFromOptions<T>[];
3852
+ getTokens<T extends SourceCode.CursorWithCountOptions>(node: Node, options: T): SourceCode.ReturnTypeFromOptions<T>[];
6187
3853
  /**
6188
3854
  * Gets the `count` tokens that follows a given node or token.
6189
3855
  * @param node The AST node.
6190
3856
  * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`.
6191
3857
  */
6192
- getTokensAfter<T extends SourceCode.CursorWithCountOptions>(node: Node$1 | Token$1, options?: number | T): SourceCode.ReturnTypeFromOptions<T>[];
3858
+ getTokensAfter<T extends SourceCode.CursorWithCountOptions>(node: Node | Token, options?: number | T): SourceCode.ReturnTypeFromOptions<T>[];
6193
3859
  /**
6194
3860
  * Gets the `count` tokens that precedes a given node or token.
6195
3861
  * @param node The AST node.
6196
3862
  * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`.
6197
3863
  */
6198
- getTokensBefore<T extends SourceCode.CursorWithCountOptions>(node: Node$1 | Token$1, options?: number | T): SourceCode.ReturnTypeFromOptions<T>[];
3864
+ getTokensBefore<T extends SourceCode.CursorWithCountOptions>(node: Node | Token, options?: number | T): SourceCode.ReturnTypeFromOptions<T>[];
6199
3865
  /**
6200
3866
  * Gets all of the tokens between two non-overlapping nodes.
6201
3867
  * @param left Node before the desired token range.
@@ -6203,7 +3869,7 @@ declare class TokenStore {
6203
3869
  * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`.
6204
3870
  * @returns Tokens between left and right.
6205
3871
  */
6206
- getTokensBetween<T extends SourceCode.CursorWithCountOptions>(left: Node$1 | Token$1, right: Node$1 | Token$1, options?: number | T): SourceCode.ReturnTypeFromOptions<T>[];
3872
+ getTokensBetween<T extends SourceCode.CursorWithCountOptions>(left: Node | Token, right: Node | Token, options?: number | T): SourceCode.ReturnTypeFromOptions<T>[];
6207
3873
  }
6208
3874
  declare class SourceCodeBase extends TokenStore {
6209
3875
  /**
@@ -6227,13 +3893,13 @@ declare class SourceCodeBase extends TokenStore {
6227
3893
  * Retrieves an array containing all comments in the source code.
6228
3894
  * @returns An array of comment nodes.
6229
3895
  */
6230
- getAllComments(): Comment$1[];
3896
+ getAllComments(): Comment[];
6231
3897
  /**
6232
3898
  * Converts a (line, column) pair into a range index.
6233
3899
  * @param location A line/column location
6234
3900
  * @returns The range index of the location in the file.
6235
3901
  */
6236
- getIndexFromLoc(location: Position$1): number;
3902
+ getIndexFromLoc(location: Position): number;
6237
3903
  /**
6238
3904
  * Gets the entire source text split into an array of lines.
6239
3905
  * @returns The source text as an array of lines.
@@ -6244,13 +3910,13 @@ declare class SourceCodeBase extends TokenStore {
6244
3910
  * @param index The index of a character in a file
6245
3911
  * @returns A {line, column} location object with a 0-indexed column
6246
3912
  */
6247
- getLocFromIndex(index: number): Position$1;
3913
+ getLocFromIndex(index: number): Position;
6248
3914
  /**
6249
3915
  * Gets the deepest node containing a range index.
6250
3916
  * @param index Range index of the desired node.
6251
3917
  * @returns The node if found or `null` if not found.
6252
3918
  */
6253
- getNodeByRangeIndex(index: number): Node$1 | null;
3919
+ getNodeByRangeIndex(index: number): Node | null;
6254
3920
  /**
6255
3921
  * Gets the source code for the given node.
6256
3922
  * @param node The AST node to get the text for.
@@ -6258,7 +3924,7 @@ declare class SourceCodeBase extends TokenStore {
6258
3924
  * @param afterCount The number of characters after the node to retrieve.
6259
3925
  * @returns The text representing the AST node.
6260
3926
  */
6261
- getText(node?: Node$1 | Token$1, beforeCount?: number, afterCount?: number): string;
3927
+ getText(node?: Node | Token, beforeCount?: number, afterCount?: number): string;
6262
3928
  /**
6263
3929
  * The flag to indicate that the source code has Unicode BOM.
6264
3930
  */
@@ -6271,7 +3937,7 @@ declare class SourceCodeBase extends TokenStore {
6271
3937
  * @param second The second node or token to check between.
6272
3938
  * @returns True if there is a whitespace character between any of the tokens found between the two given nodes or tokens.
6273
3939
  */
6274
- isSpaceBetween(first: Node$1 | Token$1, second: Node$1 | Token$1): boolean;
3940
+ isSpaceBetween(first: Node | Token, second: Node | Token): boolean;
6275
3941
  /**
6276
3942
  * Determines if two nodes or tokens have at least one whitespace character
6277
3943
  * between them. Order does not matter. Returns false if the given nodes or
@@ -6284,28 +3950,28 @@ declare class SourceCodeBase extends TokenStore {
6284
3950
  * any of the tokens found between the two given nodes or tokens.
6285
3951
  * @deprecated in favor of isSpaceBetween
6286
3952
  */
6287
- isSpaceBetweenTokens(first: Token$1, second: Token$1): boolean;
3953
+ isSpaceBetweenTokens(first: Token, second: Token): boolean;
6288
3954
  /**
6289
3955
  * Returns the scope of the given node.
6290
3956
  * This information can be used track references to variables.
6291
3957
  */
6292
- getScope(node: Node$1): Scope.Scope;
3958
+ getScope(node: Node): Scope.Scope;
6293
3959
  /**
6294
3960
  * Returns an array of the ancestors of the given node, starting at
6295
3961
  * the root of the AST and continuing through the direct parent of the current node.
6296
3962
  * This array does not include the currently-traversed node itself.
6297
3963
  */
6298
- getAncestors(node: Node$1): Node$1[];
3964
+ getAncestors(node: Node): Node[];
6299
3965
  /**
6300
3966
  * Returns a list of variables declared by the given node.
6301
3967
  * This information can be used to track references to variables.
6302
3968
  */
6303
- getDeclaredVariables(node: Node$1): readonly Scope.Variable[];
3969
+ getDeclaredVariables(node: Node): readonly Scope.Variable[];
6304
3970
  /**
6305
3971
  * Marks a variable with the given name in the current scope as used.
6306
3972
  * This affects the no-unused-vars rule.
6307
3973
  */
6308
- markVariableAsUsed(name: string, node: Node$1): boolean;
3974
+ markVariableAsUsed(name: string, node: Node): boolean;
6309
3975
  /**
6310
3976
  * The source code split into lines according to ECMA-262 specification.
6311
3977
  * This is done to avoid each rule needing to do so separately.
@@ -6332,7 +3998,7 @@ declare class SourceCodeBase extends TokenStore {
6332
3998
  *
6333
3999
  * TODO: rename to 'tokens'
6334
4000
  */
6335
- tokensAndComments: Token$1[];
4001
+ tokensAndComments: Token[];
6336
4002
  /**
6337
4003
  * The visitor keys to traverse AST.
6338
4004
  */
@@ -6346,9 +4012,9 @@ declare class SourceCodeBase extends TokenStore {
6346
4012
  }
6347
4013
  declare const SourceCode_base: typeof SourceCodeBase;
6348
4014
  declare namespace SourceCode {
6349
- interface Program extends Program$1 {
6350
- comments: Comment$1[];
6351
- tokens: Token$1[];
4015
+ interface Program extends Program {
4016
+ comments: Comment[];
4017
+ tokens: Token[];
6352
4018
  }
6353
4019
  interface SourceCodeConfig {
6354
4020
  /**
@@ -6373,14 +4039,14 @@ declare namespace SourceCode {
6373
4039
  visitorKeys: VisitorKeys | null;
6374
4040
  }
6375
4041
  type VisitorKeys = Parser.VisitorKeys;
6376
- type FilterPredicate = (token: Token$1) => boolean;
6377
- type GetFilterPredicate<Filter, Default> = Filter extends ((token: Token$1) => token is infer U extends Token$1) ? U : Default;
4042
+ type FilterPredicate = (token: Token) => boolean;
4043
+ type GetFilterPredicate<Filter, Default> = Filter extends ((token: Token) => token is infer U extends Token) ? U : Default;
6378
4044
  type GetFilterPredicateFromOptions<Options, Default> = Options extends {
6379
4045
  filter?: FilterPredicate;
6380
4046
  } ? GetFilterPredicate<Options['filter'], Default> : GetFilterPredicate<Options, Default>;
6381
4047
  type ReturnTypeFromOptions<T> = T extends {
6382
4048
  includeComments: true;
6383
- } ? GetFilterPredicateFromOptions<T, Token$1> : GetFilterPredicateFromOptions<T, Exclude<Token$1, Comment$1>>;
4049
+ } ? GetFilterPredicateFromOptions<T, Token> : GetFilterPredicateFromOptions<T, Exclude<Token, Comment>>;
6384
4050
  type CursorWithSkipOptions = number | FilterPredicate | {
6385
4051
  /**
6386
4052
  * The predicate function to choose tokens.
@@ -6536,13 +4202,13 @@ interface RuleFix {
6536
4202
  text: string;
6537
4203
  }
6538
4204
  interface RuleFixer {
6539
- insertTextAfter(nodeOrToken: Node$1 | Token$1, text: string): RuleFix;
4205
+ insertTextAfter(nodeOrToken: Node | Token, text: string): RuleFix;
6540
4206
  insertTextAfterRange(range: Readonly<AST.Range>, text: string): RuleFix;
6541
- insertTextBefore(nodeOrToken: Node$1 | Token$1, text: string): RuleFix;
4207
+ insertTextBefore(nodeOrToken: Node | Token, text: string): RuleFix;
6542
4208
  insertTextBeforeRange(range: Readonly<AST.Range>, text: string): RuleFix;
6543
- remove(nodeOrToken: Node$1 | Token$1): RuleFix;
4209
+ remove(nodeOrToken: Node | Token): RuleFix;
6544
4210
  removeRange(range: Readonly<AST.Range>): RuleFix;
6545
- replaceText(nodeOrToken: Node$1 | Token$1, text: string): RuleFix;
4211
+ replaceText(nodeOrToken: Node | Token, text: string): RuleFix;
6546
4212
  replaceTextRange(range: Readonly<AST.Range>, text: string): RuleFix;
6547
4213
  }
6548
4214
  interface SuggestionReportDescriptor<MessageIds extends string> extends Omit<ReportDescriptorBase<MessageIds>, 'fix'> {
@@ -6575,17 +4241,17 @@ interface ReportDescriptorNodeOptionalLoc {
6575
4241
  /**
6576
4242
  * An override of the location of the report
6577
4243
  */
6578
- readonly loc?: Readonly<Position$1> | Readonly<SourceLocation$1>;
4244
+ readonly loc?: Readonly<Position> | Readonly<SourceLocation>;
6579
4245
  /**
6580
4246
  * The Node or AST Token which the report is being attached to
6581
4247
  */
6582
- readonly node: Node$1 | Token$1;
4248
+ readonly node: Node | Token;
6583
4249
  }
6584
4250
  interface ReportDescriptorLocOnly {
6585
4251
  /**
6586
4252
  * An override of the location of the report
6587
4253
  */
6588
- loc: Readonly<Position$1> | Readonly<SourceLocation$1>;
4254
+ loc: Readonly<Position> | Readonly<SourceLocation>;
6589
4255
  }
6590
4256
  type ReportDescriptor<MessageIds extends string> = (ReportDescriptorLocOnly | ReportDescriptorNodeOptionalLoc) & ReportDescriptorWithSuggestion<MessageIds>;
6591
4257
  /**
@@ -6603,7 +4269,9 @@ interface RuleContext<MessageIds extends string, Options extends readonly unknow
6603
4269
  /**
6604
4270
  * The language options configured for this run
6605
4271
  */
6606
- languageOptions: FlatConfig.LanguageOptions;
4272
+ languageOptions: FlatConfig.LanguageOptions & {
4273
+ parserOptions: FlatConfig.ParserOptions;
4274
+ };
6607
4275
  /**
6608
4276
  * An array of the configured options for this rule.
6609
4277
  * This array does not include the rule severity.
@@ -6611,10 +4279,12 @@ interface RuleContext<MessageIds extends string, Options extends readonly unknow
6611
4279
  options: Options;
6612
4280
  /**
6613
4281
  * The parser options configured for this run
4282
+ * @deprecated This was deprecated in ESLint 9 and removed in ESLint 10.
6614
4283
  */
6615
4284
  parserOptions: Linter.ParserOptions;
6616
4285
  /**
6617
4286
  * The name of the parser from configuration, if in eslintrc (legacy) config.
4287
+ * @deprecated This was deprecated in ESLint 9 and removed in ESLint 10.
6618
4288
  */
6619
4289
  parserPath: string | undefined;
6620
4290
  /**
@@ -6635,14 +4305,14 @@ interface RuleContext<MessageIds extends string, Options extends readonly unknow
6635
4305
  *
6636
4306
  * @deprecated in favor of `SourceCode#getAncestors`
6637
4307
  */
6638
- getAncestors(): Node$1[];
4308
+ getAncestors(): Node[];
6639
4309
  /**
6640
4310
  * Returns a list of variables declared by the given node.
6641
4311
  * This information can be used to track references to variables.
6642
4312
  *
6643
4313
  * @deprecated in favor of `SourceCode#getDeclaredVariables`
6644
4314
  */
6645
- getDeclaredVariables(node: Node$1): readonly Scope.Variable[];
4315
+ getDeclaredVariables(node: Node): readonly Scope.Variable[];
6646
4316
  /**
6647
4317
  * Returns the current working directory passed to Linter.
6648
4318
  * It is a path to a directory that should be considered as the current working directory.
@@ -6704,176 +4374,176 @@ interface RuleContext<MessageIds extends string, Options extends readonly unknow
6704
4374
  */
6705
4375
  report(descriptor: ReportDescriptor<MessageIds>): void;
6706
4376
  }
6707
- type RuleFunction<T extends NodeOrTokenData$1 = never> = (node: T) => void;
4377
+ type RuleFunction<T extends NodeOrTokenData = never> = (node: T) => void;
6708
4378
  interface RuleListenerBaseSelectors {
6709
- AccessorProperty?: RuleFunction<AccessorProperty$1>;
6710
- ArrayExpression?: RuleFunction<ArrayExpression$1>;
6711
- ArrayPattern?: RuleFunction<ArrayPattern$1>;
6712
- ArrowFunctionExpression?: RuleFunction<ArrowFunctionExpression$1>;
6713
- AssignmentExpression?: RuleFunction<AssignmentExpression$1>;
6714
- AssignmentPattern?: RuleFunction<AssignmentPattern$1>;
6715
- AwaitExpression?: RuleFunction<AwaitExpression$1>;
6716
- BinaryExpression?: RuleFunction<BinaryExpression$1>;
6717
- BlockStatement?: RuleFunction<BlockStatement$1>;
6718
- BreakStatement?: RuleFunction<BreakStatement$1>;
6719
- CallExpression?: RuleFunction<CallExpression$1>;
6720
- CatchClause?: RuleFunction<CatchClause$1>;
6721
- ChainExpression?: RuleFunction<ChainExpression$1>;
6722
- ClassBody?: RuleFunction<ClassBody$1>;
6723
- ClassDeclaration?: RuleFunction<ClassDeclaration$1>;
6724
- ClassExpression?: RuleFunction<ClassExpression$1>;
6725
- ConditionalExpression?: RuleFunction<ConditionalExpression$1>;
6726
- ContinueStatement?: RuleFunction<ContinueStatement$1>;
6727
- DebuggerStatement?: RuleFunction<DebuggerStatement$1>;
6728
- Decorator?: RuleFunction<Decorator$1>;
6729
- DoWhileStatement?: RuleFunction<DoWhileStatement$1>;
6730
- EmptyStatement?: RuleFunction<EmptyStatement$1>;
6731
- ExportAllDeclaration?: RuleFunction<ExportAllDeclaration$1>;
6732
- ExportDefaultDeclaration?: RuleFunction<ExportDefaultDeclaration$1>;
6733
- ExportNamedDeclaration?: RuleFunction<ExportNamedDeclaration$1>;
6734
- ExportSpecifier?: RuleFunction<ExportSpecifier$1>;
6735
- ExpressionStatement?: RuleFunction<ExpressionStatement$1>;
6736
- ForInStatement?: RuleFunction<ForInStatement$1>;
6737
- ForOfStatement?: RuleFunction<ForOfStatement$1>;
6738
- ForStatement?: RuleFunction<ForStatement$1>;
6739
- FunctionDeclaration?: RuleFunction<FunctionDeclaration$1>;
6740
- FunctionExpression?: RuleFunction<FunctionExpression$1>;
6741
- Identifier?: RuleFunction<Identifier$1>;
6742
- IfStatement?: RuleFunction<IfStatement$1>;
6743
- ImportAttribute?: RuleFunction<ImportAttribute$1>;
6744
- ImportDeclaration?: RuleFunction<ImportDeclaration$1>;
6745
- ImportDefaultSpecifier?: RuleFunction<ImportDefaultSpecifier$1>;
6746
- ImportExpression?: RuleFunction<ImportExpression$1>;
6747
- ImportNamespaceSpecifier?: RuleFunction<ImportNamespaceSpecifier$1>;
6748
- ImportSpecifier?: RuleFunction<ImportSpecifier$1>;
6749
- JSXAttribute?: RuleFunction<JSXAttribute$1>;
6750
- JSXClosingElement?: RuleFunction<JSXClosingElement$1>;
6751
- JSXClosingFragment?: RuleFunction<JSXClosingFragment$1>;
6752
- JSXElement?: RuleFunction<JSXElement$1>;
6753
- JSXEmptyExpression?: RuleFunction<JSXEmptyExpression$1>;
6754
- JSXExpressionContainer?: RuleFunction<JSXExpressionContainer$1>;
6755
- JSXFragment?: RuleFunction<JSXFragment$1>;
6756
- JSXIdentifier?: RuleFunction<JSXIdentifier$1>;
6757
- JSXMemberExpression?: RuleFunction<JSXMemberExpression$1>;
6758
- JSXNamespacedName?: RuleFunction<JSXNamespacedName$1>;
6759
- JSXOpeningElement?: RuleFunction<JSXOpeningElement$1>;
6760
- JSXOpeningFragment?: RuleFunction<JSXOpeningFragment$1>;
6761
- JSXSpreadAttribute?: RuleFunction<JSXSpreadAttribute$1>;
6762
- JSXSpreadChild?: RuleFunction<JSXSpreadChild$1>;
6763
- JSXText?: RuleFunction<JSXText$1>;
6764
- LabeledStatement?: RuleFunction<LabeledStatement$1>;
6765
- Literal?: RuleFunction<Literal$1>;
6766
- LogicalExpression?: RuleFunction<LogicalExpression$1>;
6767
- MemberExpression?: RuleFunction<MemberExpression$1>;
6768
- MetaProperty?: RuleFunction<MetaProperty$1>;
6769
- MethodDefinition?: RuleFunction<MethodDefinition$1>;
6770
- NewExpression?: RuleFunction<NewExpression$1>;
6771
- ObjectExpression?: RuleFunction<ObjectExpression$1>;
6772
- ObjectPattern?: RuleFunction<ObjectPattern$1>;
6773
- PrivateIdentifier?: RuleFunction<PrivateIdentifier$1>;
6774
- Program?: RuleFunction<Program$1>;
6775
- Property?: RuleFunction<Property$1>;
6776
- PropertyDefinition?: RuleFunction<PropertyDefinition$1>;
6777
- RestElement?: RuleFunction<RestElement$1>;
6778
- ReturnStatement?: RuleFunction<ReturnStatement$1>;
6779
- SequenceExpression?: RuleFunction<SequenceExpression$1>;
6780
- SpreadElement?: RuleFunction<SpreadElement$1>;
6781
- StaticBlock?: RuleFunction<StaticBlock$1>;
6782
- Super?: RuleFunction<Super$1>;
6783
- SwitchCase?: RuleFunction<SwitchCase$1>;
6784
- SwitchStatement?: RuleFunction<SwitchStatement$1>;
6785
- TaggedTemplateExpression?: RuleFunction<TaggedTemplateExpression$1>;
6786
- TemplateElement?: RuleFunction<TemplateElement$1>;
6787
- TemplateLiteral?: RuleFunction<TemplateLiteral$1>;
6788
- ThisExpression?: RuleFunction<ThisExpression$1>;
6789
- ThrowStatement?: RuleFunction<ThrowStatement$1>;
6790
- TryStatement?: RuleFunction<TryStatement$1>;
6791
- TSAbstractAccessorProperty?: RuleFunction<TSAbstractAccessorProperty$1>;
6792
- TSAbstractKeyword?: RuleFunction<TSAbstractKeyword$1>;
6793
- TSAbstractMethodDefinition?: RuleFunction<TSAbstractMethodDefinition$1>;
6794
- TSAbstractPropertyDefinition?: RuleFunction<TSAbstractPropertyDefinition$1>;
6795
- TSAnyKeyword?: RuleFunction<TSAnyKeyword$1>;
6796
- TSArrayType?: RuleFunction<TSArrayType$1>;
6797
- TSAsExpression?: RuleFunction<TSAsExpression$1>;
6798
- TSAsyncKeyword?: RuleFunction<TSAsyncKeyword$1>;
6799
- TSBigIntKeyword?: RuleFunction<TSBigIntKeyword$1>;
6800
- TSBooleanKeyword?: RuleFunction<TSBooleanKeyword$1>;
6801
- TSCallSignatureDeclaration?: RuleFunction<TSCallSignatureDeclaration$1>;
6802
- TSClassImplements?: RuleFunction<TSClassImplements$1>;
6803
- TSConditionalType?: RuleFunction<TSConditionalType$1>;
6804
- TSConstructorType?: RuleFunction<TSConstructorType$1>;
6805
- TSConstructSignatureDeclaration?: RuleFunction<TSConstructSignatureDeclaration$1>;
6806
- TSDeclareFunction?: RuleFunction<TSDeclareFunction$1>;
6807
- TSDeclareKeyword?: RuleFunction<TSDeclareKeyword$1>;
6808
- TSEmptyBodyFunctionExpression?: RuleFunction<TSEmptyBodyFunctionExpression$1>;
6809
- TSEnumBody?: RuleFunction<TSEnumBody$1>;
6810
- TSEnumDeclaration?: RuleFunction<TSEnumDeclaration$1>;
6811
- TSEnumMember?: RuleFunction<TSEnumMember$1>;
6812
- TSExportAssignment?: RuleFunction<TSExportAssignment$1>;
6813
- TSExportKeyword?: RuleFunction<TSExportKeyword$1>;
6814
- TSExternalModuleReference?: RuleFunction<TSExternalModuleReference$1>;
6815
- TSFunctionType?: RuleFunction<TSFunctionType$1>;
6816
- TSImportEqualsDeclaration?: RuleFunction<TSImportEqualsDeclaration$1>;
6817
- TSImportType?: RuleFunction<TSImportType$1>;
6818
- TSIndexedAccessType?: RuleFunction<TSIndexedAccessType$1>;
6819
- TSIndexSignature?: RuleFunction<TSIndexSignature$1>;
6820
- TSInferType?: RuleFunction<TSInferType$1>;
6821
- TSInstantiationExpression?: RuleFunction<TSInstantiationExpression$1>;
6822
- TSInterfaceBody?: RuleFunction<TSInterfaceBody$1>;
6823
- TSInterfaceDeclaration?: RuleFunction<TSInterfaceDeclaration$1>;
6824
- TSInterfaceHeritage?: RuleFunction<TSInterfaceHeritage$1>;
6825
- TSIntersectionType?: RuleFunction<TSIntersectionType$1>;
6826
- TSIntrinsicKeyword?: RuleFunction<TSIntrinsicKeyword$1>;
6827
- TSLiteralType?: RuleFunction<TSLiteralType$1>;
6828
- TSMappedType?: RuleFunction<TSMappedType$1>;
6829
- TSMethodSignature?: RuleFunction<TSMethodSignature$1>;
6830
- TSModuleBlock?: RuleFunction<TSModuleBlock$1>;
6831
- TSModuleDeclaration?: RuleFunction<TSModuleDeclaration$1>;
6832
- TSNamedTupleMember?: RuleFunction<TSNamedTupleMember$1>;
6833
- TSNamespaceExportDeclaration?: RuleFunction<TSNamespaceExportDeclaration$1>;
6834
- TSNeverKeyword?: RuleFunction<TSNeverKeyword$1>;
6835
- TSNonNullExpression?: RuleFunction<TSNonNullExpression$1>;
6836
- TSNullKeyword?: RuleFunction<TSNullKeyword$1>;
6837
- TSNumberKeyword?: RuleFunction<TSNumberKeyword$1>;
6838
- TSObjectKeyword?: RuleFunction<TSObjectKeyword$1>;
6839
- TSOptionalType?: RuleFunction<TSOptionalType$1>;
6840
- TSParameterProperty?: RuleFunction<TSParameterProperty$1>;
6841
- TSPrivateKeyword?: RuleFunction<TSPrivateKeyword$1>;
6842
- TSPropertySignature?: RuleFunction<TSPropertySignature$1>;
6843
- TSProtectedKeyword?: RuleFunction<TSProtectedKeyword$1>;
6844
- TSPublicKeyword?: RuleFunction<TSPublicKeyword$1>;
6845
- TSQualifiedName?: RuleFunction<TSQualifiedName$1>;
6846
- TSReadonlyKeyword?: RuleFunction<TSReadonlyKeyword$1>;
6847
- TSRestType?: RuleFunction<TSRestType$1>;
6848
- TSSatisfiesExpression?: RuleFunction<TSSatisfiesExpression$1>;
6849
- TSStaticKeyword?: RuleFunction<TSStaticKeyword$1>;
6850
- TSStringKeyword?: RuleFunction<TSStringKeyword$1>;
6851
- TSSymbolKeyword?: RuleFunction<TSSymbolKeyword$1>;
6852
- TSTemplateLiteralType?: RuleFunction<TSTemplateLiteralType$1>;
6853
- TSThisType?: RuleFunction<TSThisType$1>;
6854
- TSTupleType?: RuleFunction<TSTupleType$1>;
6855
- TSTypeAliasDeclaration?: RuleFunction<TSTypeAliasDeclaration$1>;
6856
- TSTypeAnnotation?: RuleFunction<TSTypeAnnotation$1>;
6857
- TSTypeAssertion?: RuleFunction<TSTypeAssertion$1>;
6858
- TSTypeLiteral?: RuleFunction<TSTypeLiteral$1>;
6859
- TSTypeOperator?: RuleFunction<TSTypeOperator$1>;
6860
- TSTypeParameter?: RuleFunction<TSTypeParameter$1>;
6861
- TSTypeParameterDeclaration?: RuleFunction<TSTypeParameterDeclaration$1>;
6862
- TSTypeParameterInstantiation?: RuleFunction<TSTypeParameterInstantiation$1>;
6863
- TSTypePredicate?: RuleFunction<TSTypePredicate$1>;
6864
- TSTypeQuery?: RuleFunction<TSTypeQuery$1>;
6865
- TSTypeReference?: RuleFunction<TSTypeReference$1>;
6866
- TSUndefinedKeyword?: RuleFunction<TSUndefinedKeyword$1>;
6867
- TSUnionType?: RuleFunction<TSUnionType$1>;
6868
- TSUnknownKeyword?: RuleFunction<TSUnknownKeyword$1>;
6869
- TSVoidKeyword?: RuleFunction<TSVoidKeyword$1>;
6870
- UnaryExpression?: RuleFunction<UnaryExpression$1>;
6871
- UpdateExpression?: RuleFunction<UpdateExpression$1>;
6872
- VariableDeclaration?: RuleFunction<VariableDeclaration$1>;
6873
- VariableDeclarator?: RuleFunction<VariableDeclarator$1>;
6874
- WhileStatement?: RuleFunction<WhileStatement$1>;
6875
- WithStatement?: RuleFunction<WithStatement$1>;
6876
- YieldExpression?: RuleFunction<YieldExpression$1>;
4379
+ AccessorProperty?: RuleFunction<AccessorProperty>;
4380
+ ArrayExpression?: RuleFunction<ArrayExpression>;
4381
+ ArrayPattern?: RuleFunction<ArrayPattern>;
4382
+ ArrowFunctionExpression?: RuleFunction<ArrowFunctionExpression>;
4383
+ AssignmentExpression?: RuleFunction<AssignmentExpression>;
4384
+ AssignmentPattern?: RuleFunction<AssignmentPattern>;
4385
+ AwaitExpression?: RuleFunction<AwaitExpression>;
4386
+ BinaryExpression?: RuleFunction<BinaryExpression>;
4387
+ BlockStatement?: RuleFunction<BlockStatement>;
4388
+ BreakStatement?: RuleFunction<BreakStatement>;
4389
+ CallExpression?: RuleFunction<CallExpression>;
4390
+ CatchClause?: RuleFunction<CatchClause>;
4391
+ ChainExpression?: RuleFunction<ChainExpression>;
4392
+ ClassBody?: RuleFunction<ClassBody>;
4393
+ ClassDeclaration?: RuleFunction<ClassDeclaration>;
4394
+ ClassExpression?: RuleFunction<ClassExpression>;
4395
+ ConditionalExpression?: RuleFunction<ConditionalExpression>;
4396
+ ContinueStatement?: RuleFunction<ContinueStatement>;
4397
+ DebuggerStatement?: RuleFunction<DebuggerStatement>;
4398
+ Decorator?: RuleFunction<Decorator>;
4399
+ DoWhileStatement?: RuleFunction<DoWhileStatement>;
4400
+ EmptyStatement?: RuleFunction<EmptyStatement>;
4401
+ ExportAllDeclaration?: RuleFunction<ExportAllDeclaration>;
4402
+ ExportDefaultDeclaration?: RuleFunction<ExportDefaultDeclaration>;
4403
+ ExportNamedDeclaration?: RuleFunction<ExportNamedDeclaration>;
4404
+ ExportSpecifier?: RuleFunction<ExportSpecifier>;
4405
+ ExpressionStatement?: RuleFunction<ExpressionStatement>;
4406
+ ForInStatement?: RuleFunction<ForInStatement>;
4407
+ ForOfStatement?: RuleFunction<ForOfStatement>;
4408
+ ForStatement?: RuleFunction<ForStatement>;
4409
+ FunctionDeclaration?: RuleFunction<FunctionDeclaration>;
4410
+ FunctionExpression?: RuleFunction<FunctionExpression>;
4411
+ Identifier?: RuleFunction<Identifier>;
4412
+ IfStatement?: RuleFunction<IfStatement>;
4413
+ ImportAttribute?: RuleFunction<ImportAttribute>;
4414
+ ImportDeclaration?: RuleFunction<ImportDeclaration>;
4415
+ ImportDefaultSpecifier?: RuleFunction<ImportDefaultSpecifier>;
4416
+ ImportExpression?: RuleFunction<ImportExpression>;
4417
+ ImportNamespaceSpecifier?: RuleFunction<ImportNamespaceSpecifier>;
4418
+ ImportSpecifier?: RuleFunction<ImportSpecifier>;
4419
+ JSXAttribute?: RuleFunction<JSXAttribute>;
4420
+ JSXClosingElement?: RuleFunction<JSXClosingElement>;
4421
+ JSXClosingFragment?: RuleFunction<JSXClosingFragment>;
4422
+ JSXElement?: RuleFunction<JSXElement>;
4423
+ JSXEmptyExpression?: RuleFunction<JSXEmptyExpression>;
4424
+ JSXExpressionContainer?: RuleFunction<JSXExpressionContainer>;
4425
+ JSXFragment?: RuleFunction<JSXFragment>;
4426
+ JSXIdentifier?: RuleFunction<JSXIdentifier>;
4427
+ JSXMemberExpression?: RuleFunction<JSXMemberExpression>;
4428
+ JSXNamespacedName?: RuleFunction<JSXNamespacedName>;
4429
+ JSXOpeningElement?: RuleFunction<JSXOpeningElement>;
4430
+ JSXOpeningFragment?: RuleFunction<JSXOpeningFragment>;
4431
+ JSXSpreadAttribute?: RuleFunction<JSXSpreadAttribute>;
4432
+ JSXSpreadChild?: RuleFunction<JSXSpreadChild>;
4433
+ JSXText?: RuleFunction<JSXText>;
4434
+ LabeledStatement?: RuleFunction<LabeledStatement>;
4435
+ Literal?: RuleFunction<Literal>;
4436
+ LogicalExpression?: RuleFunction<LogicalExpression>;
4437
+ MemberExpression?: RuleFunction<MemberExpression>;
4438
+ MetaProperty?: RuleFunction<MetaProperty>;
4439
+ MethodDefinition?: RuleFunction<MethodDefinition>;
4440
+ NewExpression?: RuleFunction<NewExpression>;
4441
+ ObjectExpression?: RuleFunction<ObjectExpression>;
4442
+ ObjectPattern?: RuleFunction<ObjectPattern>;
4443
+ PrivateIdentifier?: RuleFunction<PrivateIdentifier>;
4444
+ Program?: RuleFunction<Program>;
4445
+ Property?: RuleFunction<Property>;
4446
+ PropertyDefinition?: RuleFunction<PropertyDefinition>;
4447
+ RestElement?: RuleFunction<RestElement>;
4448
+ ReturnStatement?: RuleFunction<ReturnStatement>;
4449
+ SequenceExpression?: RuleFunction<SequenceExpression>;
4450
+ SpreadElement?: RuleFunction<SpreadElement>;
4451
+ StaticBlock?: RuleFunction<StaticBlock>;
4452
+ Super?: RuleFunction<Super>;
4453
+ SwitchCase?: RuleFunction<SwitchCase>;
4454
+ SwitchStatement?: RuleFunction<SwitchStatement>;
4455
+ TaggedTemplateExpression?: RuleFunction<TaggedTemplateExpression>;
4456
+ TemplateElement?: RuleFunction<TemplateElement>;
4457
+ TemplateLiteral?: RuleFunction<TemplateLiteral>;
4458
+ ThisExpression?: RuleFunction<ThisExpression>;
4459
+ ThrowStatement?: RuleFunction<ThrowStatement>;
4460
+ TryStatement?: RuleFunction<TryStatement>;
4461
+ TSAbstractAccessorProperty?: RuleFunction<TSAbstractAccessorProperty>;
4462
+ TSAbstractKeyword?: RuleFunction<TSAbstractKeyword>;
4463
+ TSAbstractMethodDefinition?: RuleFunction<TSAbstractMethodDefinition>;
4464
+ TSAbstractPropertyDefinition?: RuleFunction<TSAbstractPropertyDefinition>;
4465
+ TSAnyKeyword?: RuleFunction<TSAnyKeyword>;
4466
+ TSArrayType?: RuleFunction<TSArrayType>;
4467
+ TSAsExpression?: RuleFunction<TSAsExpression>;
4468
+ TSAsyncKeyword?: RuleFunction<TSAsyncKeyword>;
4469
+ TSBigIntKeyword?: RuleFunction<TSBigIntKeyword>;
4470
+ TSBooleanKeyword?: RuleFunction<TSBooleanKeyword>;
4471
+ TSCallSignatureDeclaration?: RuleFunction<TSCallSignatureDeclaration>;
4472
+ TSClassImplements?: RuleFunction<TSClassImplements>;
4473
+ TSConditionalType?: RuleFunction<TSConditionalType>;
4474
+ TSConstructorType?: RuleFunction<TSConstructorType>;
4475
+ TSConstructSignatureDeclaration?: RuleFunction<TSConstructSignatureDeclaration>;
4476
+ TSDeclareFunction?: RuleFunction<TSDeclareFunction>;
4477
+ TSDeclareKeyword?: RuleFunction<TSDeclareKeyword>;
4478
+ TSEmptyBodyFunctionExpression?: RuleFunction<TSEmptyBodyFunctionExpression>;
4479
+ TSEnumBody?: RuleFunction<TSEnumBody>;
4480
+ TSEnumDeclaration?: RuleFunction<TSEnumDeclaration>;
4481
+ TSEnumMember?: RuleFunction<TSEnumMember>;
4482
+ TSExportAssignment?: RuleFunction<TSExportAssignment>;
4483
+ TSExportKeyword?: RuleFunction<TSExportKeyword>;
4484
+ TSExternalModuleReference?: RuleFunction<TSExternalModuleReference>;
4485
+ TSFunctionType?: RuleFunction<TSFunctionType>;
4486
+ TSImportEqualsDeclaration?: RuleFunction<TSImportEqualsDeclaration>;
4487
+ TSImportType?: RuleFunction<TSImportType>;
4488
+ TSIndexedAccessType?: RuleFunction<TSIndexedAccessType>;
4489
+ TSIndexSignature?: RuleFunction<TSIndexSignature>;
4490
+ TSInferType?: RuleFunction<TSInferType>;
4491
+ TSInstantiationExpression?: RuleFunction<TSInstantiationExpression>;
4492
+ TSInterfaceBody?: RuleFunction<TSInterfaceBody>;
4493
+ TSInterfaceDeclaration?: RuleFunction<TSInterfaceDeclaration>;
4494
+ TSInterfaceHeritage?: RuleFunction<TSInterfaceHeritage>;
4495
+ TSIntersectionType?: RuleFunction<TSIntersectionType>;
4496
+ TSIntrinsicKeyword?: RuleFunction<TSIntrinsicKeyword>;
4497
+ TSLiteralType?: RuleFunction<TSLiteralType>;
4498
+ TSMappedType?: RuleFunction<TSMappedType>;
4499
+ TSMethodSignature?: RuleFunction<TSMethodSignature>;
4500
+ TSModuleBlock?: RuleFunction<TSModuleBlock>;
4501
+ TSModuleDeclaration?: RuleFunction<TSModuleDeclaration>;
4502
+ TSNamedTupleMember?: RuleFunction<TSNamedTupleMember>;
4503
+ TSNamespaceExportDeclaration?: RuleFunction<TSNamespaceExportDeclaration>;
4504
+ TSNeverKeyword?: RuleFunction<TSNeverKeyword>;
4505
+ TSNonNullExpression?: RuleFunction<TSNonNullExpression>;
4506
+ TSNullKeyword?: RuleFunction<TSNullKeyword>;
4507
+ TSNumberKeyword?: RuleFunction<TSNumberKeyword>;
4508
+ TSObjectKeyword?: RuleFunction<TSObjectKeyword>;
4509
+ TSOptionalType?: RuleFunction<TSOptionalType>;
4510
+ TSParameterProperty?: RuleFunction<TSParameterProperty>;
4511
+ TSPrivateKeyword?: RuleFunction<TSPrivateKeyword>;
4512
+ TSPropertySignature?: RuleFunction<TSPropertySignature>;
4513
+ TSProtectedKeyword?: RuleFunction<TSProtectedKeyword>;
4514
+ TSPublicKeyword?: RuleFunction<TSPublicKeyword>;
4515
+ TSQualifiedName?: RuleFunction<TSQualifiedName>;
4516
+ TSReadonlyKeyword?: RuleFunction<TSReadonlyKeyword>;
4517
+ TSRestType?: RuleFunction<TSRestType>;
4518
+ TSSatisfiesExpression?: RuleFunction<TSSatisfiesExpression>;
4519
+ TSStaticKeyword?: RuleFunction<TSStaticKeyword>;
4520
+ TSStringKeyword?: RuleFunction<TSStringKeyword>;
4521
+ TSSymbolKeyword?: RuleFunction<TSSymbolKeyword>;
4522
+ TSTemplateLiteralType?: RuleFunction<TSTemplateLiteralType>;
4523
+ TSThisType?: RuleFunction<TSThisType>;
4524
+ TSTupleType?: RuleFunction<TSTupleType>;
4525
+ TSTypeAliasDeclaration?: RuleFunction<TSTypeAliasDeclaration>;
4526
+ TSTypeAnnotation?: RuleFunction<TSTypeAnnotation>;
4527
+ TSTypeAssertion?: RuleFunction<TSTypeAssertion>;
4528
+ TSTypeLiteral?: RuleFunction<TSTypeLiteral>;
4529
+ TSTypeOperator?: RuleFunction<TSTypeOperator>;
4530
+ TSTypeParameter?: RuleFunction<TSTypeParameter>;
4531
+ TSTypeParameterDeclaration?: RuleFunction<TSTypeParameterDeclaration>;
4532
+ TSTypeParameterInstantiation?: RuleFunction<TSTypeParameterInstantiation>;
4533
+ TSTypePredicate?: RuleFunction<TSTypePredicate>;
4534
+ TSTypeQuery?: RuleFunction<TSTypeQuery>;
4535
+ TSTypeReference?: RuleFunction<TSTypeReference>;
4536
+ TSUndefinedKeyword?: RuleFunction<TSUndefinedKeyword>;
4537
+ TSUnionType?: RuleFunction<TSUnionType>;
4538
+ TSUnknownKeyword?: RuleFunction<TSUnknownKeyword>;
4539
+ TSVoidKeyword?: RuleFunction<TSVoidKeyword>;
4540
+ UnaryExpression?: RuleFunction<UnaryExpression>;
4541
+ UpdateExpression?: RuleFunction<UpdateExpression>;
4542
+ VariableDeclaration?: RuleFunction<VariableDeclaration>;
4543
+ VariableDeclarator?: RuleFunction<VariableDeclarator>;
4544
+ WhileStatement?: RuleFunction<WhileStatement>;
4545
+ WithStatement?: RuleFunction<WithStatement>;
4546
+ YieldExpression?: RuleFunction<YieldExpression>;
6877
4547
  }
6878
4548
  type RuleListenerExitSelectors = {
6879
4549
  [K in keyof RuleListenerBaseSelectors as `${K}:exit`]: RuleListenerBaseSelectors[K];
@@ -7527,7 +5197,7 @@ declare const _default: {
7527
5197
  'ts-multiline-ternary': eslint.Rule.RuleModule;
7528
5198
  'ts-multiline-union': eslint.Rule.RuleModule;
7529
5199
  'ts-padding-statements': RuleModule<"expectedBlankLine" | "expectedBlankLineBeforeComment" | "unexpectedBlankLine", [], unknown, RuleListener>;
7530
- 'ts-sort-tests': eslint.Rule.RuleModule;
5200
+ 'ts-sort-tests': RuleModule<"sortError", [], unknown, RuleListener>;
7531
5201
  'vue-i18n-consistent-locales': eslint.Rule.RuleModule;
7532
5202
  'vue-i18n-consistent-t': eslint.Rule.RuleModule;
7533
5203
  'vue-i18n-sort-keys': eslint.Rule.RuleModule;