source: trip-planner-front/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/node_modules/@babel/types/lib/index-legacy.d.ts@ e29cc2e

Last change on this file since e29cc2e was e29cc2e, checked in by Ema <ema_spirova@…>, 3 years ago

primeNG components

  • Property mode set to 100644
File size: 160.2 KB
Line 
1// NOTE: This file is autogenerated. Do not modify.
2// See packages/babel-types/scripts/generators/typescript-legacy.js for script used.
3
4interface BaseComment {
5 value: string;
6 start: number;
7 end: number;
8 loc: SourceLocation;
9 type: "CommentBlock" | "CommentLine";
10}
11
12export interface CommentBlock extends BaseComment {
13 type: "CommentBlock";
14}
15
16export interface CommentLine extends BaseComment {
17 type: "CommentLine";
18}
19
20export type Comment = CommentBlock | CommentLine;
21
22export interface SourceLocation {
23 start: {
24 line: number;
25 column: number;
26 };
27
28 end: {
29 line: number;
30 column: number;
31 };
32}
33
34interface BaseNode {
35 leadingComments: ReadonlyArray<Comment> | null;
36 innerComments: ReadonlyArray<Comment> | null;
37 trailingComments: ReadonlyArray<Comment> | null;
38 start: number | null;
39 end: number | null;
40 loc: SourceLocation | null;
41 type: Node["type"];
42 extra?: Record<string, unknown>;
43}
44
45export type Node = AnyTypeAnnotation | ArgumentPlaceholder | ArrayExpression | ArrayPattern | ArrayTypeAnnotation | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BigIntLiteral | Binary | BinaryExpression | BindExpression | Block | BlockParent | BlockStatement | BooleanLiteral | BooleanLiteralTypeAnnotation | BooleanTypeAnnotation | BreakStatement | CallExpression | CatchClause | Class | ClassBody | ClassDeclaration | ClassExpression | ClassImplements | ClassMethod | ClassPrivateMethod | ClassPrivateProperty | ClassProperty | CompletionStatement | Conditional | ConditionalExpression | ContinueStatement | DebuggerStatement | DecimalLiteral | Declaration | DeclareClass | DeclareExportAllDeclaration | DeclareExportDeclaration | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareOpaqueType | DeclareTypeAlias | DeclareVariable | DeclaredPredicate | Decorator | Directive | DirectiveLiteral | DoExpression | DoWhileStatement | EmptyStatement | EmptyTypeAnnotation | EnumBody | EnumBooleanBody | EnumBooleanMember | EnumDeclaration | EnumDefaultedMember | EnumMember | EnumNumberBody | EnumNumberMember | EnumStringBody | EnumStringMember | EnumSymbolBody | ExistsTypeAnnotation | ExportAllDeclaration | ExportDeclaration | ExportDefaultDeclaration | ExportDefaultSpecifier | ExportNamedDeclaration | ExportNamespaceSpecifier | ExportSpecifier | Expression | ExpressionStatement | ExpressionWrapper | File | Flow | FlowBaseAnnotation | FlowDeclaration | FlowPredicate | FlowType | For | ForInStatement | ForOfStatement | ForStatement | ForXStatement | Function | FunctionDeclaration | FunctionExpression | FunctionParent | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | Identifier | IfStatement | Immutable | Import | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | IndexedAccessType | InferredPredicate | InterfaceDeclaration | InterfaceExtends | InterfaceTypeAnnotation | InterpreterDirective | IntersectionTypeAnnotation | JSX | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LVal | LabeledStatement | Literal | LogicalExpression | Loop | MemberExpression | MetaProperty | Method | Miscellaneous | MixedTypeAnnotation | ModuleDeclaration | ModuleExpression | ModuleSpecifier | NewExpression | Noop | NullLiteral | NullLiteralTypeAnnotation | NullableTypeAnnotation | NumberLiteral | NumberLiteralTypeAnnotation | NumberTypeAnnotation | NumericLiteral | ObjectExpression | ObjectMember | ObjectMethod | ObjectPattern | ObjectProperty | ObjectTypeAnnotation | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeInternalSlot | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | OptionalCallExpression | OptionalIndexedAccessType | OptionalMemberExpression | ParenthesizedExpression | Pattern | PatternLike | PipelineBareFunction | PipelinePrimaryTopicReference | PipelineTopicExpression | Placeholder | Private | PrivateName | Program | Property | Pureish | QualifiedTypeIdentifier | RecordExpression | RegExpLiteral | RegexLiteral | RestElement | RestProperty | ReturnStatement | Scopable | SequenceExpression | SpreadElement | SpreadProperty | Standardized | Statement | StaticBlock | StringLiteral | StringLiteralTypeAnnotation | StringTypeAnnotation | Super | SwitchCase | SwitchStatement | SymbolTypeAnnotation | TSAnyKeyword | TSArrayType | TSAsExpression | TSBaseType | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSConditionalType | TSConstructSignatureDeclaration | TSConstructorType | TSDeclareFunction | TSDeclareMethod | TSEntityName | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExpressionWithTypeArguments | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexSignature | TSIndexedAccessType | TSInferType | TSInterfaceBody | TSInterfaceDeclaration | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSParenthesizedType | TSPropertySignature | TSQualifiedName | TSRestType | TSStringKeyword | TSSymbolKeyword | TSThisType | TSTupleType | TSType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeElement | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | TaggedTemplateExpression | TemplateElement | TemplateLiteral | Terminatorless | ThisExpression | ThisTypeAnnotation | ThrowStatement | TopicReference | TryStatement | TupleExpression | TupleTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | TypeScript | TypeofTypeAnnotation | UnaryExpression | UnaryLike | UnionTypeAnnotation | UpdateExpression | UserWhitespacable | V8IntrinsicIdentifier | VariableDeclaration | VariableDeclarator | Variance | VoidTypeAnnotation | While | WhileStatement | WithStatement | YieldExpression;
46
47export interface ArrayExpression extends BaseNode {
48 type: "ArrayExpression";
49 elements: Array<null | Expression | SpreadElement>;
50}
51
52export interface AssignmentExpression extends BaseNode {
53 type: "AssignmentExpression";
54 operator: string;
55 left: LVal;
56 right: Expression;
57}
58
59export interface BinaryExpression extends BaseNode {
60 type: "BinaryExpression";
61 operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=";
62 left: Expression | PrivateName;
63 right: Expression;
64}
65
66export interface InterpreterDirective extends BaseNode {
67 type: "InterpreterDirective";
68 value: string;
69}
70
71export interface Directive extends BaseNode {
72 type: "Directive";
73 value: DirectiveLiteral;
74}
75
76export interface DirectiveLiteral extends BaseNode {
77 type: "DirectiveLiteral";
78 value: string;
79}
80
81export interface BlockStatement extends BaseNode {
82 type: "BlockStatement";
83 body: Array<Statement>;
84 directives: Array<Directive>;
85}
86
87export interface BreakStatement extends BaseNode {
88 type: "BreakStatement";
89 label: Identifier | null;
90}
91
92export interface CallExpression extends BaseNode {
93 type: "CallExpression";
94 callee: Expression | V8IntrinsicIdentifier;
95 arguments: Array<Expression | SpreadElement | JSXNamespacedName | ArgumentPlaceholder>;
96 optional: true | false | null;
97 typeArguments: TypeParameterInstantiation | null;
98 typeParameters: TSTypeParameterInstantiation | null;
99}
100
101export interface CatchClause extends BaseNode {
102 type: "CatchClause";
103 param: Identifier | ArrayPattern | ObjectPattern | null;
104 body: BlockStatement;
105}
106
107export interface ConditionalExpression extends BaseNode {
108 type: "ConditionalExpression";
109 test: Expression;
110 consequent: Expression;
111 alternate: Expression;
112}
113
114export interface ContinueStatement extends BaseNode {
115 type: "ContinueStatement";
116 label: Identifier | null;
117}
118
119export interface DebuggerStatement extends BaseNode {
120 type: "DebuggerStatement";
121}
122
123export interface DoWhileStatement extends BaseNode {
124 type: "DoWhileStatement";
125 test: Expression;
126 body: Statement;
127}
128
129export interface EmptyStatement extends BaseNode {
130 type: "EmptyStatement";
131}
132
133export interface ExpressionStatement extends BaseNode {
134 type: "ExpressionStatement";
135 expression: Expression;
136}
137
138export interface File extends BaseNode {
139 type: "File";
140 program: Program;
141 comments: Array<CommentBlock | CommentLine> | null;
142 tokens: Array<any> | null;
143}
144
145export interface ForInStatement extends BaseNode {
146 type: "ForInStatement";
147 left: VariableDeclaration | LVal;
148 right: Expression;
149 body: Statement;
150}
151
152export interface ForStatement extends BaseNode {
153 type: "ForStatement";
154 init: VariableDeclaration | Expression | null;
155 test: Expression | null;
156 update: Expression | null;
157 body: Statement;
158}
159
160export interface FunctionDeclaration extends BaseNode {
161 type: "FunctionDeclaration";
162 id: Identifier | null;
163 params: Array<Identifier | Pattern | RestElement>;
164 body: BlockStatement;
165 generator: boolean;
166 async: boolean;
167 declare: boolean | null;
168 returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
169 typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
170}
171
172export interface FunctionExpression extends BaseNode {
173 type: "FunctionExpression";
174 id: Identifier | null;
175 params: Array<Identifier | Pattern | RestElement>;
176 body: BlockStatement;
177 generator: boolean;
178 async: boolean;
179 returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
180 typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
181}
182
183export interface Identifier extends BaseNode {
184 type: "Identifier";
185 name: string;
186 decorators: Array<Decorator> | null;
187 optional: boolean | null;
188 typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
189}
190
191export interface IfStatement extends BaseNode {
192 type: "IfStatement";
193 test: Expression;
194 consequent: Statement;
195 alternate: Statement | null;
196}
197
198export interface LabeledStatement extends BaseNode {
199 type: "LabeledStatement";
200 label: Identifier;
201 body: Statement;
202}
203
204export interface StringLiteral extends BaseNode {
205 type: "StringLiteral";
206 value: string;
207}
208
209export interface NumericLiteral extends BaseNode {
210 type: "NumericLiteral";
211 value: number;
212}
213
214export interface NullLiteral extends BaseNode {
215 type: "NullLiteral";
216}
217
218export interface BooleanLiteral extends BaseNode {
219 type: "BooleanLiteral";
220 value: boolean;
221}
222
223export interface RegExpLiteral extends BaseNode {
224 type: "RegExpLiteral";
225 pattern: string;
226 flags: string;
227}
228
229export interface LogicalExpression extends BaseNode {
230 type: "LogicalExpression";
231 operator: "||" | "&&" | "??";
232 left: Expression;
233 right: Expression;
234}
235
236export interface MemberExpression extends BaseNode {
237 type: "MemberExpression";
238 object: Expression;
239 property: Expression | Identifier | PrivateName;
240 computed: boolean;
241 optional: true | false | null;
242}
243
244export interface NewExpression extends BaseNode {
245 type: "NewExpression";
246 callee: Expression | V8IntrinsicIdentifier;
247 arguments: Array<Expression | SpreadElement | JSXNamespacedName | ArgumentPlaceholder>;
248 optional: true | false | null;
249 typeArguments: TypeParameterInstantiation | null;
250 typeParameters: TSTypeParameterInstantiation | null;
251}
252
253export interface Program extends BaseNode {
254 type: "Program";
255 body: Array<Statement>;
256 directives: Array<Directive>;
257 sourceType: "script" | "module";
258 interpreter: InterpreterDirective | null;
259 sourceFile: string;
260}
261
262export interface ObjectExpression extends BaseNode {
263 type: "ObjectExpression";
264 properties: Array<ObjectMethod | ObjectProperty | SpreadElement>;
265}
266
267export interface ObjectMethod extends BaseNode {
268 type: "ObjectMethod";
269 kind: "method" | "get" | "set";
270 key: Expression | Identifier | StringLiteral | NumericLiteral;
271 params: Array<Identifier | Pattern | RestElement>;
272 body: BlockStatement;
273 computed: boolean;
274 generator: boolean;
275 async: boolean;
276 decorators: Array<Decorator> | null;
277 returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
278 typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
279}
280
281export interface ObjectProperty extends BaseNode {
282 type: "ObjectProperty";
283 key: Expression | Identifier | StringLiteral | NumericLiteral;
284 value: Expression | PatternLike;
285 computed: boolean;
286 shorthand: boolean;
287 decorators: Array<Decorator> | null;
288}
289
290export interface RestElement extends BaseNode {
291 type: "RestElement";
292 argument: LVal;
293 decorators: Array<Decorator> | null;
294 optional: boolean | null;
295 typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
296}
297
298export interface ReturnStatement extends BaseNode {
299 type: "ReturnStatement";
300 argument: Expression | null;
301}
302
303export interface SequenceExpression extends BaseNode {
304 type: "SequenceExpression";
305 expressions: Array<Expression>;
306}
307
308export interface ParenthesizedExpression extends BaseNode {
309 type: "ParenthesizedExpression";
310 expression: Expression;
311}
312
313export interface SwitchCase extends BaseNode {
314 type: "SwitchCase";
315 test: Expression | null;
316 consequent: Array<Statement>;
317}
318
319export interface SwitchStatement extends BaseNode {
320 type: "SwitchStatement";
321 discriminant: Expression;
322 cases: Array<SwitchCase>;
323}
324
325export interface ThisExpression extends BaseNode {
326 type: "ThisExpression";
327}
328
329export interface ThrowStatement extends BaseNode {
330 type: "ThrowStatement";
331 argument: Expression;
332}
333
334export interface TryStatement extends BaseNode {
335 type: "TryStatement";
336 block: BlockStatement;
337 handler: CatchClause | null;
338 finalizer: BlockStatement | null;
339}
340
341export interface UnaryExpression extends BaseNode {
342 type: "UnaryExpression";
343 operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof";
344 argument: Expression;
345 prefix: boolean;
346}
347
348export interface UpdateExpression extends BaseNode {
349 type: "UpdateExpression";
350 operator: "++" | "--";
351 argument: Expression;
352 prefix: boolean;
353}
354
355export interface VariableDeclaration extends BaseNode {
356 type: "VariableDeclaration";
357 kind: "var" | "let" | "const";
358 declarations: Array<VariableDeclarator>;
359 declare: boolean | null;
360}
361
362export interface VariableDeclarator extends BaseNode {
363 type: "VariableDeclarator";
364 id: LVal;
365 init: Expression | null;
366 definite: boolean | null;
367}
368
369export interface WhileStatement extends BaseNode {
370 type: "WhileStatement";
371 test: Expression;
372 body: Statement;
373}
374
375export interface WithStatement extends BaseNode {
376 type: "WithStatement";
377 object: Expression;
378 body: Statement;
379}
380
381export interface AssignmentPattern extends BaseNode {
382 type: "AssignmentPattern";
383 left: Identifier | ObjectPattern | ArrayPattern | MemberExpression;
384 right: Expression;
385 decorators: Array<Decorator> | null;
386 typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
387}
388
389export interface ArrayPattern extends BaseNode {
390 type: "ArrayPattern";
391 elements: Array<null | PatternLike>;
392 decorators: Array<Decorator> | null;
393 optional: boolean | null;
394 typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
395}
396
397export interface ArrowFunctionExpression extends BaseNode {
398 type: "ArrowFunctionExpression";
399 params: Array<Identifier | Pattern | RestElement>;
400 body: BlockStatement | Expression;
401 async: boolean;
402 expression: boolean;
403 generator: boolean;
404 returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
405 typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
406}
407
408export interface ClassBody extends BaseNode {
409 type: "ClassBody";
410 body: Array<ClassMethod | ClassPrivateMethod | ClassProperty | ClassPrivateProperty | TSDeclareMethod | TSIndexSignature>;
411}
412
413export interface ClassExpression extends BaseNode {
414 type: "ClassExpression";
415 id: Identifier | null;
416 superClass: Expression | null;
417 body: ClassBody;
418 decorators: Array<Decorator> | null;
419 implements: Array<TSExpressionWithTypeArguments | ClassImplements> | null;
420 mixins: InterfaceExtends | null;
421 superTypeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
422 typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
423}
424
425export interface ClassDeclaration extends BaseNode {
426 type: "ClassDeclaration";
427 id: Identifier;
428 superClass: Expression | null;
429 body: ClassBody;
430 decorators: Array<Decorator> | null;
431 abstract: boolean | null;
432 declare: boolean | null;
433 implements: Array<TSExpressionWithTypeArguments | ClassImplements> | null;
434 mixins: InterfaceExtends | null;
435 superTypeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
436 typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
437}
438
439export interface ExportAllDeclaration extends BaseNode {
440 type: "ExportAllDeclaration";
441 source: StringLiteral;
442 assertions: Array<ImportAttribute> | null;
443 exportKind: "type" | "value" | null;
444}
445
446export interface ExportDefaultDeclaration extends BaseNode {
447 type: "ExportDefaultDeclaration";
448 declaration: FunctionDeclaration | TSDeclareFunction | ClassDeclaration | Expression;
449 exportKind: "value" | null;
450}
451
452export interface ExportNamedDeclaration extends BaseNode {
453 type: "ExportNamedDeclaration";
454 declaration: Declaration | null;
455 specifiers: Array<ExportSpecifier | ExportDefaultSpecifier | ExportNamespaceSpecifier>;
456 source: StringLiteral | null;
457 assertions: Array<ImportAttribute> | null;
458 exportKind: "type" | "value" | null;
459}
460
461export interface ExportSpecifier extends BaseNode {
462 type: "ExportSpecifier";
463 local: Identifier;
464 exported: Identifier | StringLiteral;
465 exportKind: "type" | "value" | null;
466}
467
468export interface ForOfStatement extends BaseNode {
469 type: "ForOfStatement";
470 left: VariableDeclaration | LVal;
471 right: Expression;
472 body: Statement;
473 await: boolean;
474}
475
476export interface ImportDeclaration extends BaseNode {
477 type: "ImportDeclaration";
478 specifiers: Array<ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier>;
479 source: StringLiteral;
480 assertions: Array<ImportAttribute> | null;
481 importKind: "type" | "typeof" | "value" | null;
482}
483
484export interface ImportDefaultSpecifier extends BaseNode {
485 type: "ImportDefaultSpecifier";
486 local: Identifier;
487}
488
489export interface ImportNamespaceSpecifier extends BaseNode {
490 type: "ImportNamespaceSpecifier";
491 local: Identifier;
492}
493
494export interface ImportSpecifier extends BaseNode {
495 type: "ImportSpecifier";
496 local: Identifier;
497 imported: Identifier | StringLiteral;
498 importKind: "type" | "typeof" | "value" | null;
499}
500
501export interface MetaProperty extends BaseNode {
502 type: "MetaProperty";
503 meta: Identifier;
504 property: Identifier;
505}
506
507export interface ClassMethod extends BaseNode {
508 type: "ClassMethod";
509 kind: "get" | "set" | "method" | "constructor";
510 key: Identifier | StringLiteral | NumericLiteral | Expression;
511 params: Array<Identifier | Pattern | RestElement | TSParameterProperty>;
512 body: BlockStatement;
513 computed: boolean;
514 static: boolean;
515 generator: boolean;
516 async: boolean;
517 abstract: boolean | null;
518 access: "public" | "private" | "protected" | null;
519 accessibility: "public" | "private" | "protected" | null;
520 decorators: Array<Decorator> | null;
521 optional: boolean | null;
522 override: boolean;
523 returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
524 typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
525}
526
527export interface ObjectPattern extends BaseNode {
528 type: "ObjectPattern";
529 properties: Array<RestElement | ObjectProperty>;
530 decorators: Array<Decorator> | null;
531 typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
532}
533
534export interface SpreadElement extends BaseNode {
535 type: "SpreadElement";
536 argument: Expression;
537}
538
539export interface Super extends BaseNode {
540 type: "Super";
541}
542
543export interface TaggedTemplateExpression extends BaseNode {
544 type: "TaggedTemplateExpression";
545 tag: Expression;
546 quasi: TemplateLiteral;
547 typeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
548}
549
550export interface TemplateElement extends BaseNode {
551 type: "TemplateElement";
552 value: { raw: string, cooked?: string };
553 tail: boolean;
554}
555
556export interface TemplateLiteral extends BaseNode {
557 type: "TemplateLiteral";
558 quasis: Array<TemplateElement>;
559 expressions: Array<Expression | TSType>;
560}
561
562export interface YieldExpression extends BaseNode {
563 type: "YieldExpression";
564 argument: Expression | null;
565 delegate: boolean;
566}
567
568export interface AwaitExpression extends BaseNode {
569 type: "AwaitExpression";
570 argument: Expression;
571}
572
573export interface Import extends BaseNode {
574 type: "Import";
575}
576
577export interface BigIntLiteral extends BaseNode {
578 type: "BigIntLiteral";
579 value: string;
580}
581
582export interface ExportNamespaceSpecifier extends BaseNode {
583 type: "ExportNamespaceSpecifier";
584 exported: Identifier;
585}
586
587export interface OptionalMemberExpression extends BaseNode {
588 type: "OptionalMemberExpression";
589 object: Expression;
590 property: Expression | Identifier;
591 computed: boolean;
592 optional: boolean;
593}
594
595export interface OptionalCallExpression extends BaseNode {
596 type: "OptionalCallExpression";
597 callee: Expression;
598 arguments: Array<Expression | SpreadElement | JSXNamespacedName | ArgumentPlaceholder>;
599 optional: boolean;
600 typeArguments: TypeParameterInstantiation | null;
601 typeParameters: TSTypeParameterInstantiation | null;
602}
603
604export interface ClassProperty extends BaseNode {
605 type: "ClassProperty";
606 key: Identifier | StringLiteral | NumericLiteral | Expression;
607 value: Expression | null;
608 typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
609 decorators: Array<Decorator> | null;
610 computed: boolean;
611 static: boolean;
612 abstract: boolean | null;
613 accessibility: "public" | "private" | "protected" | null;
614 declare: boolean | null;
615 definite: boolean | null;
616 optional: boolean | null;
617 override: boolean;
618 readonly: boolean | null;
619 variance: Variance | null;
620}
621
622export interface ClassPrivateProperty extends BaseNode {
623 type: "ClassPrivateProperty";
624 key: PrivateName;
625 value: Expression | null;
626 decorators: Array<Decorator> | null;
627 static: any;
628 definite: boolean | null;
629 readonly: boolean | null;
630 typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
631 variance: Variance | null;
632}
633
634export interface ClassPrivateMethod extends BaseNode {
635 type: "ClassPrivateMethod";
636 kind: "get" | "set" | "method" | "constructor";
637 key: PrivateName;
638 params: Array<Identifier | Pattern | RestElement | TSParameterProperty>;
639 body: BlockStatement;
640 static: boolean;
641 abstract: boolean | null;
642 access: "public" | "private" | "protected" | null;
643 accessibility: "public" | "private" | "protected" | null;
644 async: boolean;
645 computed: boolean;
646 decorators: Array<Decorator> | null;
647 generator: boolean;
648 optional: boolean | null;
649 override: boolean;
650 returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
651 typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
652}
653
654export interface PrivateName extends BaseNode {
655 type: "PrivateName";
656 id: Identifier;
657}
658
659export interface StaticBlock extends BaseNode {
660 type: "StaticBlock";
661 body: Array<Statement>;
662}
663
664export interface AnyTypeAnnotation extends BaseNode {
665 type: "AnyTypeAnnotation";
666}
667
668export interface ArrayTypeAnnotation extends BaseNode {
669 type: "ArrayTypeAnnotation";
670 elementType: FlowType;
671}
672
673export interface BooleanTypeAnnotation extends BaseNode {
674 type: "BooleanTypeAnnotation";
675}
676
677export interface BooleanLiteralTypeAnnotation extends BaseNode {
678 type: "BooleanLiteralTypeAnnotation";
679 value: boolean;
680}
681
682export interface NullLiteralTypeAnnotation extends BaseNode {
683 type: "NullLiteralTypeAnnotation";
684}
685
686export interface ClassImplements extends BaseNode {
687 type: "ClassImplements";
688 id: Identifier;
689 typeParameters: TypeParameterInstantiation | null;
690}
691
692export interface DeclareClass extends BaseNode {
693 type: "DeclareClass";
694 id: Identifier;
695 typeParameters: TypeParameterDeclaration | null;
696 extends: Array<InterfaceExtends> | null;
697 body: ObjectTypeAnnotation;
698 implements: Array<ClassImplements> | null;
699 mixins: Array<InterfaceExtends> | null;
700}
701
702export interface DeclareFunction extends BaseNode {
703 type: "DeclareFunction";
704 id: Identifier;
705 predicate: DeclaredPredicate | null;
706}
707
708export interface DeclareInterface extends BaseNode {
709 type: "DeclareInterface";
710 id: Identifier;
711 typeParameters: TypeParameterDeclaration | null;
712 extends: Array<InterfaceExtends> | null;
713 body: ObjectTypeAnnotation;
714 implements: Array<ClassImplements> | null;
715 mixins: Array<InterfaceExtends> | null;
716}
717
718export interface DeclareModule extends BaseNode {
719 type: "DeclareModule";
720 id: Identifier | StringLiteral;
721 body: BlockStatement;
722 kind: "CommonJS" | "ES" | null;
723}
724
725export interface DeclareModuleExports extends BaseNode {
726 type: "DeclareModuleExports";
727 typeAnnotation: TypeAnnotation;
728}
729
730export interface DeclareTypeAlias extends BaseNode {
731 type: "DeclareTypeAlias";
732 id: Identifier;
733 typeParameters: TypeParameterDeclaration | null;
734 right: FlowType;
735}
736
737export interface DeclareOpaqueType extends BaseNode {
738 type: "DeclareOpaqueType";
739 id: Identifier;
740 typeParameters: TypeParameterDeclaration | null;
741 supertype: FlowType | null;
742 impltype: FlowType | null;
743}
744
745export interface DeclareVariable extends BaseNode {
746 type: "DeclareVariable";
747 id: Identifier;
748}
749
750export interface DeclareExportDeclaration extends BaseNode {
751 type: "DeclareExportDeclaration";
752 declaration: Flow | null;
753 specifiers: Array<ExportSpecifier | ExportNamespaceSpecifier> | null;
754 source: StringLiteral | null;
755 default: boolean | null;
756}
757
758export interface DeclareExportAllDeclaration extends BaseNode {
759 type: "DeclareExportAllDeclaration";
760 source: StringLiteral;
761 exportKind: "type" | "value" | null;
762}
763
764export interface DeclaredPredicate extends BaseNode {
765 type: "DeclaredPredicate";
766 value: Flow;
767}
768
769export interface ExistsTypeAnnotation extends BaseNode {
770 type: "ExistsTypeAnnotation";
771}
772
773export interface FunctionTypeAnnotation extends BaseNode {
774 type: "FunctionTypeAnnotation";
775 typeParameters: TypeParameterDeclaration | null;
776 params: Array<FunctionTypeParam>;
777 rest: FunctionTypeParam | null;
778 returnType: FlowType;
779 this: FunctionTypeParam | null;
780}
781
782export interface FunctionTypeParam extends BaseNode {
783 type: "FunctionTypeParam";
784 name: Identifier | null;
785 typeAnnotation: FlowType;
786 optional: boolean | null;
787}
788
789export interface GenericTypeAnnotation extends BaseNode {
790 type: "GenericTypeAnnotation";
791 id: Identifier | QualifiedTypeIdentifier;
792 typeParameters: TypeParameterInstantiation | null;
793}
794
795export interface InferredPredicate extends BaseNode {
796 type: "InferredPredicate";
797}
798
799export interface InterfaceExtends extends BaseNode {
800 type: "InterfaceExtends";
801 id: Identifier | QualifiedTypeIdentifier;
802 typeParameters: TypeParameterInstantiation | null;
803}
804
805export interface InterfaceDeclaration extends BaseNode {
806 type: "InterfaceDeclaration";
807 id: Identifier;
808 typeParameters: TypeParameterDeclaration | null;
809 extends: Array<InterfaceExtends> | null;
810 body: ObjectTypeAnnotation;
811 implements: Array<ClassImplements> | null;
812 mixins: Array<InterfaceExtends> | null;
813}
814
815export interface InterfaceTypeAnnotation extends BaseNode {
816 type: "InterfaceTypeAnnotation";
817 extends: Array<InterfaceExtends> | null;
818 body: ObjectTypeAnnotation;
819}
820
821export interface IntersectionTypeAnnotation extends BaseNode {
822 type: "IntersectionTypeAnnotation";
823 types: Array<FlowType>;
824}
825
826export interface MixedTypeAnnotation extends BaseNode {
827 type: "MixedTypeAnnotation";
828}
829
830export interface EmptyTypeAnnotation extends BaseNode {
831 type: "EmptyTypeAnnotation";
832}
833
834export interface NullableTypeAnnotation extends BaseNode {
835 type: "NullableTypeAnnotation";
836 typeAnnotation: FlowType;
837}
838
839export interface NumberLiteralTypeAnnotation extends BaseNode {
840 type: "NumberLiteralTypeAnnotation";
841 value: number;
842}
843
844export interface NumberTypeAnnotation extends BaseNode {
845 type: "NumberTypeAnnotation";
846}
847
848export interface ObjectTypeAnnotation extends BaseNode {
849 type: "ObjectTypeAnnotation";
850 properties: Array<ObjectTypeProperty | ObjectTypeSpreadProperty>;
851 indexers: Array<ObjectTypeIndexer> | null;
852 callProperties: Array<ObjectTypeCallProperty> | null;
853 internalSlots: Array<ObjectTypeInternalSlot> | null;
854 exact: boolean;
855 inexact: boolean | null;
856}
857
858export interface ObjectTypeInternalSlot extends BaseNode {
859 type: "ObjectTypeInternalSlot";
860 id: Identifier;
861 value: FlowType;
862 optional: boolean;
863 static: boolean;
864 method: boolean;
865}
866
867export interface ObjectTypeCallProperty extends BaseNode {
868 type: "ObjectTypeCallProperty";
869 value: FlowType;
870 static: boolean;
871}
872
873export interface ObjectTypeIndexer extends BaseNode {
874 type: "ObjectTypeIndexer";
875 id: Identifier | null;
876 key: FlowType;
877 value: FlowType;
878 variance: Variance | null;
879 static: boolean;
880}
881
882export interface ObjectTypeProperty extends BaseNode {
883 type: "ObjectTypeProperty";
884 key: Identifier | StringLiteral;
885 value: FlowType;
886 variance: Variance | null;
887 kind: "init" | "get" | "set";
888 method: boolean;
889 optional: boolean;
890 proto: boolean;
891 static: boolean;
892}
893
894export interface ObjectTypeSpreadProperty extends BaseNode {
895 type: "ObjectTypeSpreadProperty";
896 argument: FlowType;
897}
898
899export interface OpaqueType extends BaseNode {
900 type: "OpaqueType";
901 id: Identifier;
902 typeParameters: TypeParameterDeclaration | null;
903 supertype: FlowType | null;
904 impltype: FlowType;
905}
906
907export interface QualifiedTypeIdentifier extends BaseNode {
908 type: "QualifiedTypeIdentifier";
909 id: Identifier;
910 qualification: Identifier | QualifiedTypeIdentifier;
911}
912
913export interface StringLiteralTypeAnnotation extends BaseNode {
914 type: "StringLiteralTypeAnnotation";
915 value: string;
916}
917
918export interface StringTypeAnnotation extends BaseNode {
919 type: "StringTypeAnnotation";
920}
921
922export interface SymbolTypeAnnotation extends BaseNode {
923 type: "SymbolTypeAnnotation";
924}
925
926export interface ThisTypeAnnotation extends BaseNode {
927 type: "ThisTypeAnnotation";
928}
929
930export interface TupleTypeAnnotation extends BaseNode {
931 type: "TupleTypeAnnotation";
932 types: Array<FlowType>;
933}
934
935export interface TypeofTypeAnnotation extends BaseNode {
936 type: "TypeofTypeAnnotation";
937 argument: FlowType;
938}
939
940export interface TypeAlias extends BaseNode {
941 type: "TypeAlias";
942 id: Identifier;
943 typeParameters: TypeParameterDeclaration | null;
944 right: FlowType;
945}
946
947export interface TypeAnnotation extends BaseNode {
948 type: "TypeAnnotation";
949 typeAnnotation: FlowType;
950}
951
952export interface TypeCastExpression extends BaseNode {
953 type: "TypeCastExpression";
954 expression: Expression;
955 typeAnnotation: TypeAnnotation;
956}
957
958export interface TypeParameter extends BaseNode {
959 type: "TypeParameter";
960 bound: TypeAnnotation | null;
961 default: FlowType | null;
962 variance: Variance | null;
963 name: string;
964}
965
966export interface TypeParameterDeclaration extends BaseNode {
967 type: "TypeParameterDeclaration";
968 params: Array<TypeParameter>;
969}
970
971export interface TypeParameterInstantiation extends BaseNode {
972 type: "TypeParameterInstantiation";
973 params: Array<FlowType>;
974}
975
976export interface UnionTypeAnnotation extends BaseNode {
977 type: "UnionTypeAnnotation";
978 types: Array<FlowType>;
979}
980
981export interface Variance extends BaseNode {
982 type: "Variance";
983 kind: "minus" | "plus";
984}
985
986export interface VoidTypeAnnotation extends BaseNode {
987 type: "VoidTypeAnnotation";
988}
989
990export interface EnumDeclaration extends BaseNode {
991 type: "EnumDeclaration";
992 id: Identifier;
993 body: EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody;
994}
995
996export interface EnumBooleanBody extends BaseNode {
997 type: "EnumBooleanBody";
998 members: Array<EnumBooleanMember>;
999 explicitType: boolean;
1000 hasUnknownMembers: boolean;
1001}
1002
1003export interface EnumNumberBody extends BaseNode {
1004 type: "EnumNumberBody";
1005 members: Array<EnumNumberMember>;
1006 explicitType: boolean;
1007 hasUnknownMembers: boolean;
1008}
1009
1010export interface EnumStringBody extends BaseNode {
1011 type: "EnumStringBody";
1012 members: Array<EnumStringMember | EnumDefaultedMember>;
1013 explicitType: boolean;
1014 hasUnknownMembers: boolean;
1015}
1016
1017export interface EnumSymbolBody extends BaseNode {
1018 type: "EnumSymbolBody";
1019 members: Array<EnumDefaultedMember>;
1020 hasUnknownMembers: boolean;
1021}
1022
1023export interface EnumBooleanMember extends BaseNode {
1024 type: "EnumBooleanMember";
1025 id: Identifier;
1026 init: BooleanLiteral;
1027}
1028
1029export interface EnumNumberMember extends BaseNode {
1030 type: "EnumNumberMember";
1031 id: Identifier;
1032 init: NumericLiteral;
1033}
1034
1035export interface EnumStringMember extends BaseNode {
1036 type: "EnumStringMember";
1037 id: Identifier;
1038 init: StringLiteral;
1039}
1040
1041export interface EnumDefaultedMember extends BaseNode {
1042 type: "EnumDefaultedMember";
1043 id: Identifier;
1044}
1045
1046export interface IndexedAccessType extends BaseNode {
1047 type: "IndexedAccessType";
1048 objectType: FlowType;
1049 indexType: FlowType;
1050}
1051
1052export interface OptionalIndexedAccessType extends BaseNode {
1053 type: "OptionalIndexedAccessType";
1054 objectType: FlowType;
1055 indexType: FlowType;
1056 optional: boolean;
1057}
1058
1059export interface JSXAttribute extends BaseNode {
1060 type: "JSXAttribute";
1061 name: JSXIdentifier | JSXNamespacedName;
1062 value: JSXElement | JSXFragment | StringLiteral | JSXExpressionContainer | null;
1063}
1064
1065export interface JSXClosingElement extends BaseNode {
1066 type: "JSXClosingElement";
1067 name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName;
1068}
1069
1070export interface JSXElement extends BaseNode {
1071 type: "JSXElement";
1072 openingElement: JSXOpeningElement;
1073 closingElement: JSXClosingElement | null;
1074 children: Array<JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment>;
1075 selfClosing: boolean | null;
1076}
1077
1078export interface JSXEmptyExpression extends BaseNode {
1079 type: "JSXEmptyExpression";
1080}
1081
1082export interface JSXExpressionContainer extends BaseNode {
1083 type: "JSXExpressionContainer";
1084 expression: Expression | JSXEmptyExpression;
1085}
1086
1087export interface JSXSpreadChild extends BaseNode {
1088 type: "JSXSpreadChild";
1089 expression: Expression;
1090}
1091
1092export interface JSXIdentifier extends BaseNode {
1093 type: "JSXIdentifier";
1094 name: string;
1095}
1096
1097export interface JSXMemberExpression extends BaseNode {
1098 type: "JSXMemberExpression";
1099 object: JSXMemberExpression | JSXIdentifier;
1100 property: JSXIdentifier;
1101}
1102
1103export interface JSXNamespacedName extends BaseNode {
1104 type: "JSXNamespacedName";
1105 namespace: JSXIdentifier;
1106 name: JSXIdentifier;
1107}
1108
1109export interface JSXOpeningElement extends BaseNode {
1110 type: "JSXOpeningElement";
1111 name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName;
1112 attributes: Array<JSXAttribute | JSXSpreadAttribute>;
1113 selfClosing: boolean;
1114 typeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
1115}
1116
1117export interface JSXSpreadAttribute extends BaseNode {
1118 type: "JSXSpreadAttribute";
1119 argument: Expression;
1120}
1121
1122export interface JSXText extends BaseNode {
1123 type: "JSXText";
1124 value: string;
1125}
1126
1127export interface JSXFragment extends BaseNode {
1128 type: "JSXFragment";
1129 openingFragment: JSXOpeningFragment;
1130 closingFragment: JSXClosingFragment;
1131 children: Array<JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment>;
1132}
1133
1134export interface JSXOpeningFragment extends BaseNode {
1135 type: "JSXOpeningFragment";
1136}
1137
1138export interface JSXClosingFragment extends BaseNode {
1139 type: "JSXClosingFragment";
1140}
1141
1142export interface Noop extends BaseNode {
1143 type: "Noop";
1144}
1145
1146export interface Placeholder extends BaseNode {
1147 type: "Placeholder";
1148 expectedNode: "Identifier" | "StringLiteral" | "Expression" | "Statement" | "Declaration" | "BlockStatement" | "ClassBody" | "Pattern";
1149 name: Identifier;
1150}
1151
1152export interface V8IntrinsicIdentifier extends BaseNode {
1153 type: "V8IntrinsicIdentifier";
1154 name: string;
1155}
1156
1157export interface ArgumentPlaceholder extends BaseNode {
1158 type: "ArgumentPlaceholder";
1159}
1160
1161export interface BindExpression extends BaseNode {
1162 type: "BindExpression";
1163 object: Expression;
1164 callee: Expression;
1165}
1166
1167export interface ImportAttribute extends BaseNode {
1168 type: "ImportAttribute";
1169 key: Identifier | StringLiteral;
1170 value: StringLiteral;
1171}
1172
1173export interface Decorator extends BaseNode {
1174 type: "Decorator";
1175 expression: Expression;
1176}
1177
1178export interface DoExpression extends BaseNode {
1179 type: "DoExpression";
1180 body: BlockStatement;
1181 async: boolean;
1182}
1183
1184export interface ExportDefaultSpecifier extends BaseNode {
1185 type: "ExportDefaultSpecifier";
1186 exported: Identifier;
1187}
1188
1189export interface RecordExpression extends BaseNode {
1190 type: "RecordExpression";
1191 properties: Array<ObjectProperty | SpreadElement>;
1192}
1193
1194export interface TupleExpression extends BaseNode {
1195 type: "TupleExpression";
1196 elements: Array<Expression | SpreadElement>;
1197}
1198
1199export interface DecimalLiteral extends BaseNode {
1200 type: "DecimalLiteral";
1201 value: string;
1202}
1203
1204export interface ModuleExpression extends BaseNode {
1205 type: "ModuleExpression";
1206 body: Program;
1207}
1208
1209export interface TopicReference extends BaseNode {
1210 type: "TopicReference";
1211}
1212
1213export interface PipelineTopicExpression extends BaseNode {
1214 type: "PipelineTopicExpression";
1215 expression: Expression;
1216}
1217
1218export interface PipelineBareFunction extends BaseNode {
1219 type: "PipelineBareFunction";
1220 callee: Expression;
1221}
1222
1223export interface PipelinePrimaryTopicReference extends BaseNode {
1224 type: "PipelinePrimaryTopicReference";
1225}
1226
1227export interface TSParameterProperty extends BaseNode {
1228 type: "TSParameterProperty";
1229 parameter: Identifier | AssignmentPattern;
1230 accessibility: "public" | "private" | "protected" | null;
1231 decorators: Array<Decorator> | null;
1232 override: boolean | null;
1233 readonly: boolean | null;
1234}
1235
1236export interface TSDeclareFunction extends BaseNode {
1237 type: "TSDeclareFunction";
1238 id: Identifier | null;
1239 typeParameters: TSTypeParameterDeclaration | Noop | null;
1240 params: Array<Identifier | Pattern | RestElement>;
1241 returnType: TSTypeAnnotation | Noop | null;
1242 async: boolean;
1243 declare: boolean | null;
1244 generator: boolean;
1245}
1246
1247export interface TSDeclareMethod extends BaseNode {
1248 type: "TSDeclareMethod";
1249 decorators: Array<Decorator> | null;
1250 key: Identifier | StringLiteral | NumericLiteral | Expression;
1251 typeParameters: TSTypeParameterDeclaration | Noop | null;
1252 params: Array<Identifier | Pattern | RestElement | TSParameterProperty>;
1253 returnType: TSTypeAnnotation | Noop | null;
1254 abstract: boolean | null;
1255 access: "public" | "private" | "protected" | null;
1256 accessibility: "public" | "private" | "protected" | null;
1257 async: boolean;
1258 computed: boolean;
1259 generator: boolean;
1260 kind: "get" | "set" | "method" | "constructor";
1261 optional: boolean | null;
1262 override: boolean;
1263 static: boolean;
1264}
1265
1266export interface TSQualifiedName extends BaseNode {
1267 type: "TSQualifiedName";
1268 left: TSEntityName;
1269 right: Identifier;
1270}
1271
1272export interface TSCallSignatureDeclaration extends BaseNode {
1273 type: "TSCallSignatureDeclaration";
1274 typeParameters: TSTypeParameterDeclaration | null;
1275 parameters: Array<Identifier | RestElement>;
1276 typeAnnotation: TSTypeAnnotation | null;
1277}
1278
1279export interface TSConstructSignatureDeclaration extends BaseNode {
1280 type: "TSConstructSignatureDeclaration";
1281 typeParameters: TSTypeParameterDeclaration | null;
1282 parameters: Array<Identifier | RestElement>;
1283 typeAnnotation: TSTypeAnnotation | null;
1284}
1285
1286export interface TSPropertySignature extends BaseNode {
1287 type: "TSPropertySignature";
1288 key: Expression;
1289 typeAnnotation: TSTypeAnnotation | null;
1290 initializer: Expression | null;
1291 computed: boolean | null;
1292 kind: "get" | "set";
1293 optional: boolean | null;
1294 readonly: boolean | null;
1295}
1296
1297export interface TSMethodSignature extends BaseNode {
1298 type: "TSMethodSignature";
1299 key: Expression;
1300 typeParameters: TSTypeParameterDeclaration | null;
1301 parameters: Array<Identifier | RestElement>;
1302 typeAnnotation: TSTypeAnnotation | null;
1303 computed: boolean | null;
1304 kind: "method" | "get" | "set";
1305 optional: boolean | null;
1306}
1307
1308export interface TSIndexSignature extends BaseNode {
1309 type: "TSIndexSignature";
1310 parameters: Array<Identifier>;
1311 typeAnnotation: TSTypeAnnotation | null;
1312 readonly: boolean | null;
1313 static: boolean | null;
1314}
1315
1316export interface TSAnyKeyword extends BaseNode {
1317 type: "TSAnyKeyword";
1318}
1319
1320export interface TSBooleanKeyword extends BaseNode {
1321 type: "TSBooleanKeyword";
1322}
1323
1324export interface TSBigIntKeyword extends BaseNode {
1325 type: "TSBigIntKeyword";
1326}
1327
1328export interface TSIntrinsicKeyword extends BaseNode {
1329 type: "TSIntrinsicKeyword";
1330}
1331
1332export interface TSNeverKeyword extends BaseNode {
1333 type: "TSNeverKeyword";
1334}
1335
1336export interface TSNullKeyword extends BaseNode {
1337 type: "TSNullKeyword";
1338}
1339
1340export interface TSNumberKeyword extends BaseNode {
1341 type: "TSNumberKeyword";
1342}
1343
1344export interface TSObjectKeyword extends BaseNode {
1345 type: "TSObjectKeyword";
1346}
1347
1348export interface TSStringKeyword extends BaseNode {
1349 type: "TSStringKeyword";
1350}
1351
1352export interface TSSymbolKeyword extends BaseNode {
1353 type: "TSSymbolKeyword";
1354}
1355
1356export interface TSUndefinedKeyword extends BaseNode {
1357 type: "TSUndefinedKeyword";
1358}
1359
1360export interface TSUnknownKeyword extends BaseNode {
1361 type: "TSUnknownKeyword";
1362}
1363
1364export interface TSVoidKeyword extends BaseNode {
1365 type: "TSVoidKeyword";
1366}
1367
1368export interface TSThisType extends BaseNode {
1369 type: "TSThisType";
1370}
1371
1372export interface TSFunctionType extends BaseNode {
1373 type: "TSFunctionType";
1374 typeParameters: TSTypeParameterDeclaration | null;
1375 parameters: Array<Identifier | RestElement>;
1376 typeAnnotation: TSTypeAnnotation | null;
1377}
1378
1379export interface TSConstructorType extends BaseNode {
1380 type: "TSConstructorType";
1381 typeParameters: TSTypeParameterDeclaration | null;
1382 parameters: Array<Identifier | RestElement>;
1383 typeAnnotation: TSTypeAnnotation | null;
1384 abstract: boolean | null;
1385}
1386
1387export interface TSTypeReference extends BaseNode {
1388 type: "TSTypeReference";
1389 typeName: TSEntityName;
1390 typeParameters: TSTypeParameterInstantiation | null;
1391}
1392
1393export interface TSTypePredicate extends BaseNode {
1394 type: "TSTypePredicate";
1395 parameterName: Identifier | TSThisType;
1396 typeAnnotation: TSTypeAnnotation | null;
1397 asserts: boolean | null;
1398}
1399
1400export interface TSTypeQuery extends BaseNode {
1401 type: "TSTypeQuery";
1402 exprName: TSEntityName | TSImportType;
1403}
1404
1405export interface TSTypeLiteral extends BaseNode {
1406 type: "TSTypeLiteral";
1407 members: Array<TSTypeElement>;
1408}
1409
1410export interface TSArrayType extends BaseNode {
1411 type: "TSArrayType";
1412 elementType: TSType;
1413}
1414
1415export interface TSTupleType extends BaseNode {
1416 type: "TSTupleType";
1417 elementTypes: Array<TSType | TSNamedTupleMember>;
1418}
1419
1420export interface TSOptionalType extends BaseNode {
1421 type: "TSOptionalType";
1422 typeAnnotation: TSType;
1423}
1424
1425export interface TSRestType extends BaseNode {
1426 type: "TSRestType";
1427 typeAnnotation: TSType;
1428}
1429
1430export interface TSNamedTupleMember extends BaseNode {
1431 type: "TSNamedTupleMember";
1432 label: Identifier;
1433 elementType: TSType;
1434 optional: boolean;
1435}
1436
1437export interface TSUnionType extends BaseNode {
1438 type: "TSUnionType";
1439 types: Array<TSType>;
1440}
1441
1442export interface TSIntersectionType extends BaseNode {
1443 type: "TSIntersectionType";
1444 types: Array<TSType>;
1445}
1446
1447export interface TSConditionalType extends BaseNode {
1448 type: "TSConditionalType";
1449 checkType: TSType;
1450 extendsType: TSType;
1451 trueType: TSType;
1452 falseType: TSType;
1453}
1454
1455export interface TSInferType extends BaseNode {
1456 type: "TSInferType";
1457 typeParameter: TSTypeParameter;
1458}
1459
1460export interface TSParenthesizedType extends BaseNode {
1461 type: "TSParenthesizedType";
1462 typeAnnotation: TSType;
1463}
1464
1465export interface TSTypeOperator extends BaseNode {
1466 type: "TSTypeOperator";
1467 typeAnnotation: TSType;
1468 operator: string;
1469}
1470
1471export interface TSIndexedAccessType extends BaseNode {
1472 type: "TSIndexedAccessType";
1473 objectType: TSType;
1474 indexType: TSType;
1475}
1476
1477export interface TSMappedType extends BaseNode {
1478 type: "TSMappedType";
1479 typeParameter: TSTypeParameter;
1480 typeAnnotation: TSType | null;
1481 nameType: TSType | null;
1482 optional: boolean | null;
1483 readonly: boolean | null;
1484}
1485
1486export interface TSLiteralType extends BaseNode {
1487 type: "TSLiteralType";
1488 literal: NumericLiteral | StringLiteral | BooleanLiteral | BigIntLiteral | UnaryExpression;
1489}
1490
1491export interface TSExpressionWithTypeArguments extends BaseNode {
1492 type: "TSExpressionWithTypeArguments";
1493 expression: TSEntityName;
1494 typeParameters: TSTypeParameterInstantiation | null;
1495}
1496
1497export interface TSInterfaceDeclaration extends BaseNode {
1498 type: "TSInterfaceDeclaration";
1499 id: Identifier;
1500 typeParameters: TSTypeParameterDeclaration | null;
1501 extends: Array<TSExpressionWithTypeArguments> | null;
1502 body: TSInterfaceBody;
1503 declare: boolean | null;
1504}
1505
1506export interface TSInterfaceBody extends BaseNode {
1507 type: "TSInterfaceBody";
1508 body: Array<TSTypeElement>;
1509}
1510
1511export interface TSTypeAliasDeclaration extends BaseNode {
1512 type: "TSTypeAliasDeclaration";
1513 id: Identifier;
1514 typeParameters: TSTypeParameterDeclaration | null;
1515 typeAnnotation: TSType;
1516 declare: boolean | null;
1517}
1518
1519export interface TSAsExpression extends BaseNode {
1520 type: "TSAsExpression";
1521 expression: Expression;
1522 typeAnnotation: TSType;
1523}
1524
1525export interface TSTypeAssertion extends BaseNode {
1526 type: "TSTypeAssertion";
1527 typeAnnotation: TSType;
1528 expression: Expression;
1529}
1530
1531export interface TSEnumDeclaration extends BaseNode {
1532 type: "TSEnumDeclaration";
1533 id: Identifier;
1534 members: Array<TSEnumMember>;
1535 const: boolean | null;
1536 declare: boolean | null;
1537 initializer: Expression | null;
1538}
1539
1540export interface TSEnumMember extends BaseNode {
1541 type: "TSEnumMember";
1542 id: Identifier | StringLiteral;
1543 initializer: Expression | null;
1544}
1545
1546export interface TSModuleDeclaration extends BaseNode {
1547 type: "TSModuleDeclaration";
1548 id: Identifier | StringLiteral;
1549 body: TSModuleBlock | TSModuleDeclaration;
1550 declare: boolean | null;
1551 global: boolean | null;
1552}
1553
1554export interface TSModuleBlock extends BaseNode {
1555 type: "TSModuleBlock";
1556 body: Array<Statement>;
1557}
1558
1559export interface TSImportType extends BaseNode {
1560 type: "TSImportType";
1561 argument: StringLiteral;
1562 qualifier: TSEntityName | null;
1563 typeParameters: TSTypeParameterInstantiation | null;
1564}
1565
1566export interface TSImportEqualsDeclaration extends BaseNode {
1567 type: "TSImportEqualsDeclaration";
1568 id: Identifier;
1569 moduleReference: TSEntityName | TSExternalModuleReference;
1570 importKind: "type" | "value" | null;
1571 isExport: boolean;
1572}
1573
1574export interface TSExternalModuleReference extends BaseNode {
1575 type: "TSExternalModuleReference";
1576 expression: StringLiteral;
1577}
1578
1579export interface TSNonNullExpression extends BaseNode {
1580 type: "TSNonNullExpression";
1581 expression: Expression;
1582}
1583
1584export interface TSExportAssignment extends BaseNode {
1585 type: "TSExportAssignment";
1586 expression: Expression;
1587}
1588
1589export interface TSNamespaceExportDeclaration extends BaseNode {
1590 type: "TSNamespaceExportDeclaration";
1591 id: Identifier;
1592}
1593
1594export interface TSTypeAnnotation extends BaseNode {
1595 type: "TSTypeAnnotation";
1596 typeAnnotation: TSType;
1597}
1598
1599export interface TSTypeParameterInstantiation extends BaseNode {
1600 type: "TSTypeParameterInstantiation";
1601 params: Array<TSType>;
1602}
1603
1604export interface TSTypeParameterDeclaration extends BaseNode {
1605 type: "TSTypeParameterDeclaration";
1606 params: Array<TSTypeParameter>;
1607}
1608
1609export interface TSTypeParameter extends BaseNode {
1610 type: "TSTypeParameter";
1611 constraint: TSType | null;
1612 default: TSType | null;
1613 name: string;
1614}
1615
1616/**
1617 * @deprecated Use `NumericLiteral`
1618 */
1619export type NumberLiteral = NumericLiteral;
1620
1621/**
1622 * @deprecated Use `RegExpLiteral`
1623 */
1624export type RegexLiteral = RegExpLiteral;
1625
1626/**
1627 * @deprecated Use `RestElement`
1628 */
1629export type RestProperty = RestElement;
1630
1631/**
1632 * @deprecated Use `SpreadElement`
1633 */
1634export type SpreadProperty = SpreadElement;
1635
1636export type Standardized = ArrayExpression | AssignmentExpression | BinaryExpression | InterpreterDirective | Directive | DirectiveLiteral | BlockStatement | BreakStatement | CallExpression | CatchClause | ConditionalExpression | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement | File | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | LabeledStatement | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | LogicalExpression | MemberExpression | NewExpression | Program | ObjectExpression | ObjectMethod | ObjectProperty | RestElement | ReturnStatement | SequenceExpression | ParenthesizedExpression | SwitchCase | SwitchStatement | ThisExpression | ThrowStatement | TryStatement | UnaryExpression | UpdateExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | AssignmentPattern | ArrayPattern | ArrowFunctionExpression | ClassBody | ClassExpression | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ForOfStatement | ImportDeclaration | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | MetaProperty | ClassMethod | ObjectPattern | SpreadElement | Super | TaggedTemplateExpression | TemplateElement | TemplateLiteral | YieldExpression | AwaitExpression | Import | BigIntLiteral | ExportNamespaceSpecifier | OptionalMemberExpression | OptionalCallExpression | ClassProperty | ClassPrivateProperty | ClassPrivateMethod | PrivateName | StaticBlock;
1637export type Expression = ArrayExpression | AssignmentExpression | BinaryExpression | CallExpression | ConditionalExpression | FunctionExpression | Identifier | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | LogicalExpression | MemberExpression | NewExpression | ObjectExpression | SequenceExpression | ParenthesizedExpression | ThisExpression | UnaryExpression | UpdateExpression | ArrowFunctionExpression | ClassExpression | MetaProperty | Super | TaggedTemplateExpression | TemplateLiteral | YieldExpression | AwaitExpression | Import | BigIntLiteral | OptionalMemberExpression | OptionalCallExpression | TypeCastExpression | JSXElement | JSXFragment | BindExpression | DoExpression | RecordExpression | TupleExpression | DecimalLiteral | ModuleExpression | TopicReference | PipelineTopicExpression | PipelineBareFunction | PipelinePrimaryTopicReference | TSAsExpression | TSTypeAssertion | TSNonNullExpression;
1638export type Binary = BinaryExpression | LogicalExpression;
1639export type Scopable = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ClassExpression | ClassDeclaration | ForOfStatement | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock;
1640export type BlockParent = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ForOfStatement | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock;
1641export type Block = BlockStatement | Program | TSModuleBlock;
1642export type Statement = BlockStatement | BreakStatement | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement | ForInStatement | ForStatement | FunctionDeclaration | IfStatement | LabeledStatement | ReturnStatement | SwitchStatement | ThrowStatement | TryStatement | VariableDeclaration | WhileStatement | WithStatement | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ForOfStatement | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias | EnumDeclaration | TSDeclareFunction | TSInterfaceDeclaration | TSTypeAliasDeclaration | TSEnumDeclaration | TSModuleDeclaration | TSImportEqualsDeclaration | TSExportAssignment | TSNamespaceExportDeclaration;
1643export type Terminatorless = BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement | YieldExpression | AwaitExpression;
1644export type CompletionStatement = BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement;
1645export type Conditional = ConditionalExpression | IfStatement;
1646export type Loop = DoWhileStatement | ForInStatement | ForStatement | WhileStatement | ForOfStatement;
1647export type While = DoWhileStatement | WhileStatement;
1648export type ExpressionWrapper = ExpressionStatement | ParenthesizedExpression | TypeCastExpression;
1649export type For = ForInStatement | ForStatement | ForOfStatement;
1650export type ForXStatement = ForInStatement | ForOfStatement;
1651export type Function = FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod | ClassPrivateMethod;
1652export type FunctionParent = FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod | ClassPrivateMethod | StaticBlock;
1653export type Pureish = FunctionDeclaration | FunctionExpression | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | ArrowFunctionExpression | BigIntLiteral | DecimalLiteral;
1654export type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias | EnumDeclaration | TSDeclareFunction | TSInterfaceDeclaration | TSTypeAliasDeclaration | TSEnumDeclaration | TSModuleDeclaration;
1655export type PatternLike = Identifier | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern;
1656export type LVal = Identifier | MemberExpression | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern | TSParameterProperty;
1657export type TSEntityName = Identifier | TSQualifiedName;
1658export type Literal = StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | TemplateLiteral | BigIntLiteral | DecimalLiteral;
1659export type Immutable = StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | BigIntLiteral | JSXAttribute | JSXClosingElement | JSXElement | JSXExpressionContainer | JSXSpreadChild | JSXOpeningElement | JSXText | JSXFragment | JSXOpeningFragment | JSXClosingFragment | DecimalLiteral;
1660export type UserWhitespacable = ObjectMethod | ObjectProperty | ObjectTypeInternalSlot | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeProperty | ObjectTypeSpreadProperty;
1661export type Method = ObjectMethod | ClassMethod | ClassPrivateMethod;
1662export type ObjectMember = ObjectMethod | ObjectProperty;
1663export type Property = ObjectProperty | ClassProperty | ClassPrivateProperty;
1664export type UnaryLike = UnaryExpression | SpreadElement;
1665export type Pattern = AssignmentPattern | ArrayPattern | ObjectPattern;
1666export type Class = ClassExpression | ClassDeclaration;
1667export type ModuleDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration;
1668export type ExportDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration;
1669export type ModuleSpecifier = ExportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | ExportNamespaceSpecifier | ExportDefaultSpecifier;
1670export type Private = ClassPrivateProperty | ClassPrivateMethod | PrivateName;
1671export type Flow = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullLiteralTypeAnnotation | ClassImplements | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | DeclaredPredicate | ExistsTypeAnnotation | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | InferredPredicate | InterfaceExtends | InterfaceDeclaration | InterfaceTypeAnnotation | IntersectionTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NullableTypeAnnotation | NumberLiteralTypeAnnotation | NumberTypeAnnotation | ObjectTypeAnnotation | ObjectTypeInternalSlot | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | QualifiedTypeIdentifier | StringLiteralTypeAnnotation | StringTypeAnnotation | SymbolTypeAnnotation | ThisTypeAnnotation | TupleTypeAnnotation | TypeofTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | UnionTypeAnnotation | Variance | VoidTypeAnnotation | EnumDeclaration | EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody | EnumBooleanMember | EnumNumberMember | EnumStringMember | EnumDefaultedMember | IndexedAccessType | OptionalIndexedAccessType;
1672export type FlowType = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullLiteralTypeAnnotation | ExistsTypeAnnotation | FunctionTypeAnnotation | GenericTypeAnnotation | InterfaceTypeAnnotation | IntersectionTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NullableTypeAnnotation | NumberLiteralTypeAnnotation | NumberTypeAnnotation | ObjectTypeAnnotation | StringLiteralTypeAnnotation | StringTypeAnnotation | SymbolTypeAnnotation | ThisTypeAnnotation | TupleTypeAnnotation | TypeofTypeAnnotation | UnionTypeAnnotation | VoidTypeAnnotation | IndexedAccessType | OptionalIndexedAccessType;
1673export type FlowBaseAnnotation = AnyTypeAnnotation | BooleanTypeAnnotation | NullLiteralTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NumberTypeAnnotation | StringTypeAnnotation | SymbolTypeAnnotation | ThisTypeAnnotation | VoidTypeAnnotation;
1674export type FlowDeclaration = DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias;
1675export type FlowPredicate = DeclaredPredicate | InferredPredicate;
1676export type EnumBody = EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody;
1677export type EnumMember = EnumBooleanMember | EnumNumberMember | EnumStringMember | EnumDefaultedMember;
1678export type JSX = JSXAttribute | JSXClosingElement | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXSpreadChild | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXSpreadAttribute | JSXText | JSXFragment | JSXOpeningFragment | JSXClosingFragment;
1679export type Miscellaneous = Noop | Placeholder | V8IntrinsicIdentifier;
1680export type TypeScript = TSParameterProperty | TSDeclareFunction | TSDeclareMethod | TSQualifiedName | TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSPropertySignature | TSMethodSignature | TSIndexSignature | TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSFunctionType | TSConstructorType | TSTypeReference | TSTypePredicate | TSTypeQuery | TSTypeLiteral | TSArrayType | TSTupleType | TSOptionalType | TSRestType | TSNamedTupleMember | TSUnionType | TSIntersectionType | TSConditionalType | TSInferType | TSParenthesizedType | TSTypeOperator | TSIndexedAccessType | TSMappedType | TSLiteralType | TSExpressionWithTypeArguments | TSInterfaceDeclaration | TSInterfaceBody | TSTypeAliasDeclaration | TSAsExpression | TSTypeAssertion | TSEnumDeclaration | TSEnumMember | TSModuleDeclaration | TSModuleBlock | TSImportType | TSImportEqualsDeclaration | TSExternalModuleReference | TSNonNullExpression | TSExportAssignment | TSNamespaceExportDeclaration | TSTypeAnnotation | TSTypeParameterInstantiation | TSTypeParameterDeclaration | TSTypeParameter;
1681export type TSTypeElement = TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSPropertySignature | TSMethodSignature | TSIndexSignature;
1682export type TSType = TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSFunctionType | TSConstructorType | TSTypeReference | TSTypePredicate | TSTypeQuery | TSTypeLiteral | TSArrayType | TSTupleType | TSOptionalType | TSRestType | TSUnionType | TSIntersectionType | TSConditionalType | TSInferType | TSParenthesizedType | TSTypeOperator | TSIndexedAccessType | TSMappedType | TSLiteralType | TSExpressionWithTypeArguments | TSImportType;
1683export type TSBaseType = TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSLiteralType;
1684
1685export interface Aliases {
1686 Standardized: Standardized;
1687 Expression: Expression;
1688 Binary: Binary;
1689 Scopable: Scopable;
1690 BlockParent: BlockParent;
1691 Block: Block;
1692 Statement: Statement;
1693 Terminatorless: Terminatorless;
1694 CompletionStatement: CompletionStatement;
1695 Conditional: Conditional;
1696 Loop: Loop;
1697 While: While;
1698 ExpressionWrapper: ExpressionWrapper;
1699 For: For;
1700 ForXStatement: ForXStatement;
1701 Function: Function;
1702 FunctionParent: FunctionParent;
1703 Pureish: Pureish;
1704 Declaration: Declaration;
1705 PatternLike: PatternLike;
1706 LVal: LVal;
1707 TSEntityName: TSEntityName;
1708 Literal: Literal;
1709 Immutable: Immutable;
1710 UserWhitespacable: UserWhitespacable;
1711 Method: Method;
1712 ObjectMember: ObjectMember;
1713 Property: Property;
1714 UnaryLike: UnaryLike;
1715 Pattern: Pattern;
1716 Class: Class;
1717 ModuleDeclaration: ModuleDeclaration;
1718 ExportDeclaration: ExportDeclaration;
1719 ModuleSpecifier: ModuleSpecifier;
1720 Private: Private;
1721 Flow: Flow;
1722 FlowType: FlowType;
1723 FlowBaseAnnotation: FlowBaseAnnotation;
1724 FlowDeclaration: FlowDeclaration;
1725 FlowPredicate: FlowPredicate;
1726 EnumBody: EnumBody;
1727 EnumMember: EnumMember;
1728 JSX: JSX;
1729 Miscellaneous: Miscellaneous;
1730 TypeScript: TypeScript;
1731 TSTypeElement: TSTypeElement;
1732 TSType: TSType;
1733 TSBaseType: TSBaseType;
1734}
1735
1736export function arrayExpression(elements?: Array<null | Expression | SpreadElement>): ArrayExpression;
1737export function assignmentExpression(operator: string, left: LVal, right: Expression): AssignmentExpression;
1738export function binaryExpression(operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=", left: Expression | PrivateName, right: Expression): BinaryExpression;
1739export function interpreterDirective(value: string): InterpreterDirective;
1740export function directive(value: DirectiveLiteral): Directive;
1741export function directiveLiteral(value: string): DirectiveLiteral;
1742export function blockStatement(body: Array<Statement>, directives?: Array<Directive>): BlockStatement;
1743export function breakStatement(label?: Identifier | null): BreakStatement;
1744export function callExpression(callee: Expression | V8IntrinsicIdentifier, _arguments: Array<Expression | SpreadElement | JSXNamespacedName | ArgumentPlaceholder>): CallExpression;
1745export function catchClause(param: Identifier | ArrayPattern | ObjectPattern | null | undefined, body: BlockStatement): CatchClause;
1746export function conditionalExpression(test: Expression, consequent: Expression, alternate: Expression): ConditionalExpression;
1747export function continueStatement(label?: Identifier | null): ContinueStatement;
1748export function debuggerStatement(): DebuggerStatement;
1749export function doWhileStatement(test: Expression, body: Statement): DoWhileStatement;
1750export function emptyStatement(): EmptyStatement;
1751export function expressionStatement(expression: Expression): ExpressionStatement;
1752export function file(program: Program, comments?: Array<CommentBlock | CommentLine> | null, tokens?: Array<any> | null): File;
1753export function forInStatement(left: VariableDeclaration | LVal, right: Expression, body: Statement): ForInStatement;
1754export function forStatement(init: VariableDeclaration | Expression | null | undefined, test: Expression | null | undefined, update: Expression | null | undefined, body: Statement): ForStatement;
1755export function functionDeclaration(id: Identifier | null | undefined, params: Array<Identifier | Pattern | RestElement>, body: BlockStatement, generator?: boolean, async?: boolean): FunctionDeclaration;
1756export function functionExpression(id: Identifier | null | undefined, params: Array<Identifier | Pattern | RestElement>, body: BlockStatement, generator?: boolean, async?: boolean): FunctionExpression;
1757export function identifier(name: string): Identifier;
1758export function ifStatement(test: Expression, consequent: Statement, alternate?: Statement | null): IfStatement;
1759export function labeledStatement(label: Identifier, body: Statement): LabeledStatement;
1760export function stringLiteral(value: string): StringLiteral;
1761export function numericLiteral(value: number): NumericLiteral;
1762export function nullLiteral(): NullLiteral;
1763export function booleanLiteral(value: boolean): BooleanLiteral;
1764export function regExpLiteral(pattern: string, flags?: string): RegExpLiteral;
1765export function logicalExpression(operator: "||" | "&&" | "??", left: Expression, right: Expression): LogicalExpression;
1766export function memberExpression(object: Expression, property: Expression | Identifier | PrivateName, computed?: boolean, optional?: true | false | null): MemberExpression;
1767export function newExpression(callee: Expression | V8IntrinsicIdentifier, _arguments: Array<Expression | SpreadElement | JSXNamespacedName | ArgumentPlaceholder>): NewExpression;
1768export function program(body: Array<Statement>, directives?: Array<Directive>, sourceType?: "script" | "module", interpreter?: InterpreterDirective | null): Program;
1769export function objectExpression(properties: Array<ObjectMethod | ObjectProperty | SpreadElement>): ObjectExpression;
1770export function objectMethod(kind: "method" | "get" | "set" | undefined, key: Expression | Identifier | StringLiteral | NumericLiteral, params: Array<Identifier | Pattern | RestElement>, body: BlockStatement, computed?: boolean, generator?: boolean, async?: boolean): ObjectMethod;
1771export function objectProperty(key: Expression | Identifier | StringLiteral | NumericLiteral, value: Expression | PatternLike, computed?: boolean, shorthand?: boolean, decorators?: Array<Decorator> | null): ObjectProperty;
1772export function restElement(argument: LVal): RestElement;
1773export function returnStatement(argument?: Expression | null): ReturnStatement;
1774export function sequenceExpression(expressions: Array<Expression>): SequenceExpression;
1775export function parenthesizedExpression(expression: Expression): ParenthesizedExpression;
1776export function switchCase(test: Expression | null | undefined, consequent: Array<Statement>): SwitchCase;
1777export function switchStatement(discriminant: Expression, cases: Array<SwitchCase>): SwitchStatement;
1778export function thisExpression(): ThisExpression;
1779export function throwStatement(argument: Expression): ThrowStatement;
1780export function tryStatement(block: BlockStatement, handler?: CatchClause | null, finalizer?: BlockStatement | null): TryStatement;
1781export function unaryExpression(operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof", argument: Expression, prefix?: boolean): UnaryExpression;
1782export function updateExpression(operator: "++" | "--", argument: Expression, prefix?: boolean): UpdateExpression;
1783export function variableDeclaration(kind: "var" | "let" | "const", declarations: Array<VariableDeclarator>): VariableDeclaration;
1784export function variableDeclarator(id: LVal, init?: Expression | null): VariableDeclarator;
1785export function whileStatement(test: Expression, body: Statement): WhileStatement;
1786export function withStatement(object: Expression, body: Statement): WithStatement;
1787export function assignmentPattern(left: Identifier | ObjectPattern | ArrayPattern | MemberExpression, right: Expression): AssignmentPattern;
1788export function arrayPattern(elements: Array<null | PatternLike>): ArrayPattern;
1789export function arrowFunctionExpression(params: Array<Identifier | Pattern | RestElement>, body: BlockStatement | Expression, async?: boolean): ArrowFunctionExpression;
1790export function classBody(body: Array<ClassMethod | ClassPrivateMethod | ClassProperty | ClassPrivateProperty | TSDeclareMethod | TSIndexSignature>): ClassBody;
1791export function classExpression(id: Identifier | null | undefined, superClass: Expression | null | undefined, body: ClassBody, decorators?: Array<Decorator> | null): ClassExpression;
1792export function classDeclaration(id: Identifier, superClass: Expression | null | undefined, body: ClassBody, decorators?: Array<Decorator> | null): ClassDeclaration;
1793export function exportAllDeclaration(source: StringLiteral): ExportAllDeclaration;
1794export function exportDefaultDeclaration(declaration: FunctionDeclaration | TSDeclareFunction | ClassDeclaration | Expression): ExportDefaultDeclaration;
1795export function exportNamedDeclaration(declaration?: Declaration | null, specifiers?: Array<ExportSpecifier | ExportDefaultSpecifier | ExportNamespaceSpecifier>, source?: StringLiteral | null): ExportNamedDeclaration;
1796export function exportSpecifier(local: Identifier, exported: Identifier | StringLiteral): ExportSpecifier;
1797export function forOfStatement(left: VariableDeclaration | LVal, right: Expression, body: Statement, _await?: boolean): ForOfStatement;
1798export function importDeclaration(specifiers: Array<ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier>, source: StringLiteral): ImportDeclaration;
1799export function importDefaultSpecifier(local: Identifier): ImportDefaultSpecifier;
1800export function importNamespaceSpecifier(local: Identifier): ImportNamespaceSpecifier;
1801export function importSpecifier(local: Identifier, imported: Identifier | StringLiteral): ImportSpecifier;
1802export function metaProperty(meta: Identifier, property: Identifier): MetaProperty;
1803export function classMethod(kind: "get" | "set" | "method" | "constructor" | undefined, key: Identifier | StringLiteral | NumericLiteral | Expression, params: Array<Identifier | Pattern | RestElement | TSParameterProperty>, body: BlockStatement, computed?: boolean, _static?: boolean, generator?: boolean, async?: boolean): ClassMethod;
1804export function objectPattern(properties: Array<RestElement | ObjectProperty>): ObjectPattern;
1805export function spreadElement(argument: Expression): SpreadElement;
1806declare function _super(): Super;
1807export { _super as super}
1808export function taggedTemplateExpression(tag: Expression, quasi: TemplateLiteral): TaggedTemplateExpression;
1809export function templateElement(value: { raw: string, cooked?: string }, tail?: boolean): TemplateElement;
1810export function templateLiteral(quasis: Array<TemplateElement>, expressions: Array<Expression | TSType>): TemplateLiteral;
1811export function yieldExpression(argument?: Expression | null, delegate?: boolean): YieldExpression;
1812export function awaitExpression(argument: Expression): AwaitExpression;
1813declare function _import(): Import;
1814export { _import as import}
1815export function bigIntLiteral(value: string): BigIntLiteral;
1816export function exportNamespaceSpecifier(exported: Identifier): ExportNamespaceSpecifier;
1817export function optionalMemberExpression(object: Expression, property: Expression | Identifier, computed: boolean | undefined, optional: boolean): OptionalMemberExpression;
1818export function optionalCallExpression(callee: Expression, _arguments: Array<Expression | SpreadElement | JSXNamespacedName | ArgumentPlaceholder>, optional: boolean): OptionalCallExpression;
1819export function classProperty(key: Identifier | StringLiteral | NumericLiteral | Expression, value?: Expression | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null, decorators?: Array<Decorator> | null, computed?: boolean, _static?: boolean): ClassProperty;
1820export function classPrivateProperty(key: PrivateName, value: Expression | null | undefined, decorators: Array<Decorator> | null | undefined, _static: any): ClassPrivateProperty;
1821export function classPrivateMethod(kind: "get" | "set" | "method" | "constructor" | undefined, key: PrivateName, params: Array<Identifier | Pattern | RestElement | TSParameterProperty>, body: BlockStatement, _static?: boolean): ClassPrivateMethod;
1822export function privateName(id: Identifier): PrivateName;
1823export function staticBlock(body: Array<Statement>): StaticBlock;
1824export function anyTypeAnnotation(): AnyTypeAnnotation;
1825export function arrayTypeAnnotation(elementType: FlowType): ArrayTypeAnnotation;
1826export function booleanTypeAnnotation(): BooleanTypeAnnotation;
1827export function booleanLiteralTypeAnnotation(value: boolean): BooleanLiteralTypeAnnotation;
1828export function nullLiteralTypeAnnotation(): NullLiteralTypeAnnotation;
1829export function classImplements(id: Identifier, typeParameters?: TypeParameterInstantiation | null): ClassImplements;
1830export function declareClass(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: Array<InterfaceExtends> | null | undefined, body: ObjectTypeAnnotation): DeclareClass;
1831export function declareFunction(id: Identifier): DeclareFunction;
1832export function declareInterface(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: Array<InterfaceExtends> | null | undefined, body: ObjectTypeAnnotation): DeclareInterface;
1833export function declareModule(id: Identifier | StringLiteral, body: BlockStatement, kind?: "CommonJS" | "ES" | null): DeclareModule;
1834export function declareModuleExports(typeAnnotation: TypeAnnotation): DeclareModuleExports;
1835export function declareTypeAlias(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, right: FlowType): DeclareTypeAlias;
1836export function declareOpaqueType(id: Identifier, typeParameters?: TypeParameterDeclaration | null, supertype?: FlowType | null): DeclareOpaqueType;
1837export function declareVariable(id: Identifier): DeclareVariable;
1838export function declareExportDeclaration(declaration?: Flow | null, specifiers?: Array<ExportSpecifier | ExportNamespaceSpecifier> | null, source?: StringLiteral | null): DeclareExportDeclaration;
1839export function declareExportAllDeclaration(source: StringLiteral): DeclareExportAllDeclaration;
1840export function declaredPredicate(value: Flow): DeclaredPredicate;
1841export function existsTypeAnnotation(): ExistsTypeAnnotation;
1842export function functionTypeAnnotation(typeParameters: TypeParameterDeclaration | null | undefined, params: Array<FunctionTypeParam>, rest: FunctionTypeParam | null | undefined, returnType: FlowType): FunctionTypeAnnotation;
1843export function functionTypeParam(name: Identifier | null | undefined, typeAnnotation: FlowType): FunctionTypeParam;
1844export function genericTypeAnnotation(id: Identifier | QualifiedTypeIdentifier, typeParameters?: TypeParameterInstantiation | null): GenericTypeAnnotation;
1845export function inferredPredicate(): InferredPredicate;
1846export function interfaceExtends(id: Identifier | QualifiedTypeIdentifier, typeParameters?: TypeParameterInstantiation | null): InterfaceExtends;
1847export function interfaceDeclaration(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: Array<InterfaceExtends> | null | undefined, body: ObjectTypeAnnotation): InterfaceDeclaration;
1848export function interfaceTypeAnnotation(_extends: Array<InterfaceExtends> | null | undefined, body: ObjectTypeAnnotation): InterfaceTypeAnnotation;
1849export function intersectionTypeAnnotation(types: Array<FlowType>): IntersectionTypeAnnotation;
1850export function mixedTypeAnnotation(): MixedTypeAnnotation;
1851export function emptyTypeAnnotation(): EmptyTypeAnnotation;
1852export function nullableTypeAnnotation(typeAnnotation: FlowType): NullableTypeAnnotation;
1853export function numberLiteralTypeAnnotation(value: number): NumberLiteralTypeAnnotation;
1854export function numberTypeAnnotation(): NumberTypeAnnotation;
1855export function objectTypeAnnotation(properties: Array<ObjectTypeProperty | ObjectTypeSpreadProperty>, indexers?: Array<ObjectTypeIndexer> | null, callProperties?: Array<ObjectTypeCallProperty> | null, internalSlots?: Array<ObjectTypeInternalSlot> | null, exact?: boolean): ObjectTypeAnnotation;
1856export function objectTypeInternalSlot(id: Identifier, value: FlowType, optional: boolean, _static: boolean, method: boolean): ObjectTypeInternalSlot;
1857export function objectTypeCallProperty(value: FlowType): ObjectTypeCallProperty;
1858export function objectTypeIndexer(id: Identifier | null | undefined, key: FlowType, value: FlowType, variance?: Variance | null): ObjectTypeIndexer;
1859export function objectTypeProperty(key: Identifier | StringLiteral, value: FlowType, variance?: Variance | null): ObjectTypeProperty;
1860export function objectTypeSpreadProperty(argument: FlowType): ObjectTypeSpreadProperty;
1861export function opaqueType(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, supertype: FlowType | null | undefined, impltype: FlowType): OpaqueType;
1862export function qualifiedTypeIdentifier(id: Identifier, qualification: Identifier | QualifiedTypeIdentifier): QualifiedTypeIdentifier;
1863export function stringLiteralTypeAnnotation(value: string): StringLiteralTypeAnnotation;
1864export function stringTypeAnnotation(): StringTypeAnnotation;
1865export function symbolTypeAnnotation(): SymbolTypeAnnotation;
1866export function thisTypeAnnotation(): ThisTypeAnnotation;
1867export function tupleTypeAnnotation(types: Array<FlowType>): TupleTypeAnnotation;
1868export function typeofTypeAnnotation(argument: FlowType): TypeofTypeAnnotation;
1869export function typeAlias(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, right: FlowType): TypeAlias;
1870export function typeAnnotation(typeAnnotation: FlowType): TypeAnnotation;
1871export function typeCastExpression(expression: Expression, typeAnnotation: TypeAnnotation): TypeCastExpression;
1872export function typeParameter(bound?: TypeAnnotation | null, _default?: FlowType | null, variance?: Variance | null): TypeParameter;
1873export function typeParameterDeclaration(params: Array<TypeParameter>): TypeParameterDeclaration;
1874export function typeParameterInstantiation(params: Array<FlowType>): TypeParameterInstantiation;
1875export function unionTypeAnnotation(types: Array<FlowType>): UnionTypeAnnotation;
1876export function variance(kind: "minus" | "plus"): Variance;
1877export function voidTypeAnnotation(): VoidTypeAnnotation;
1878export function enumDeclaration(id: Identifier, body: EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody): EnumDeclaration;
1879export function enumBooleanBody(members: Array<EnumBooleanMember>): EnumBooleanBody;
1880export function enumNumberBody(members: Array<EnumNumberMember>): EnumNumberBody;
1881export function enumStringBody(members: Array<EnumStringMember | EnumDefaultedMember>): EnumStringBody;
1882export function enumSymbolBody(members: Array<EnumDefaultedMember>): EnumSymbolBody;
1883export function enumBooleanMember(id: Identifier): EnumBooleanMember;
1884export function enumNumberMember(id: Identifier, init: NumericLiteral): EnumNumberMember;
1885export function enumStringMember(id: Identifier, init: StringLiteral): EnumStringMember;
1886export function enumDefaultedMember(id: Identifier): EnumDefaultedMember;
1887export function indexedAccessType(objectType: FlowType, indexType: FlowType): IndexedAccessType;
1888export function optionalIndexedAccessType(objectType: FlowType, indexType: FlowType): OptionalIndexedAccessType;
1889export function jsxAttribute(name: JSXIdentifier | JSXNamespacedName, value?: JSXElement | JSXFragment | StringLiteral | JSXExpressionContainer | null): JSXAttribute;
1890export function jsxClosingElement(name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName): JSXClosingElement;
1891export function jsxElement(openingElement: JSXOpeningElement, closingElement: JSXClosingElement | null | undefined, children: Array<JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment>, selfClosing?: boolean | null): JSXElement;
1892export function jsxEmptyExpression(): JSXEmptyExpression;
1893export function jsxExpressionContainer(expression: Expression | JSXEmptyExpression): JSXExpressionContainer;
1894export function jsxSpreadChild(expression: Expression): JSXSpreadChild;
1895export function jsxIdentifier(name: string): JSXIdentifier;
1896export function jsxMemberExpression(object: JSXMemberExpression | JSXIdentifier, property: JSXIdentifier): JSXMemberExpression;
1897export function jsxNamespacedName(namespace: JSXIdentifier, name: JSXIdentifier): JSXNamespacedName;
1898export function jsxOpeningElement(name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName, attributes: Array<JSXAttribute | JSXSpreadAttribute>, selfClosing?: boolean): JSXOpeningElement;
1899export function jsxSpreadAttribute(argument: Expression): JSXSpreadAttribute;
1900export function jsxText(value: string): JSXText;
1901export function jsxFragment(openingFragment: JSXOpeningFragment, closingFragment: JSXClosingFragment, children: Array<JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment>): JSXFragment;
1902export function jsxOpeningFragment(): JSXOpeningFragment;
1903export function jsxClosingFragment(): JSXClosingFragment;
1904export function noop(): Noop;
1905export function placeholder(expectedNode: "Identifier" | "StringLiteral" | "Expression" | "Statement" | "Declaration" | "BlockStatement" | "ClassBody" | "Pattern", name: Identifier): Placeholder;
1906export function v8IntrinsicIdentifier(name: string): V8IntrinsicIdentifier;
1907export function argumentPlaceholder(): ArgumentPlaceholder;
1908export function bindExpression(object: Expression, callee: Expression): BindExpression;
1909export function importAttribute(key: Identifier | StringLiteral, value: StringLiteral): ImportAttribute;
1910export function decorator(expression: Expression): Decorator;
1911export function doExpression(body: BlockStatement, async?: boolean): DoExpression;
1912export function exportDefaultSpecifier(exported: Identifier): ExportDefaultSpecifier;
1913export function recordExpression(properties: Array<ObjectProperty | SpreadElement>): RecordExpression;
1914export function tupleExpression(elements?: Array<Expression | SpreadElement>): TupleExpression;
1915export function decimalLiteral(value: string): DecimalLiteral;
1916export function moduleExpression(body: Program): ModuleExpression;
1917export function topicReference(): TopicReference;
1918export function pipelineTopicExpression(expression: Expression): PipelineTopicExpression;
1919export function pipelineBareFunction(callee: Expression): PipelineBareFunction;
1920export function pipelinePrimaryTopicReference(): PipelinePrimaryTopicReference;
1921export function tsParameterProperty(parameter: Identifier | AssignmentPattern): TSParameterProperty;
1922export function tsDeclareFunction(id: Identifier | null | undefined, typeParameters: TSTypeParameterDeclaration | Noop | null | undefined, params: Array<Identifier | Pattern | RestElement>, returnType?: TSTypeAnnotation | Noop | null): TSDeclareFunction;
1923export function tsDeclareMethod(decorators: Array<Decorator> | null | undefined, key: Identifier | StringLiteral | NumericLiteral | Expression, typeParameters: TSTypeParameterDeclaration | Noop | null | undefined, params: Array<Identifier | Pattern | RestElement | TSParameterProperty>, returnType?: TSTypeAnnotation | Noop | null): TSDeclareMethod;
1924export function tsQualifiedName(left: TSEntityName, right: Identifier): TSQualifiedName;
1925export function tsCallSignatureDeclaration(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array<Identifier | RestElement>, typeAnnotation?: TSTypeAnnotation | null): TSCallSignatureDeclaration;
1926export function tsConstructSignatureDeclaration(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array<Identifier | RestElement>, typeAnnotation?: TSTypeAnnotation | null): TSConstructSignatureDeclaration;
1927export function tsPropertySignature(key: Expression, typeAnnotation?: TSTypeAnnotation | null, initializer?: Expression | null): TSPropertySignature;
1928export function tsMethodSignature(key: Expression, typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array<Identifier | RestElement>, typeAnnotation?: TSTypeAnnotation | null): TSMethodSignature;
1929export function tsIndexSignature(parameters: Array<Identifier>, typeAnnotation?: TSTypeAnnotation | null): TSIndexSignature;
1930export function tsAnyKeyword(): TSAnyKeyword;
1931export function tsBooleanKeyword(): TSBooleanKeyword;
1932export function tsBigIntKeyword(): TSBigIntKeyword;
1933export function tsIntrinsicKeyword(): TSIntrinsicKeyword;
1934export function tsNeverKeyword(): TSNeverKeyword;
1935export function tsNullKeyword(): TSNullKeyword;
1936export function tsNumberKeyword(): TSNumberKeyword;
1937export function tsObjectKeyword(): TSObjectKeyword;
1938export function tsStringKeyword(): TSStringKeyword;
1939export function tsSymbolKeyword(): TSSymbolKeyword;
1940export function tsUndefinedKeyword(): TSUndefinedKeyword;
1941export function tsUnknownKeyword(): TSUnknownKeyword;
1942export function tsVoidKeyword(): TSVoidKeyword;
1943export function tsThisType(): TSThisType;
1944export function tsFunctionType(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array<Identifier | RestElement>, typeAnnotation?: TSTypeAnnotation | null): TSFunctionType;
1945export function tsConstructorType(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array<Identifier | RestElement>, typeAnnotation?: TSTypeAnnotation | null): TSConstructorType;
1946export function tsTypeReference(typeName: TSEntityName, typeParameters?: TSTypeParameterInstantiation | null): TSTypeReference;
1947export function tsTypePredicate(parameterName: Identifier | TSThisType, typeAnnotation?: TSTypeAnnotation | null, asserts?: boolean | null): TSTypePredicate;
1948export function tsTypeQuery(exprName: TSEntityName | TSImportType): TSTypeQuery;
1949export function tsTypeLiteral(members: Array<TSTypeElement>): TSTypeLiteral;
1950export function tsArrayType(elementType: TSType): TSArrayType;
1951export function tsTupleType(elementTypes: Array<TSType | TSNamedTupleMember>): TSTupleType;
1952export function tsOptionalType(typeAnnotation: TSType): TSOptionalType;
1953export function tsRestType(typeAnnotation: TSType): TSRestType;
1954export function tsNamedTupleMember(label: Identifier, elementType: TSType, optional?: boolean): TSNamedTupleMember;
1955export function tsUnionType(types: Array<TSType>): TSUnionType;
1956export function tsIntersectionType(types: Array<TSType>): TSIntersectionType;
1957export function tsConditionalType(checkType: TSType, extendsType: TSType, trueType: TSType, falseType: TSType): TSConditionalType;
1958export function tsInferType(typeParameter: TSTypeParameter): TSInferType;
1959export function tsParenthesizedType(typeAnnotation: TSType): TSParenthesizedType;
1960export function tsTypeOperator(typeAnnotation: TSType): TSTypeOperator;
1961export function tsIndexedAccessType(objectType: TSType, indexType: TSType): TSIndexedAccessType;
1962export function tsMappedType(typeParameter: TSTypeParameter, typeAnnotation?: TSType | null, nameType?: TSType | null): TSMappedType;
1963export function tsLiteralType(literal: NumericLiteral | StringLiteral | BooleanLiteral | BigIntLiteral | UnaryExpression): TSLiteralType;
1964export function tsExpressionWithTypeArguments(expression: TSEntityName, typeParameters?: TSTypeParameterInstantiation | null): TSExpressionWithTypeArguments;
1965export function tsInterfaceDeclaration(id: Identifier, typeParameters: TSTypeParameterDeclaration | null | undefined, _extends: Array<TSExpressionWithTypeArguments> | null | undefined, body: TSInterfaceBody): TSInterfaceDeclaration;
1966export function tsInterfaceBody(body: Array<TSTypeElement>): TSInterfaceBody;
1967export function tsTypeAliasDeclaration(id: Identifier, typeParameters: TSTypeParameterDeclaration | null | undefined, typeAnnotation: TSType): TSTypeAliasDeclaration;
1968export function tsAsExpression(expression: Expression, typeAnnotation: TSType): TSAsExpression;
1969export function tsTypeAssertion(typeAnnotation: TSType, expression: Expression): TSTypeAssertion;
1970export function tsEnumDeclaration(id: Identifier, members: Array<TSEnumMember>): TSEnumDeclaration;
1971export function tsEnumMember(id: Identifier | StringLiteral, initializer?: Expression | null): TSEnumMember;
1972export function tsModuleDeclaration(id: Identifier | StringLiteral, body: TSModuleBlock | TSModuleDeclaration): TSModuleDeclaration;
1973export function tsModuleBlock(body: Array<Statement>): TSModuleBlock;
1974export function tsImportType(argument: StringLiteral, qualifier?: TSEntityName | null, typeParameters?: TSTypeParameterInstantiation | null): TSImportType;
1975export function tsImportEqualsDeclaration(id: Identifier, moduleReference: TSEntityName | TSExternalModuleReference): TSImportEqualsDeclaration;
1976export function tsExternalModuleReference(expression: StringLiteral): TSExternalModuleReference;
1977export function tsNonNullExpression(expression: Expression): TSNonNullExpression;
1978export function tsExportAssignment(expression: Expression): TSExportAssignment;
1979export function tsNamespaceExportDeclaration(id: Identifier): TSNamespaceExportDeclaration;
1980export function tsTypeAnnotation(typeAnnotation: TSType): TSTypeAnnotation;
1981export function tsTypeParameterInstantiation(params: Array<TSType>): TSTypeParameterInstantiation;
1982export function tsTypeParameterDeclaration(params: Array<TSTypeParameter>): TSTypeParameterDeclaration;
1983export function tsTypeParameter(constraint: TSType | null | undefined, _default: TSType | null | undefined, name: string): TSTypeParameter;
1984export function isAnyTypeAnnotation(node: object | null | undefined, opts?: object | null): node is AnyTypeAnnotation;
1985export function assertAnyTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
1986export function isArgumentPlaceholder(node: object | null | undefined, opts?: object | null): node is ArgumentPlaceholder;
1987export function assertArgumentPlaceholder(node: object | null | undefined, opts?: object | null): void;
1988export function isArrayExpression(node: object | null | undefined, opts?: object | null): node is ArrayExpression;
1989export function assertArrayExpression(node: object | null | undefined, opts?: object | null): void;
1990export function isArrayPattern(node: object | null | undefined, opts?: object | null): node is ArrayPattern;
1991export function assertArrayPattern(node: object | null | undefined, opts?: object | null): void;
1992export function isArrayTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ArrayTypeAnnotation;
1993export function assertArrayTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
1994export function isArrowFunctionExpression(node: object | null | undefined, opts?: object | null): node is ArrowFunctionExpression;
1995export function assertArrowFunctionExpression(node: object | null | undefined, opts?: object | null): void;
1996export function isAssignmentExpression(node: object | null | undefined, opts?: object | null): node is AssignmentExpression;
1997export function assertAssignmentExpression(node: object | null | undefined, opts?: object | null): void;
1998export function isAssignmentPattern(node: object | null | undefined, opts?: object | null): node is AssignmentPattern;
1999export function assertAssignmentPattern(node: object | null | undefined, opts?: object | null): void;
2000export function isAwaitExpression(node: object | null | undefined, opts?: object | null): node is AwaitExpression;
2001export function assertAwaitExpression(node: object | null | undefined, opts?: object | null): void;
2002export function isBigIntLiteral(node: object | null | undefined, opts?: object | null): node is BigIntLiteral;
2003export function assertBigIntLiteral(node: object | null | undefined, opts?: object | null): void;
2004export function isBinary(node: object | null | undefined, opts?: object | null): node is Binary;
2005export function assertBinary(node: object | null | undefined, opts?: object | null): void;
2006export function isBinaryExpression(node: object | null | undefined, opts?: object | null): node is BinaryExpression;
2007export function assertBinaryExpression(node: object | null | undefined, opts?: object | null): void;
2008export function isBindExpression(node: object | null | undefined, opts?: object | null): node is BindExpression;
2009export function assertBindExpression(node: object | null | undefined, opts?: object | null): void;
2010export function isBlock(node: object | null | undefined, opts?: object | null): node is Block;
2011export function assertBlock(node: object | null | undefined, opts?: object | null): void;
2012export function isBlockParent(node: object | null | undefined, opts?: object | null): node is BlockParent;
2013export function assertBlockParent(node: object | null | undefined, opts?: object | null): void;
2014export function isBlockStatement(node: object | null | undefined, opts?: object | null): node is BlockStatement;
2015export function assertBlockStatement(node: object | null | undefined, opts?: object | null): void;
2016export function isBooleanLiteral(node: object | null | undefined, opts?: object | null): node is BooleanLiteral;
2017export function assertBooleanLiteral(node: object | null | undefined, opts?: object | null): void;
2018export function isBooleanLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is BooleanLiteralTypeAnnotation;
2019export function assertBooleanLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2020export function isBooleanTypeAnnotation(node: object | null | undefined, opts?: object | null): node is BooleanTypeAnnotation;
2021export function assertBooleanTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2022export function isBreakStatement(node: object | null | undefined, opts?: object | null): node is BreakStatement;
2023export function assertBreakStatement(node: object | null | undefined, opts?: object | null): void;
2024export function isCallExpression(node: object | null | undefined, opts?: object | null): node is CallExpression;
2025export function assertCallExpression(node: object | null | undefined, opts?: object | null): void;
2026export function isCatchClause(node: object | null | undefined, opts?: object | null): node is CatchClause;
2027export function assertCatchClause(node: object | null | undefined, opts?: object | null): void;
2028export function isClass(node: object | null | undefined, opts?: object | null): node is Class;
2029export function assertClass(node: object | null | undefined, opts?: object | null): void;
2030export function isClassBody(node: object | null | undefined, opts?: object | null): node is ClassBody;
2031export function assertClassBody(node: object | null | undefined, opts?: object | null): void;
2032export function isClassDeclaration(node: object | null | undefined, opts?: object | null): node is ClassDeclaration;
2033export function assertClassDeclaration(node: object | null | undefined, opts?: object | null): void;
2034export function isClassExpression(node: object | null | undefined, opts?: object | null): node is ClassExpression;
2035export function assertClassExpression(node: object | null | undefined, opts?: object | null): void;
2036export function isClassImplements(node: object | null | undefined, opts?: object | null): node is ClassImplements;
2037export function assertClassImplements(node: object | null | undefined, opts?: object | null): void;
2038export function isClassMethod(node: object | null | undefined, opts?: object | null): node is ClassMethod;
2039export function assertClassMethod(node: object | null | undefined, opts?: object | null): void;
2040export function isClassPrivateMethod(node: object | null | undefined, opts?: object | null): node is ClassPrivateMethod;
2041export function assertClassPrivateMethod(node: object | null | undefined, opts?: object | null): void;
2042export function isClassPrivateProperty(node: object | null | undefined, opts?: object | null): node is ClassPrivateProperty;
2043export function assertClassPrivateProperty(node: object | null | undefined, opts?: object | null): void;
2044export function isClassProperty(node: object | null | undefined, opts?: object | null): node is ClassProperty;
2045export function assertClassProperty(node: object | null | undefined, opts?: object | null): void;
2046export function isCompletionStatement(node: object | null | undefined, opts?: object | null): node is CompletionStatement;
2047export function assertCompletionStatement(node: object | null | undefined, opts?: object | null): void;
2048export function isConditional(node: object | null | undefined, opts?: object | null): node is Conditional;
2049export function assertConditional(node: object | null | undefined, opts?: object | null): void;
2050export function isConditionalExpression(node: object | null | undefined, opts?: object | null): node is ConditionalExpression;
2051export function assertConditionalExpression(node: object | null | undefined, opts?: object | null): void;
2052export function isContinueStatement(node: object | null | undefined, opts?: object | null): node is ContinueStatement;
2053export function assertContinueStatement(node: object | null | undefined, opts?: object | null): void;
2054export function isDebuggerStatement(node: object | null | undefined, opts?: object | null): node is DebuggerStatement;
2055export function assertDebuggerStatement(node: object | null | undefined, opts?: object | null): void;
2056export function isDecimalLiteral(node: object | null | undefined, opts?: object | null): node is DecimalLiteral;
2057export function assertDecimalLiteral(node: object | null | undefined, opts?: object | null): void;
2058export function isDeclaration(node: object | null | undefined, opts?: object | null): node is Declaration;
2059export function assertDeclaration(node: object | null | undefined, opts?: object | null): void;
2060export function isDeclareClass(node: object | null | undefined, opts?: object | null): node is DeclareClass;
2061export function assertDeclareClass(node: object | null | undefined, opts?: object | null): void;
2062export function isDeclareExportAllDeclaration(node: object | null | undefined, opts?: object | null): node is DeclareExportAllDeclaration;
2063export function assertDeclareExportAllDeclaration(node: object | null | undefined, opts?: object | null): void;
2064export function isDeclareExportDeclaration(node: object | null | undefined, opts?: object | null): node is DeclareExportDeclaration;
2065export function assertDeclareExportDeclaration(node: object | null | undefined, opts?: object | null): void;
2066export function isDeclareFunction(node: object | null | undefined, opts?: object | null): node is DeclareFunction;
2067export function assertDeclareFunction(node: object | null | undefined, opts?: object | null): void;
2068export function isDeclareInterface(node: object | null | undefined, opts?: object | null): node is DeclareInterface;
2069export function assertDeclareInterface(node: object | null | undefined, opts?: object | null): void;
2070export function isDeclareModule(node: object | null | undefined, opts?: object | null): node is DeclareModule;
2071export function assertDeclareModule(node: object | null | undefined, opts?: object | null): void;
2072export function isDeclareModuleExports(node: object | null | undefined, opts?: object | null): node is DeclareModuleExports;
2073export function assertDeclareModuleExports(node: object | null | undefined, opts?: object | null): void;
2074export function isDeclareOpaqueType(node: object | null | undefined, opts?: object | null): node is DeclareOpaqueType;
2075export function assertDeclareOpaqueType(node: object | null | undefined, opts?: object | null): void;
2076export function isDeclareTypeAlias(node: object | null | undefined, opts?: object | null): node is DeclareTypeAlias;
2077export function assertDeclareTypeAlias(node: object | null | undefined, opts?: object | null): void;
2078export function isDeclareVariable(node: object | null | undefined, opts?: object | null): node is DeclareVariable;
2079export function assertDeclareVariable(node: object | null | undefined, opts?: object | null): void;
2080export function isDeclaredPredicate(node: object | null | undefined, opts?: object | null): node is DeclaredPredicate;
2081export function assertDeclaredPredicate(node: object | null | undefined, opts?: object | null): void;
2082export function isDecorator(node: object | null | undefined, opts?: object | null): node is Decorator;
2083export function assertDecorator(node: object | null | undefined, opts?: object | null): void;
2084export function isDirective(node: object | null | undefined, opts?: object | null): node is Directive;
2085export function assertDirective(node: object | null | undefined, opts?: object | null): void;
2086export function isDirectiveLiteral(node: object | null | undefined, opts?: object | null): node is DirectiveLiteral;
2087export function assertDirectiveLiteral(node: object | null | undefined, opts?: object | null): void;
2088export function isDoExpression(node: object | null | undefined, opts?: object | null): node is DoExpression;
2089export function assertDoExpression(node: object | null | undefined, opts?: object | null): void;
2090export function isDoWhileStatement(node: object | null | undefined, opts?: object | null): node is DoWhileStatement;
2091export function assertDoWhileStatement(node: object | null | undefined, opts?: object | null): void;
2092export function isEmptyStatement(node: object | null | undefined, opts?: object | null): node is EmptyStatement;
2093export function assertEmptyStatement(node: object | null | undefined, opts?: object | null): void;
2094export function isEmptyTypeAnnotation(node: object | null | undefined, opts?: object | null): node is EmptyTypeAnnotation;
2095export function assertEmptyTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2096export function isEnumBody(node: object | null | undefined, opts?: object | null): node is EnumBody;
2097export function assertEnumBody(node: object | null | undefined, opts?: object | null): void;
2098export function isEnumBooleanBody(node: object | null | undefined, opts?: object | null): node is EnumBooleanBody;
2099export function assertEnumBooleanBody(node: object | null | undefined, opts?: object | null): void;
2100export function isEnumBooleanMember(node: object | null | undefined, opts?: object | null): node is EnumBooleanMember;
2101export function assertEnumBooleanMember(node: object | null | undefined, opts?: object | null): void;
2102export function isEnumDeclaration(node: object | null | undefined, opts?: object | null): node is EnumDeclaration;
2103export function assertEnumDeclaration(node: object | null | undefined, opts?: object | null): void;
2104export function isEnumDefaultedMember(node: object | null | undefined, opts?: object | null): node is EnumDefaultedMember;
2105export function assertEnumDefaultedMember(node: object | null | undefined, opts?: object | null): void;
2106export function isEnumMember(node: object | null | undefined, opts?: object | null): node is EnumMember;
2107export function assertEnumMember(node: object | null | undefined, opts?: object | null): void;
2108export function isEnumNumberBody(node: object | null | undefined, opts?: object | null): node is EnumNumberBody;
2109export function assertEnumNumberBody(node: object | null | undefined, opts?: object | null): void;
2110export function isEnumNumberMember(node: object | null | undefined, opts?: object | null): node is EnumNumberMember;
2111export function assertEnumNumberMember(node: object | null | undefined, opts?: object | null): void;
2112export function isEnumStringBody(node: object | null | undefined, opts?: object | null): node is EnumStringBody;
2113export function assertEnumStringBody(node: object | null | undefined, opts?: object | null): void;
2114export function isEnumStringMember(node: object | null | undefined, opts?: object | null): node is EnumStringMember;
2115export function assertEnumStringMember(node: object | null | undefined, opts?: object | null): void;
2116export function isEnumSymbolBody(node: object | null | undefined, opts?: object | null): node is EnumSymbolBody;
2117export function assertEnumSymbolBody(node: object | null | undefined, opts?: object | null): void;
2118export function isExistsTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ExistsTypeAnnotation;
2119export function assertExistsTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2120export function isExportAllDeclaration(node: object | null | undefined, opts?: object | null): node is ExportAllDeclaration;
2121export function assertExportAllDeclaration(node: object | null | undefined, opts?: object | null): void;
2122export function isExportDeclaration(node: object | null | undefined, opts?: object | null): node is ExportDeclaration;
2123export function assertExportDeclaration(node: object | null | undefined, opts?: object | null): void;
2124export function isExportDefaultDeclaration(node: object | null | undefined, opts?: object | null): node is ExportDefaultDeclaration;
2125export function assertExportDefaultDeclaration(node: object | null | undefined, opts?: object | null): void;
2126export function isExportDefaultSpecifier(node: object | null | undefined, opts?: object | null): node is ExportDefaultSpecifier;
2127export function assertExportDefaultSpecifier(node: object | null | undefined, opts?: object | null): void;
2128export function isExportNamedDeclaration(node: object | null | undefined, opts?: object | null): node is ExportNamedDeclaration;
2129export function assertExportNamedDeclaration(node: object | null | undefined, opts?: object | null): void;
2130export function isExportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): node is ExportNamespaceSpecifier;
2131export function assertExportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): void;
2132export function isExportSpecifier(node: object | null | undefined, opts?: object | null): node is ExportSpecifier;
2133export function assertExportSpecifier(node: object | null | undefined, opts?: object | null): void;
2134export function isExpression(node: object | null | undefined, opts?: object | null): node is Expression;
2135export function assertExpression(node: object | null | undefined, opts?: object | null): void;
2136export function isExpressionStatement(node: object | null | undefined, opts?: object | null): node is ExpressionStatement;
2137export function assertExpressionStatement(node: object | null | undefined, opts?: object | null): void;
2138export function isExpressionWrapper(node: object | null | undefined, opts?: object | null): node is ExpressionWrapper;
2139export function assertExpressionWrapper(node: object | null | undefined, opts?: object | null): void;
2140export function isFile(node: object | null | undefined, opts?: object | null): node is File;
2141export function assertFile(node: object | null | undefined, opts?: object | null): void;
2142export function isFlow(node: object | null | undefined, opts?: object | null): node is Flow;
2143export function assertFlow(node: object | null | undefined, opts?: object | null): void;
2144export function isFlowBaseAnnotation(node: object | null | undefined, opts?: object | null): node is FlowBaseAnnotation;
2145export function assertFlowBaseAnnotation(node: object | null | undefined, opts?: object | null): void;
2146export function isFlowDeclaration(node: object | null | undefined, opts?: object | null): node is FlowDeclaration;
2147export function assertFlowDeclaration(node: object | null | undefined, opts?: object | null): void;
2148export function isFlowPredicate(node: object | null | undefined, opts?: object | null): node is FlowPredicate;
2149export function assertFlowPredicate(node: object | null | undefined, opts?: object | null): void;
2150export function isFlowType(node: object | null | undefined, opts?: object | null): node is FlowType;
2151export function assertFlowType(node: object | null | undefined, opts?: object | null): void;
2152export function isFor(node: object | null | undefined, opts?: object | null): node is For;
2153export function assertFor(node: object | null | undefined, opts?: object | null): void;
2154export function isForInStatement(node: object | null | undefined, opts?: object | null): node is ForInStatement;
2155export function assertForInStatement(node: object | null | undefined, opts?: object | null): void;
2156export function isForOfStatement(node: object | null | undefined, opts?: object | null): node is ForOfStatement;
2157export function assertForOfStatement(node: object | null | undefined, opts?: object | null): void;
2158export function isForStatement(node: object | null | undefined, opts?: object | null): node is ForStatement;
2159export function assertForStatement(node: object | null | undefined, opts?: object | null): void;
2160export function isForXStatement(node: object | null | undefined, opts?: object | null): node is ForXStatement;
2161export function assertForXStatement(node: object | null | undefined, opts?: object | null): void;
2162export function isFunction(node: object | null | undefined, opts?: object | null): node is Function;
2163export function assertFunction(node: object | null | undefined, opts?: object | null): void;
2164export function isFunctionDeclaration(node: object | null | undefined, opts?: object | null): node is FunctionDeclaration;
2165export function assertFunctionDeclaration(node: object | null | undefined, opts?: object | null): void;
2166export function isFunctionExpression(node: object | null | undefined, opts?: object | null): node is FunctionExpression;
2167export function assertFunctionExpression(node: object | null | undefined, opts?: object | null): void;
2168export function isFunctionParent(node: object | null | undefined, opts?: object | null): node is FunctionParent;
2169export function assertFunctionParent(node: object | null | undefined, opts?: object | null): void;
2170export function isFunctionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is FunctionTypeAnnotation;
2171export function assertFunctionTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2172export function isFunctionTypeParam(node: object | null | undefined, opts?: object | null): node is FunctionTypeParam;
2173export function assertFunctionTypeParam(node: object | null | undefined, opts?: object | null): void;
2174export function isGenericTypeAnnotation(node: object | null | undefined, opts?: object | null): node is GenericTypeAnnotation;
2175export function assertGenericTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2176export function isIdentifier(node: object | null | undefined, opts?: object | null): node is Identifier;
2177export function assertIdentifier(node: object | null | undefined, opts?: object | null): void;
2178export function isIfStatement(node: object | null | undefined, opts?: object | null): node is IfStatement;
2179export function assertIfStatement(node: object | null | undefined, opts?: object | null): void;
2180export function isImmutable(node: object | null | undefined, opts?: object | null): node is Immutable;
2181export function assertImmutable(node: object | null | undefined, opts?: object | null): void;
2182export function isImport(node: object | null | undefined, opts?: object | null): node is Import;
2183export function assertImport(node: object | null | undefined, opts?: object | null): void;
2184export function isImportAttribute(node: object | null | undefined, opts?: object | null): node is ImportAttribute;
2185export function assertImportAttribute(node: object | null | undefined, opts?: object | null): void;
2186export function isImportDeclaration(node: object | null | undefined, opts?: object | null): node is ImportDeclaration;
2187export function assertImportDeclaration(node: object | null | undefined, opts?: object | null): void;
2188export function isImportDefaultSpecifier(node: object | null | undefined, opts?: object | null): node is ImportDefaultSpecifier;
2189export function assertImportDefaultSpecifier(node: object | null | undefined, opts?: object | null): void;
2190export function isImportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): node is ImportNamespaceSpecifier;
2191export function assertImportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): void;
2192export function isImportSpecifier(node: object | null | undefined, opts?: object | null): node is ImportSpecifier;
2193export function assertImportSpecifier(node: object | null | undefined, opts?: object | null): void;
2194export function isIndexedAccessType(node: object | null | undefined, opts?: object | null): node is IndexedAccessType;
2195export function assertIndexedAccessType(node: object | null | undefined, opts?: object | null): void;
2196export function isInferredPredicate(node: object | null | undefined, opts?: object | null): node is InferredPredicate;
2197export function assertInferredPredicate(node: object | null | undefined, opts?: object | null): void;
2198export function isInterfaceDeclaration(node: object | null | undefined, opts?: object | null): node is InterfaceDeclaration;
2199export function assertInterfaceDeclaration(node: object | null | undefined, opts?: object | null): void;
2200export function isInterfaceExtends(node: object | null | undefined, opts?: object | null): node is InterfaceExtends;
2201export function assertInterfaceExtends(node: object | null | undefined, opts?: object | null): void;
2202export function isInterfaceTypeAnnotation(node: object | null | undefined, opts?: object | null): node is InterfaceTypeAnnotation;
2203export function assertInterfaceTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2204export function isInterpreterDirective(node: object | null | undefined, opts?: object | null): node is InterpreterDirective;
2205export function assertInterpreterDirective(node: object | null | undefined, opts?: object | null): void;
2206export function isIntersectionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is IntersectionTypeAnnotation;
2207export function assertIntersectionTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2208export function isJSX(node: object | null | undefined, opts?: object | null): node is JSX;
2209export function assertJSX(node: object | null | undefined, opts?: object | null): void;
2210export function isJSXAttribute(node: object | null | undefined, opts?: object | null): node is JSXAttribute;
2211export function assertJSXAttribute(node: object | null | undefined, opts?: object | null): void;
2212export function isJSXClosingElement(node: object | null | undefined, opts?: object | null): node is JSXClosingElement;
2213export function assertJSXClosingElement(node: object | null | undefined, opts?: object | null): void;
2214export function isJSXClosingFragment(node: object | null | undefined, opts?: object | null): node is JSXClosingFragment;
2215export function assertJSXClosingFragment(node: object | null | undefined, opts?: object | null): void;
2216export function isJSXElement(node: object | null | undefined, opts?: object | null): node is JSXElement;
2217export function assertJSXElement(node: object | null | undefined, opts?: object | null): void;
2218export function isJSXEmptyExpression(node: object | null | undefined, opts?: object | null): node is JSXEmptyExpression;
2219export function assertJSXEmptyExpression(node: object | null | undefined, opts?: object | null): void;
2220export function isJSXExpressionContainer(node: object | null | undefined, opts?: object | null): node is JSXExpressionContainer;
2221export function assertJSXExpressionContainer(node: object | null | undefined, opts?: object | null): void;
2222export function isJSXFragment(node: object | null | undefined, opts?: object | null): node is JSXFragment;
2223export function assertJSXFragment(node: object | null | undefined, opts?: object | null): void;
2224export function isJSXIdentifier(node: object | null | undefined, opts?: object | null): node is JSXIdentifier;
2225export function assertJSXIdentifier(node: object | null | undefined, opts?: object | null): void;
2226export function isJSXMemberExpression(node: object | null | undefined, opts?: object | null): node is JSXMemberExpression;
2227export function assertJSXMemberExpression(node: object | null | undefined, opts?: object | null): void;
2228export function isJSXNamespacedName(node: object | null | undefined, opts?: object | null): node is JSXNamespacedName;
2229export function assertJSXNamespacedName(node: object | null | undefined, opts?: object | null): void;
2230export function isJSXOpeningElement(node: object | null | undefined, opts?: object | null): node is JSXOpeningElement;
2231export function assertJSXOpeningElement(node: object | null | undefined, opts?: object | null): void;
2232export function isJSXOpeningFragment(node: object | null | undefined, opts?: object | null): node is JSXOpeningFragment;
2233export function assertJSXOpeningFragment(node: object | null | undefined, opts?: object | null): void;
2234export function isJSXSpreadAttribute(node: object | null | undefined, opts?: object | null): node is JSXSpreadAttribute;
2235export function assertJSXSpreadAttribute(node: object | null | undefined, opts?: object | null): void;
2236export function isJSXSpreadChild(node: object | null | undefined, opts?: object | null): node is JSXSpreadChild;
2237export function assertJSXSpreadChild(node: object | null | undefined, opts?: object | null): void;
2238export function isJSXText(node: object | null | undefined, opts?: object | null): node is JSXText;
2239export function assertJSXText(node: object | null | undefined, opts?: object | null): void;
2240export function isLVal(node: object | null | undefined, opts?: object | null): node is LVal;
2241export function assertLVal(node: object | null | undefined, opts?: object | null): void;
2242export function isLabeledStatement(node: object | null | undefined, opts?: object | null): node is LabeledStatement;
2243export function assertLabeledStatement(node: object | null | undefined, opts?: object | null): void;
2244export function isLiteral(node: object | null | undefined, opts?: object | null): node is Literal;
2245export function assertLiteral(node: object | null | undefined, opts?: object | null): void;
2246export function isLogicalExpression(node: object | null | undefined, opts?: object | null): node is LogicalExpression;
2247export function assertLogicalExpression(node: object | null | undefined, opts?: object | null): void;
2248export function isLoop(node: object | null | undefined, opts?: object | null): node is Loop;
2249export function assertLoop(node: object | null | undefined, opts?: object | null): void;
2250export function isMemberExpression(node: object | null | undefined, opts?: object | null): node is MemberExpression;
2251export function assertMemberExpression(node: object | null | undefined, opts?: object | null): void;
2252export function isMetaProperty(node: object | null | undefined, opts?: object | null): node is MetaProperty;
2253export function assertMetaProperty(node: object | null | undefined, opts?: object | null): void;
2254export function isMethod(node: object | null | undefined, opts?: object | null): node is Method;
2255export function assertMethod(node: object | null | undefined, opts?: object | null): void;
2256export function isMiscellaneous(node: object | null | undefined, opts?: object | null): node is Miscellaneous;
2257export function assertMiscellaneous(node: object | null | undefined, opts?: object | null): void;
2258export function isMixedTypeAnnotation(node: object | null | undefined, opts?: object | null): node is MixedTypeAnnotation;
2259export function assertMixedTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2260export function isModuleDeclaration(node: object | null | undefined, opts?: object | null): node is ModuleDeclaration;
2261export function assertModuleDeclaration(node: object | null | undefined, opts?: object | null): void;
2262export function isModuleExpression(node: object | null | undefined, opts?: object | null): node is ModuleExpression;
2263export function assertModuleExpression(node: object | null | undefined, opts?: object | null): void;
2264export function isModuleSpecifier(node: object | null | undefined, opts?: object | null): node is ModuleSpecifier;
2265export function assertModuleSpecifier(node: object | null | undefined, opts?: object | null): void;
2266export function isNewExpression(node: object | null | undefined, opts?: object | null): node is NewExpression;
2267export function assertNewExpression(node: object | null | undefined, opts?: object | null): void;
2268export function isNoop(node: object | null | undefined, opts?: object | null): node is Noop;
2269export function assertNoop(node: object | null | undefined, opts?: object | null): void;
2270export function isNullLiteral(node: object | null | undefined, opts?: object | null): node is NullLiteral;
2271export function assertNullLiteral(node: object | null | undefined, opts?: object | null): void;
2272export function isNullLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NullLiteralTypeAnnotation;
2273export function assertNullLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2274export function isNullableTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NullableTypeAnnotation;
2275export function assertNullableTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2276/** @deprecated Use `isNumericLiteral` */
2277export function isNumberLiteral(node: object | null | undefined, opts?: object | null): node is NumericLiteral;
2278/** @deprecated Use `assertNumericLiteral` */
2279export function assertNumberLiteral(node: object | null | undefined, opts?: object | null): void;
2280export function isNumberLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NumberLiteralTypeAnnotation;
2281export function assertNumberLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2282export function isNumberTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NumberTypeAnnotation;
2283export function assertNumberTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2284export function isNumericLiteral(node: object | null | undefined, opts?: object | null): node is NumericLiteral;
2285export function assertNumericLiteral(node: object | null | undefined, opts?: object | null): void;
2286export function isObjectExpression(node: object | null | undefined, opts?: object | null): node is ObjectExpression;
2287export function assertObjectExpression(node: object | null | undefined, opts?: object | null): void;
2288export function isObjectMember(node: object | null | undefined, opts?: object | null): node is ObjectMember;
2289export function assertObjectMember(node: object | null | undefined, opts?: object | null): void;
2290export function isObjectMethod(node: object | null | undefined, opts?: object | null): node is ObjectMethod;
2291export function assertObjectMethod(node: object | null | undefined, opts?: object | null): void;
2292export function isObjectPattern(node: object | null | undefined, opts?: object | null): node is ObjectPattern;
2293export function assertObjectPattern(node: object | null | undefined, opts?: object | null): void;
2294export function isObjectProperty(node: object | null | undefined, opts?: object | null): node is ObjectProperty;
2295export function assertObjectProperty(node: object | null | undefined, opts?: object | null): void;
2296export function isObjectTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ObjectTypeAnnotation;
2297export function assertObjectTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2298export function isObjectTypeCallProperty(node: object | null | undefined, opts?: object | null): node is ObjectTypeCallProperty;
2299export function assertObjectTypeCallProperty(node: object | null | undefined, opts?: object | null): void;
2300export function isObjectTypeIndexer(node: object | null | undefined, opts?: object | null): node is ObjectTypeIndexer;
2301export function assertObjectTypeIndexer(node: object | null | undefined, opts?: object | null): void;
2302export function isObjectTypeInternalSlot(node: object | null | undefined, opts?: object | null): node is ObjectTypeInternalSlot;
2303export function assertObjectTypeInternalSlot(node: object | null | undefined, opts?: object | null): void;
2304export function isObjectTypeProperty(node: object | null | undefined, opts?: object | null): node is ObjectTypeProperty;
2305export function assertObjectTypeProperty(node: object | null | undefined, opts?: object | null): void;
2306export function isObjectTypeSpreadProperty(node: object | null | undefined, opts?: object | null): node is ObjectTypeSpreadProperty;
2307export function assertObjectTypeSpreadProperty(node: object | null | undefined, opts?: object | null): void;
2308export function isOpaqueType(node: object | null | undefined, opts?: object | null): node is OpaqueType;
2309export function assertOpaqueType(node: object | null | undefined, opts?: object | null): void;
2310export function isOptionalCallExpression(node: object | null | undefined, opts?: object | null): node is OptionalCallExpression;
2311export function assertOptionalCallExpression(node: object | null | undefined, opts?: object | null): void;
2312export function isOptionalIndexedAccessType(node: object | null | undefined, opts?: object | null): node is OptionalIndexedAccessType;
2313export function assertOptionalIndexedAccessType(node: object | null | undefined, opts?: object | null): void;
2314export function isOptionalMemberExpression(node: object | null | undefined, opts?: object | null): node is OptionalMemberExpression;
2315export function assertOptionalMemberExpression(node: object | null | undefined, opts?: object | null): void;
2316export function isParenthesizedExpression(node: object | null | undefined, opts?: object | null): node is ParenthesizedExpression;
2317export function assertParenthesizedExpression(node: object | null | undefined, opts?: object | null): void;
2318export function isPattern(node: object | null | undefined, opts?: object | null): node is Pattern;
2319export function assertPattern(node: object | null | undefined, opts?: object | null): void;
2320export function isPatternLike(node: object | null | undefined, opts?: object | null): node is PatternLike;
2321export function assertPatternLike(node: object | null | undefined, opts?: object | null): void;
2322export function isPipelineBareFunction(node: object | null | undefined, opts?: object | null): node is PipelineBareFunction;
2323export function assertPipelineBareFunction(node: object | null | undefined, opts?: object | null): void;
2324export function isPipelinePrimaryTopicReference(node: object | null | undefined, opts?: object | null): node is PipelinePrimaryTopicReference;
2325export function assertPipelinePrimaryTopicReference(node: object | null | undefined, opts?: object | null): void;
2326export function isPipelineTopicExpression(node: object | null | undefined, opts?: object | null): node is PipelineTopicExpression;
2327export function assertPipelineTopicExpression(node: object | null | undefined, opts?: object | null): void;
2328export function isPlaceholder(node: object | null | undefined, opts?: object | null): node is Placeholder;
2329export function assertPlaceholder(node: object | null | undefined, opts?: object | null): void;
2330export function isPrivate(node: object | null | undefined, opts?: object | null): node is Private;
2331export function assertPrivate(node: object | null | undefined, opts?: object | null): void;
2332export function isPrivateName(node: object | null | undefined, opts?: object | null): node is PrivateName;
2333export function assertPrivateName(node: object | null | undefined, opts?: object | null): void;
2334export function isProgram(node: object | null | undefined, opts?: object | null): node is Program;
2335export function assertProgram(node: object | null | undefined, opts?: object | null): void;
2336export function isProperty(node: object | null | undefined, opts?: object | null): node is Property;
2337export function assertProperty(node: object | null | undefined, opts?: object | null): void;
2338export function isPureish(node: object | null | undefined, opts?: object | null): node is Pureish;
2339export function assertPureish(node: object | null | undefined, opts?: object | null): void;
2340export function isQualifiedTypeIdentifier(node: object | null | undefined, opts?: object | null): node is QualifiedTypeIdentifier;
2341export function assertQualifiedTypeIdentifier(node: object | null | undefined, opts?: object | null): void;
2342export function isRecordExpression(node: object | null | undefined, opts?: object | null): node is RecordExpression;
2343export function assertRecordExpression(node: object | null | undefined, opts?: object | null): void;
2344export function isRegExpLiteral(node: object | null | undefined, opts?: object | null): node is RegExpLiteral;
2345export function assertRegExpLiteral(node: object | null | undefined, opts?: object | null): void;
2346/** @deprecated Use `isRegExpLiteral` */
2347export function isRegexLiteral(node: object | null | undefined, opts?: object | null): node is RegExpLiteral;
2348/** @deprecated Use `assertRegExpLiteral` */
2349export function assertRegexLiteral(node: object | null | undefined, opts?: object | null): void;
2350export function isRestElement(node: object | null | undefined, opts?: object | null): node is RestElement;
2351export function assertRestElement(node: object | null | undefined, opts?: object | null): void;
2352/** @deprecated Use `isRestElement` */
2353export function isRestProperty(node: object | null | undefined, opts?: object | null): node is RestElement;
2354/** @deprecated Use `assertRestElement` */
2355export function assertRestProperty(node: object | null | undefined, opts?: object | null): void;
2356export function isReturnStatement(node: object | null | undefined, opts?: object | null): node is ReturnStatement;
2357export function assertReturnStatement(node: object | null | undefined, opts?: object | null): void;
2358export function isScopable(node: object | null | undefined, opts?: object | null): node is Scopable;
2359export function assertScopable(node: object | null | undefined, opts?: object | null): void;
2360export function isSequenceExpression(node: object | null | undefined, opts?: object | null): node is SequenceExpression;
2361export function assertSequenceExpression(node: object | null | undefined, opts?: object | null): void;
2362export function isSpreadElement(node: object | null | undefined, opts?: object | null): node is SpreadElement;
2363export function assertSpreadElement(node: object | null | undefined, opts?: object | null): void;
2364/** @deprecated Use `isSpreadElement` */
2365export function isSpreadProperty(node: object | null | undefined, opts?: object | null): node is SpreadElement;
2366/** @deprecated Use `assertSpreadElement` */
2367export function assertSpreadProperty(node: object | null | undefined, opts?: object | null): void;
2368export function isStandardized(node: object | null | undefined, opts?: object | null): node is Standardized;
2369export function assertStandardized(node: object | null | undefined, opts?: object | null): void;
2370export function isStatement(node: object | null | undefined, opts?: object | null): node is Statement;
2371export function assertStatement(node: object | null | undefined, opts?: object | null): void;
2372export function isStaticBlock(node: object | null | undefined, opts?: object | null): node is StaticBlock;
2373export function assertStaticBlock(node: object | null | undefined, opts?: object | null): void;
2374export function isStringLiteral(node: object | null | undefined, opts?: object | null): node is StringLiteral;
2375export function assertStringLiteral(node: object | null | undefined, opts?: object | null): void;
2376export function isStringLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is StringLiteralTypeAnnotation;
2377export function assertStringLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2378export function isStringTypeAnnotation(node: object | null | undefined, opts?: object | null): node is StringTypeAnnotation;
2379export function assertStringTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2380export function isSuper(node: object | null | undefined, opts?: object | null): node is Super;
2381export function assertSuper(node: object | null | undefined, opts?: object | null): void;
2382export function isSwitchCase(node: object | null | undefined, opts?: object | null): node is SwitchCase;
2383export function assertSwitchCase(node: object | null | undefined, opts?: object | null): void;
2384export function isSwitchStatement(node: object | null | undefined, opts?: object | null): node is SwitchStatement;
2385export function assertSwitchStatement(node: object | null | undefined, opts?: object | null): void;
2386export function isSymbolTypeAnnotation(node: object | null | undefined, opts?: object | null): node is SymbolTypeAnnotation;
2387export function assertSymbolTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2388export function isTSAnyKeyword(node: object | null | undefined, opts?: object | null): node is TSAnyKeyword;
2389export function assertTSAnyKeyword(node: object | null | undefined, opts?: object | null): void;
2390export function isTSArrayType(node: object | null | undefined, opts?: object | null): node is TSArrayType;
2391export function assertTSArrayType(node: object | null | undefined, opts?: object | null): void;
2392export function isTSAsExpression(node: object | null | undefined, opts?: object | null): node is TSAsExpression;
2393export function assertTSAsExpression(node: object | null | undefined, opts?: object | null): void;
2394export function isTSBaseType(node: object | null | undefined, opts?: object | null): node is TSBaseType;
2395export function assertTSBaseType(node: object | null | undefined, opts?: object | null): void;
2396export function isTSBigIntKeyword(node: object | null | undefined, opts?: object | null): node is TSBigIntKeyword;
2397export function assertTSBigIntKeyword(node: object | null | undefined, opts?: object | null): void;
2398export function isTSBooleanKeyword(node: object | null | undefined, opts?: object | null): node is TSBooleanKeyword;
2399export function assertTSBooleanKeyword(node: object | null | undefined, opts?: object | null): void;
2400export function isTSCallSignatureDeclaration(node: object | null | undefined, opts?: object | null): node is TSCallSignatureDeclaration;
2401export function assertTSCallSignatureDeclaration(node: object | null | undefined, opts?: object | null): void;
2402export function isTSConditionalType(node: object | null | undefined, opts?: object | null): node is TSConditionalType;
2403export function assertTSConditionalType(node: object | null | undefined, opts?: object | null): void;
2404export function isTSConstructSignatureDeclaration(node: object | null | undefined, opts?: object | null): node is TSConstructSignatureDeclaration;
2405export function assertTSConstructSignatureDeclaration(node: object | null | undefined, opts?: object | null): void;
2406export function isTSConstructorType(node: object | null | undefined, opts?: object | null): node is TSConstructorType;
2407export function assertTSConstructorType(node: object | null | undefined, opts?: object | null): void;
2408export function isTSDeclareFunction(node: object | null | undefined, opts?: object | null): node is TSDeclareFunction;
2409export function assertTSDeclareFunction(node: object | null | undefined, opts?: object | null): void;
2410export function isTSDeclareMethod(node: object | null | undefined, opts?: object | null): node is TSDeclareMethod;
2411export function assertTSDeclareMethod(node: object | null | undefined, opts?: object | null): void;
2412export function isTSEntityName(node: object | null | undefined, opts?: object | null): node is TSEntityName;
2413export function assertTSEntityName(node: object | null | undefined, opts?: object | null): void;
2414export function isTSEnumDeclaration(node: object | null | undefined, opts?: object | null): node is TSEnumDeclaration;
2415export function assertTSEnumDeclaration(node: object | null | undefined, opts?: object | null): void;
2416export function isTSEnumMember(node: object | null | undefined, opts?: object | null): node is TSEnumMember;
2417export function assertTSEnumMember(node: object | null | undefined, opts?: object | null): void;
2418export function isTSExportAssignment(node: object | null | undefined, opts?: object | null): node is TSExportAssignment;
2419export function assertTSExportAssignment(node: object | null | undefined, opts?: object | null): void;
2420export function isTSExpressionWithTypeArguments(node: object | null | undefined, opts?: object | null): node is TSExpressionWithTypeArguments;
2421export function assertTSExpressionWithTypeArguments(node: object | null | undefined, opts?: object | null): void;
2422export function isTSExternalModuleReference(node: object | null | undefined, opts?: object | null): node is TSExternalModuleReference;
2423export function assertTSExternalModuleReference(node: object | null | undefined, opts?: object | null): void;
2424export function isTSFunctionType(node: object | null | undefined, opts?: object | null): node is TSFunctionType;
2425export function assertTSFunctionType(node: object | null | undefined, opts?: object | null): void;
2426export function isTSImportEqualsDeclaration(node: object | null | undefined, opts?: object | null): node is TSImportEqualsDeclaration;
2427export function assertTSImportEqualsDeclaration(node: object | null | undefined, opts?: object | null): void;
2428export function isTSImportType(node: object | null | undefined, opts?: object | null): node is TSImportType;
2429export function assertTSImportType(node: object | null | undefined, opts?: object | null): void;
2430export function isTSIndexSignature(node: object | null | undefined, opts?: object | null): node is TSIndexSignature;
2431export function assertTSIndexSignature(node: object | null | undefined, opts?: object | null): void;
2432export function isTSIndexedAccessType(node: object | null | undefined, opts?: object | null): node is TSIndexedAccessType;
2433export function assertTSIndexedAccessType(node: object | null | undefined, opts?: object | null): void;
2434export function isTSInferType(node: object | null | undefined, opts?: object | null): node is TSInferType;
2435export function assertTSInferType(node: object | null | undefined, opts?: object | null): void;
2436export function isTSInterfaceBody(node: object | null | undefined, opts?: object | null): node is TSInterfaceBody;
2437export function assertTSInterfaceBody(node: object | null | undefined, opts?: object | null): void;
2438export function isTSInterfaceDeclaration(node: object | null | undefined, opts?: object | null): node is TSInterfaceDeclaration;
2439export function assertTSInterfaceDeclaration(node: object | null | undefined, opts?: object | null): void;
2440export function isTSIntersectionType(node: object | null | undefined, opts?: object | null): node is TSIntersectionType;
2441export function assertTSIntersectionType(node: object | null | undefined, opts?: object | null): void;
2442export function isTSIntrinsicKeyword(node: object | null | undefined, opts?: object | null): node is TSIntrinsicKeyword;
2443export function assertTSIntrinsicKeyword(node: object | null | undefined, opts?: object | null): void;
2444export function isTSLiteralType(node: object | null | undefined, opts?: object | null): node is TSLiteralType;
2445export function assertTSLiteralType(node: object | null | undefined, opts?: object | null): void;
2446export function isTSMappedType(node: object | null | undefined, opts?: object | null): node is TSMappedType;
2447export function assertTSMappedType(node: object | null | undefined, opts?: object | null): void;
2448export function isTSMethodSignature(node: object | null | undefined, opts?: object | null): node is TSMethodSignature;
2449export function assertTSMethodSignature(node: object | null | undefined, opts?: object | null): void;
2450export function isTSModuleBlock(node: object | null | undefined, opts?: object | null): node is TSModuleBlock;
2451export function assertTSModuleBlock(node: object | null | undefined, opts?: object | null): void;
2452export function isTSModuleDeclaration(node: object | null | undefined, opts?: object | null): node is TSModuleDeclaration;
2453export function assertTSModuleDeclaration(node: object | null | undefined, opts?: object | null): void;
2454export function isTSNamedTupleMember(node: object | null | undefined, opts?: object | null): node is TSNamedTupleMember;
2455export function assertTSNamedTupleMember(node: object | null | undefined, opts?: object | null): void;
2456export function isTSNamespaceExportDeclaration(node: object | null | undefined, opts?: object | null): node is TSNamespaceExportDeclaration;
2457export function assertTSNamespaceExportDeclaration(node: object | null | undefined, opts?: object | null): void;
2458export function isTSNeverKeyword(node: object | null | undefined, opts?: object | null): node is TSNeverKeyword;
2459export function assertTSNeverKeyword(node: object | null | undefined, opts?: object | null): void;
2460export function isTSNonNullExpression(node: object | null | undefined, opts?: object | null): node is TSNonNullExpression;
2461export function assertTSNonNullExpression(node: object | null | undefined, opts?: object | null): void;
2462export function isTSNullKeyword(node: object | null | undefined, opts?: object | null): node is TSNullKeyword;
2463export function assertTSNullKeyword(node: object | null | undefined, opts?: object | null): void;
2464export function isTSNumberKeyword(node: object | null | undefined, opts?: object | null): node is TSNumberKeyword;
2465export function assertTSNumberKeyword(node: object | null | undefined, opts?: object | null): void;
2466export function isTSObjectKeyword(node: object | null | undefined, opts?: object | null): node is TSObjectKeyword;
2467export function assertTSObjectKeyword(node: object | null | undefined, opts?: object | null): void;
2468export function isTSOptionalType(node: object | null | undefined, opts?: object | null): node is TSOptionalType;
2469export function assertTSOptionalType(node: object | null | undefined, opts?: object | null): void;
2470export function isTSParameterProperty(node: object | null | undefined, opts?: object | null): node is TSParameterProperty;
2471export function assertTSParameterProperty(node: object | null | undefined, opts?: object | null): void;
2472export function isTSParenthesizedType(node: object | null | undefined, opts?: object | null): node is TSParenthesizedType;
2473export function assertTSParenthesizedType(node: object | null | undefined, opts?: object | null): void;
2474export function isTSPropertySignature(node: object | null | undefined, opts?: object | null): node is TSPropertySignature;
2475export function assertTSPropertySignature(node: object | null | undefined, opts?: object | null): void;
2476export function isTSQualifiedName(node: object | null | undefined, opts?: object | null): node is TSQualifiedName;
2477export function assertTSQualifiedName(node: object | null | undefined, opts?: object | null): void;
2478export function isTSRestType(node: object | null | undefined, opts?: object | null): node is TSRestType;
2479export function assertTSRestType(node: object | null | undefined, opts?: object | null): void;
2480export function isTSStringKeyword(node: object | null | undefined, opts?: object | null): node is TSStringKeyword;
2481export function assertTSStringKeyword(node: object | null | undefined, opts?: object | null): void;
2482export function isTSSymbolKeyword(node: object | null | undefined, opts?: object | null): node is TSSymbolKeyword;
2483export function assertTSSymbolKeyword(node: object | null | undefined, opts?: object | null): void;
2484export function isTSThisType(node: object | null | undefined, opts?: object | null): node is TSThisType;
2485export function assertTSThisType(node: object | null | undefined, opts?: object | null): void;
2486export function isTSTupleType(node: object | null | undefined, opts?: object | null): node is TSTupleType;
2487export function assertTSTupleType(node: object | null | undefined, opts?: object | null): void;
2488export function isTSType(node: object | null | undefined, opts?: object | null): node is TSType;
2489export function assertTSType(node: object | null | undefined, opts?: object | null): void;
2490export function isTSTypeAliasDeclaration(node: object | null | undefined, opts?: object | null): node is TSTypeAliasDeclaration;
2491export function assertTSTypeAliasDeclaration(node: object | null | undefined, opts?: object | null): void;
2492export function isTSTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TSTypeAnnotation;
2493export function assertTSTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2494export function isTSTypeAssertion(node: object | null | undefined, opts?: object | null): node is TSTypeAssertion;
2495export function assertTSTypeAssertion(node: object | null | undefined, opts?: object | null): void;
2496export function isTSTypeElement(node: object | null | undefined, opts?: object | null): node is TSTypeElement;
2497export function assertTSTypeElement(node: object | null | undefined, opts?: object | null): void;
2498export function isTSTypeLiteral(node: object | null | undefined, opts?: object | null): node is TSTypeLiteral;
2499export function assertTSTypeLiteral(node: object | null | undefined, opts?: object | null): void;
2500export function isTSTypeOperator(node: object | null | undefined, opts?: object | null): node is TSTypeOperator;
2501export function assertTSTypeOperator(node: object | null | undefined, opts?: object | null): void;
2502export function isTSTypeParameter(node: object | null | undefined, opts?: object | null): node is TSTypeParameter;
2503export function assertTSTypeParameter(node: object | null | undefined, opts?: object | null): void;
2504export function isTSTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): node is TSTypeParameterDeclaration;
2505export function assertTSTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): void;
2506export function isTSTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): node is TSTypeParameterInstantiation;
2507export function assertTSTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): void;
2508export function isTSTypePredicate(node: object | null | undefined, opts?: object | null): node is TSTypePredicate;
2509export function assertTSTypePredicate(node: object | null | undefined, opts?: object | null): void;
2510export function isTSTypeQuery(node: object | null | undefined, opts?: object | null): node is TSTypeQuery;
2511export function assertTSTypeQuery(node: object | null | undefined, opts?: object | null): void;
2512export function isTSTypeReference(node: object | null | undefined, opts?: object | null): node is TSTypeReference;
2513export function assertTSTypeReference(node: object | null | undefined, opts?: object | null): void;
2514export function isTSUndefinedKeyword(node: object | null | undefined, opts?: object | null): node is TSUndefinedKeyword;
2515export function assertTSUndefinedKeyword(node: object | null | undefined, opts?: object | null): void;
2516export function isTSUnionType(node: object | null | undefined, opts?: object | null): node is TSUnionType;
2517export function assertTSUnionType(node: object | null | undefined, opts?: object | null): void;
2518export function isTSUnknownKeyword(node: object | null | undefined, opts?: object | null): node is TSUnknownKeyword;
2519export function assertTSUnknownKeyword(node: object | null | undefined, opts?: object | null): void;
2520export function isTSVoidKeyword(node: object | null | undefined, opts?: object | null): node is TSVoidKeyword;
2521export function assertTSVoidKeyword(node: object | null | undefined, opts?: object | null): void;
2522export function isTaggedTemplateExpression(node: object | null | undefined, opts?: object | null): node is TaggedTemplateExpression;
2523export function assertTaggedTemplateExpression(node: object | null | undefined, opts?: object | null): void;
2524export function isTemplateElement(node: object | null | undefined, opts?: object | null): node is TemplateElement;
2525export function assertTemplateElement(node: object | null | undefined, opts?: object | null): void;
2526export function isTemplateLiteral(node: object | null | undefined, opts?: object | null): node is TemplateLiteral;
2527export function assertTemplateLiteral(node: object | null | undefined, opts?: object | null): void;
2528export function isTerminatorless(node: object | null | undefined, opts?: object | null): node is Terminatorless;
2529export function assertTerminatorless(node: object | null | undefined, opts?: object | null): void;
2530export function isThisExpression(node: object | null | undefined, opts?: object | null): node is ThisExpression;
2531export function assertThisExpression(node: object | null | undefined, opts?: object | null): void;
2532export function isThisTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ThisTypeAnnotation;
2533export function assertThisTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2534export function isThrowStatement(node: object | null | undefined, opts?: object | null): node is ThrowStatement;
2535export function assertThrowStatement(node: object | null | undefined, opts?: object | null): void;
2536export function isTopicReference(node: object | null | undefined, opts?: object | null): node is TopicReference;
2537export function assertTopicReference(node: object | null | undefined, opts?: object | null): void;
2538export function isTryStatement(node: object | null | undefined, opts?: object | null): node is TryStatement;
2539export function assertTryStatement(node: object | null | undefined, opts?: object | null): void;
2540export function isTupleExpression(node: object | null | undefined, opts?: object | null): node is TupleExpression;
2541export function assertTupleExpression(node: object | null | undefined, opts?: object | null): void;
2542export function isTupleTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TupleTypeAnnotation;
2543export function assertTupleTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2544export function isTypeAlias(node: object | null | undefined, opts?: object | null): node is TypeAlias;
2545export function assertTypeAlias(node: object | null | undefined, opts?: object | null): void;
2546export function isTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TypeAnnotation;
2547export function assertTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2548export function isTypeCastExpression(node: object | null | undefined, opts?: object | null): node is TypeCastExpression;
2549export function assertTypeCastExpression(node: object | null | undefined, opts?: object | null): void;
2550export function isTypeParameter(node: object | null | undefined, opts?: object | null): node is TypeParameter;
2551export function assertTypeParameter(node: object | null | undefined, opts?: object | null): void;
2552export function isTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): node is TypeParameterDeclaration;
2553export function assertTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): void;
2554export function isTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): node is TypeParameterInstantiation;
2555export function assertTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): void;
2556export function isTypeScript(node: object | null | undefined, opts?: object | null): node is TypeScript;
2557export function assertTypeScript(node: object | null | undefined, opts?: object | null): void;
2558export function isTypeofTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TypeofTypeAnnotation;
2559export function assertTypeofTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2560export function isUnaryExpression(node: object | null | undefined, opts?: object | null): node is UnaryExpression;
2561export function assertUnaryExpression(node: object | null | undefined, opts?: object | null): void;
2562export function isUnaryLike(node: object | null | undefined, opts?: object | null): node is UnaryLike;
2563export function assertUnaryLike(node: object | null | undefined, opts?: object | null): void;
2564export function isUnionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is UnionTypeAnnotation;
2565export function assertUnionTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2566export function isUpdateExpression(node: object | null | undefined, opts?: object | null): node is UpdateExpression;
2567export function assertUpdateExpression(node: object | null | undefined, opts?: object | null): void;
2568export function isUserWhitespacable(node: object | null | undefined, opts?: object | null): node is UserWhitespacable;
2569export function assertUserWhitespacable(node: object | null | undefined, opts?: object | null): void;
2570export function isV8IntrinsicIdentifier(node: object | null | undefined, opts?: object | null): node is V8IntrinsicIdentifier;
2571export function assertV8IntrinsicIdentifier(node: object | null | undefined, opts?: object | null): void;
2572export function isVariableDeclaration(node: object | null | undefined, opts?: object | null): node is VariableDeclaration;
2573export function assertVariableDeclaration(node: object | null | undefined, opts?: object | null): void;
2574export function isVariableDeclarator(node: object | null | undefined, opts?: object | null): node is VariableDeclarator;
2575export function assertVariableDeclarator(node: object | null | undefined, opts?: object | null): void;
2576export function isVariance(node: object | null | undefined, opts?: object | null): node is Variance;
2577export function assertVariance(node: object | null | undefined, opts?: object | null): void;
2578export function isVoidTypeAnnotation(node: object | null | undefined, opts?: object | null): node is VoidTypeAnnotation;
2579export function assertVoidTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2580export function isWhile(node: object | null | undefined, opts?: object | null): node is While;
2581export function assertWhile(node: object | null | undefined, opts?: object | null): void;
2582export function isWhileStatement(node: object | null | undefined, opts?: object | null): node is WhileStatement;
2583export function assertWhileStatement(node: object | null | undefined, opts?: object | null): void;
2584export function isWithStatement(node: object | null | undefined, opts?: object | null): node is WithStatement;
2585export function assertWithStatement(node: object | null | undefined, opts?: object | null): void;
2586export function isYieldExpression(node: object | null | undefined, opts?: object | null): node is YieldExpression;
2587export function assertYieldExpression(node: object | null | undefined, opts?: object | null): void;
2588export function assertNode(obj: any): void
2589export function createTypeAnnotationBasedOnTypeof(type: 'string' | 'number' | 'undefined' | 'boolean' | 'function' | 'object' | 'symbol'): StringTypeAnnotation | VoidTypeAnnotation | NumberTypeAnnotation | BooleanTypeAnnotation | GenericTypeAnnotation
2590export function createUnionTypeAnnotation<T extends FlowType>(types: [T]): T
2591export function createFlowUnionType<T extends FlowType>(types: [T]): T
2592export function createUnionTypeAnnotation(types: ReadonlyArray<FlowType>): UnionTypeAnnotation
2593export function createFlowUnionType(types: ReadonlyArray<FlowType>): UnionTypeAnnotation
2594export function buildChildren(node: { children: ReadonlyArray<JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment | JSXEmptyExpression> }): JSXElement['children']
2595export function clone<T extends Node>(n: T): T;
2596export function cloneDeep<T extends Node>(n: T): T;
2597export function cloneDeepWithoutLoc<T extends Node>(n: T): T;
2598export function cloneNode<T extends Node>(n: T, deep?: boolean, withoutLoc?: boolean): T;
2599export function cloneWithoutLoc<T extends Node>(n: T): T;
2600export type CommentTypeShorthand = 'leading' | 'inner' | 'trailing'
2601export function addComment<T extends Node>(node: T, type: CommentTypeShorthand, content: string, line?: boolean): T
2602export function addComments<T extends Node>(node: T, type: CommentTypeShorthand, comments: ReadonlyArray<Comment>): T
2603export function inheritInnerComments(node: Node, parent: Node): void
2604export function inheritLeadingComments(node: Node, parent: Node): void
2605export function inheritsComments<T extends Node>(node: T, parent: Node): void
2606export function inheritTrailingComments(node: Node, parent: Node): void
2607export function removeComments<T extends Node>(node: T): T
2608export function ensureBlock(node: Extract<Node, { body: BlockStatement | Statement | Expression }>): BlockStatement
2609export function ensureBlock<K extends keyof Extract<Node, { body: BlockStatement | Statement | Expression }> = 'body'>(node: Extract<Node, Record<K, BlockStatement | Statement | Expression>>, key: K): BlockStatement
2610export function toBindingIdentifierName(name: { toString(): string } | null | undefined): string
2611export function toBlock(node: Statement | Expression, parent?: Function | null): BlockStatement
2612export function toComputedKey<T extends Extract<Node, { computed: boolean | null }>>(node: T, key?: Expression | Identifier): Expression
2613export function toExpression(node: Function): FunctionExpression
2614export function toExpression(node: Class): ClassExpression
2615export function toExpression(node: ExpressionStatement | Expression | Class | Function): Expression
2616export function toIdentifier(name: { toString(): string } | null | undefined): string
2617export function toKeyAlias(node: Method | Property, key?: Node): string
2618export function toSequenceExpression(nodes: ReadonlyArray<Node>, scope: { push(value: { id: LVal; kind: 'var'; init?: Expression}): void; buildUndefinedNode(): Node }): SequenceExpression | undefined
2619export function toStatement(node: AssignmentExpression, ignore?: boolean): ExpressionStatement
2620export function toStatement(node: Statement | AssignmentExpression, ignore?: boolean): Statement
2621export function toStatement(node: Class, ignore: true): ClassDeclaration | undefined
2622export function toStatement(node: Class, ignore?: boolean): ClassDeclaration
2623export function toStatement(node: Function, ignore: true): FunctionDeclaration | undefined
2624export function toStatement(node: Function, ignore?: boolean): FunctionDeclaration
2625export function toStatement(node: Statement | Class | Function | AssignmentExpression, ignore: true): Statement | undefined
2626export function toStatement(node: Statement | Class | Function | AssignmentExpression, ignore?: boolean): Statement
2627export function valueToNode(value: undefined): Identifier
2628export function valueToNode(value: boolean): BooleanLiteral
2629export function valueToNode(value: null): NullLiteral
2630export function valueToNode(value: string): StringLiteral
2631export function valueToNode(value: number): NumericLiteral | BinaryExpression | UnaryExpression
2632export function valueToNode(value: RegExp): RegExpLiteral
2633export function valueToNode(value: ReadonlyArray<undefined | boolean | null | string | number | RegExp | object>): ArrayExpression
2634export function valueToNode(value: object): ObjectExpression
2635export function valueToNode(value: undefined | boolean | null | string | number | RegExp | object): Expression
2636export function removeTypeDuplicates(types: ReadonlyArray<FlowType | false | null | undefined>): FlowType[]
2637export function appendToMemberExpression<T extends Pick<MemberExpression, 'object' | 'property'>>(member: T, append: MemberExpression['property'], computed?: boolean): T
2638export function inherits<T extends Node | null | undefined>(child: T, parent: Node | null | undefined): T
2639export function prependToMemberExpression<T extends Pick<MemberExpression, 'object' | 'property'>>(member: T, prepend: MemberExpression['object']): T
2640export function removeProperties(
2641 n: Node,
2642 opts?: { preserveComments: boolean } | null
2643): void;
2644export function removePropertiesDeep<T extends Node>(
2645 n: T,
2646 opts?: { preserveComments: boolean } | null
2647): T;
2648export function getBindingIdentifiers(node: Node, duplicates: true, outerOnly?: boolean): Record<string, Array<Identifier>>
2649export function getBindingIdentifiers(node: Node, duplicates?: false, outerOnly?: boolean): Record<string, Identifier>
2650export function getBindingIdentifiers(node: Node, duplicates: boolean, outerOnly?: boolean): Record<string, Identifier | Array<Identifier>>
2651export function getOuterBindingIdentifiers(node: Node, duplicates: true): Record<string, Array<Identifier>>
2652export function getOuterBindingIdentifiers(node: Node, duplicates?: false): Record<string, Identifier>
2653export function getOuterBindingIdentifiers(node: Node, duplicates: boolean): Record<string, Identifier | Array<Identifier>>
2654export type TraversalAncestors = ReadonlyArray<{
2655 node: Node,
2656 key: string,
2657 index?: number,
2658}>;
2659export type TraversalHandler<T> = (
2660 this: undefined, node: Node, parent: TraversalAncestors, type: T
2661) => void;
2662export type TraversalHandlers<T> = {
2663 enter?: TraversalHandler<T>,
2664 exit?: TraversalHandler<T>,
2665};
2666export function traverse<T>(n: Node, h: TraversalHandler<T> | TraversalHandlers<T>, state?: T): void;
2667export function traverseFast<T>(n: Node, h: TraversalHandler<T>, state?: T): void;
2668export function shallowEqual<T extends object>(actual: object, expected: T): actual is T
2669export function buildMatchMemberExpression(match: string, allowPartial?: boolean): (node: Node | null | undefined) => node is MemberExpression
2670export function is<T extends Node['type']>(type: T, n: Node | null | undefined, required?: undefined): n is Extract<Node, { type: T }>
2671export function is<T extends Node['type'], P extends Extract<Node, { type: T }>>(type: T, n: Node | null | undefined, required: Partial<P>): n is P
2672export function is<P extends Node>(type: string, n: Node | null | undefined, required: Partial<P>): n is P
2673export function is(type: string, n: Node | null | undefined, required?: Partial<Node>): n is Node
2674export function isBinding(node: Node, parent: Node, grandparent?: Node): boolean
2675export function isBlockScoped(node: Node): node is FunctionDeclaration | ClassDeclaration | VariableDeclaration
2676export function isImmutable(node: Node): node is Immutable
2677export function isLet(node: Node): node is VariableDeclaration
2678export function isNode(node: object | null | undefined): node is Node
2679export function isNodesEquivalent<T extends Partial<Node>>(a: T, b: any): b is T
2680export function isNodesEquivalent(a: any, b: any): boolean
2681export function isPlaceholderType(placeholderType: Node['type'], targetType: Node['type']): boolean
2682export function isReferenced(node: Node, parent: Node, grandparent?: Node): boolean
2683export function isScope(node: Node, parent: Node): node is Scopable
2684export function isSpecifierDefault(specifier: ModuleSpecifier): boolean
2685export function isType<T extends Node['type']>(nodetype: string, targetType: T): nodetype is T
2686export function isType(nodetype: string | null | undefined, targetType: string): boolean
2687export function isValidES3Identifier(name: string): boolean
2688export function isValidIdentifier(name: string): boolean
2689export function isVar(node: Node): node is VariableDeclaration
2690export function matchesPattern(node: Node | null | undefined, match: string | ReadonlyArray<string>, allowPartial?: boolean): node is MemberExpression
2691export function validate<T extends Node, K extends keyof T>(n: Node | null | undefined, key: K, value: T[K]): void;
2692export function validate(n: Node, key: string, value: any): void;
Note: See TracBrowser for help on using the repository browser.