UNPKG

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