source: trip-planner-front/node_modules/@babel/types/lib/index-legacy.d.ts@ 59329aa

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

initial commit

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