ast-types 0.13.4 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/.github/workflows/main.yml +1 -1
  2. package/README.md +1 -1
  3. package/def/babel-core.js +20 -59
  4. package/def/babel.js +15 -2
  5. package/def/core.js +8 -8
  6. package/def/es-proposals.js +49 -20
  7. package/def/{es7.d.ts → es2016.d.ts} +0 -0
  8. package/def/es2016.js +14 -0
  9. package/def/es2017.d.ts +2 -0
  10. package/def/es2017.js +20 -0
  11. package/def/es2018.d.ts +2 -0
  12. package/def/{es7.js → es2018.js} +13 -13
  13. package/def/es2019.d.ts +2 -0
  14. package/def/es2019.js +17 -0
  15. package/def/es2020.js +36 -3
  16. package/def/es2021.d.ts +2 -0
  17. package/def/es2021.js +13 -0
  18. package/def/es2022.d.ts +2 -0
  19. package/def/es2022.js +16 -0
  20. package/def/es6.js +48 -22
  21. package/def/esprima.js +4 -4
  22. package/def/flow.js +85 -17
  23. package/def/jsx.js +27 -22
  24. package/def/operators/core.d.ts +5 -0
  25. package/def/operators/core.js +25 -0
  26. package/def/operators/es2016.d.ts +5 -0
  27. package/def/operators/es2016.js +19 -0
  28. package/def/operators/es2020.d.ts +5 -0
  29. package/def/operators/es2020.js +15 -0
  30. package/def/operators/es2021.d.ts +5 -0
  31. package/def/operators/es2021.js +18 -0
  32. package/def/type-annotations.js +2 -2
  33. package/def/typescript.js +11 -4
  34. package/fork.js +5 -5
  35. package/gen/builders.d.ts +489 -258
  36. package/gen/kinds.d.ts +61 -36
  37. package/gen/namedTypes.d.ts +334 -166
  38. package/gen/visitor.d.ts +47 -22
  39. package/lib/equiv.js +1 -1
  40. package/lib/node-path.js +3 -3
  41. package/lib/path-visitor.js +2 -2
  42. package/lib/path.d.ts +3 -3
  43. package/lib/path.js +1 -1
  44. package/lib/scope.d.ts +3 -2
  45. package/lib/scope.js +63 -26
  46. package/lib/shared.js +1 -1
  47. package/lib/types.js +6 -6
  48. package/main.js +9 -19
  49. package/package.json +15 -15
package/gen/builders.d.ts CHANGED
@@ -210,7 +210,7 @@ export interface DebuggerStatementBuilder {
210
210
  }): namedTypes.DebuggerStatement;
211
211
  }
212
212
  export interface FunctionDeclarationBuilder {
213
- (id: K.IdentifierKind, params: K.PatternKind[], body: K.BlockStatementKind, generator?: boolean, expression?: boolean): namedTypes.FunctionDeclaration;
213
+ (id: K.IdentifierKind | null, params: K.PatternKind[], body: K.BlockStatementKind, generator?: boolean, expression?: boolean): namedTypes.FunctionDeclaration;
214
214
  from(params: {
215
215
  async?: boolean;
216
216
  body: K.BlockStatementKind;
@@ -218,9 +218,10 @@ export interface FunctionDeclarationBuilder {
218
218
  defaults?: (K.ExpressionKind | null)[];
219
219
  expression?: boolean;
220
220
  generator?: boolean;
221
- id: K.IdentifierKind;
221
+ id: K.IdentifierKind | null;
222
222
  loc?: K.SourceLocationKind | null;
223
223
  params: K.PatternKind[];
224
+ predicate?: K.FlowPredicateKind | null;
224
225
  rest?: K.IdentifierKind | null;
225
226
  returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
226
227
  typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
@@ -238,6 +239,7 @@ export interface FunctionExpressionBuilder {
238
239
  id?: K.IdentifierKind | null;
239
240
  loc?: K.SourceLocationKind | null;
240
241
  params: K.PatternKind[];
242
+ predicate?: K.FlowPredicateKind | null;
241
243
  rest?: K.IdentifierKind | null;
242
244
  returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
243
245
  typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
@@ -320,22 +322,22 @@ export interface UnaryExpressionBuilder {
320
322
  }): namedTypes.UnaryExpression;
321
323
  }
322
324
  export interface BinaryExpressionBuilder {
323
- (operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "in" | "instanceof", left: K.ExpressionKind, right: K.ExpressionKind): namedTypes.BinaryExpression;
325
+ (operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "&" | "|" | "^" | "in" | "instanceof" | "**", left: K.ExpressionKind, right: K.ExpressionKind): namedTypes.BinaryExpression;
324
326
  from(params: {
325
327
  comments?: K.CommentKind[] | null;
326
328
  left: K.ExpressionKind;
327
329
  loc?: K.SourceLocationKind | null;
328
- operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "in" | "instanceof";
330
+ operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "&" | "|" | "^" | "in" | "instanceof" | "**";
329
331
  right: K.ExpressionKind;
330
332
  }): namedTypes.BinaryExpression;
331
333
  }
332
334
  export interface AssignmentExpressionBuilder {
333
- (operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=", left: K.PatternKind | K.MemberExpressionKind, right: K.ExpressionKind): namedTypes.AssignmentExpression;
335
+ (operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "**=" | "||=" | "&&=" | "??=", left: K.PatternKind | K.MemberExpressionKind, right: K.ExpressionKind): namedTypes.AssignmentExpression;
334
336
  from(params: {
335
337
  comments?: K.CommentKind[] | null;
336
338
  left: K.PatternKind | K.MemberExpressionKind;
337
339
  loc?: K.SourceLocationKind | null;
338
- operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=";
340
+ operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "**=" | "||=" | "&&=" | "??=";
339
341
  right: K.ExpressionKind;
340
342
  }): namedTypes.AssignmentExpression;
341
343
  }
@@ -346,6 +348,7 @@ export interface MemberExpressionBuilder {
346
348
  computed?: boolean;
347
349
  loc?: K.SourceLocationKind | null;
348
350
  object: K.ExpressionKind;
351
+ optional?: boolean;
349
352
  property: K.IdentifierKind | K.ExpressionKind;
350
353
  }): namedTypes.MemberExpression;
351
354
  }
@@ -396,6 +399,7 @@ export interface CallExpressionBuilder {
396
399
  callee: K.ExpressionKind;
397
400
  comments?: K.CommentKind[] | null;
398
401
  loc?: K.SourceLocationKind | null;
402
+ optional?: boolean;
399
403
  typeArguments?: null | K.TypeParameterInstantiationKind;
400
404
  }): namedTypes.CallExpression;
401
405
  }
@@ -444,6 +448,7 @@ export interface ArrowFunctionExpressionBuilder {
444
448
  id?: null;
445
449
  loc?: K.SourceLocationKind | null;
446
450
  params: K.PatternKind[];
451
+ predicate?: K.FlowPredicateKind | null;
447
452
  rest?: K.IdentifierKind | null;
448
453
  returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
449
454
  typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
@@ -452,6 +457,7 @@ export interface ArrowFunctionExpressionBuilder {
452
457
  export interface ForOfStatementBuilder {
453
458
  (left: K.VariableDeclarationKind | K.PatternKind, right: K.ExpressionKind, body: K.StatementKind): namedTypes.ForOfStatement;
454
459
  from(params: {
460
+ await?: boolean;
455
461
  body: K.StatementKind;
456
462
  comments?: K.CommentKind[] | null;
457
463
  left: K.VariableDeclarationKind | K.PatternKind;
@@ -538,19 +544,6 @@ export interface ArrayPatternBuilder {
538
544
  loc?: K.SourceLocationKind | null;
539
545
  }): namedTypes.ArrayPattern;
540
546
  }
541
- export interface MethodDefinitionBuilder {
542
- (kind: "constructor" | "method" | "get" | "set", key: K.ExpressionKind, value: K.FunctionKind, staticParam?: boolean): namedTypes.MethodDefinition;
543
- from(params: {
544
- comments?: K.CommentKind[] | null;
545
- computed?: boolean;
546
- decorators?: K.DecoratorKind[] | null;
547
- key: K.ExpressionKind;
548
- kind: "constructor" | "method" | "get" | "set";
549
- loc?: K.SourceLocationKind | null;
550
- static?: boolean;
551
- value: K.FunctionKind;
552
- }): namedTypes.MethodDefinition;
553
- }
554
547
  export interface SpreadElementBuilder {
555
548
  (argument: K.ExpressionKind): namedTypes.SpreadElement;
556
549
  from(params: {
@@ -568,6 +561,19 @@ export interface AssignmentPatternBuilder {
568
561
  right: K.ExpressionKind;
569
562
  }): namedTypes.AssignmentPattern;
570
563
  }
564
+ export interface MethodDefinitionBuilder {
565
+ (kind: "constructor" | "method" | "get" | "set", key: K.ExpressionKind, value: K.FunctionKind, staticParam?: boolean): namedTypes.MethodDefinition;
566
+ from(params: {
567
+ comments?: K.CommentKind[] | null;
568
+ computed?: boolean;
569
+ decorators?: K.DecoratorKind[] | null;
570
+ key: K.ExpressionKind;
571
+ kind: "constructor" | "method" | "get" | "set";
572
+ loc?: K.SourceLocationKind | null;
573
+ static?: boolean;
574
+ value: K.FunctionKind;
575
+ }): namedTypes.MethodDefinition;
576
+ }
571
577
  export interface ClassPropertyDefinitionBuilder {
572
578
  (definition: K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind): namedTypes.ClassPropertyDefinition;
573
579
  from(params: {
@@ -624,6 +630,13 @@ export interface ClassExpressionBuilder {
624
630
  typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
625
631
  }): namedTypes.ClassExpression;
626
632
  }
633
+ export interface SuperBuilder {
634
+ (): namedTypes.Super;
635
+ from(params: {
636
+ comments?: K.CommentKind[] | null;
637
+ loc?: K.SourceLocationKind | null;
638
+ }): namedTypes.Super;
639
+ }
627
640
  export interface ImportSpecifierBuilder {
628
641
  (imported: K.IdentifierKind, local?: K.IdentifierKind | null): namedTypes.ImportSpecifier;
629
642
  from(params: {
@@ -635,36 +648,74 @@ export interface ImportSpecifierBuilder {
635
648
  name?: K.IdentifierKind | null;
636
649
  }): namedTypes.ImportSpecifier;
637
650
  }
638
- export interface ImportNamespaceSpecifierBuilder {
639
- (local?: K.IdentifierKind | null): namedTypes.ImportNamespaceSpecifier;
651
+ export interface ImportDefaultSpecifierBuilder {
652
+ (local?: K.IdentifierKind | null): namedTypes.ImportDefaultSpecifier;
640
653
  from(params: {
641
654
  comments?: K.CommentKind[] | null;
642
655
  id?: K.IdentifierKind | null;
643
656
  loc?: K.SourceLocationKind | null;
644
657
  local?: K.IdentifierKind | null;
645
658
  name?: K.IdentifierKind | null;
646
- }): namedTypes.ImportNamespaceSpecifier;
659
+ }): namedTypes.ImportDefaultSpecifier;
647
660
  }
648
- export interface ImportDefaultSpecifierBuilder {
649
- (local?: K.IdentifierKind | null): namedTypes.ImportDefaultSpecifier;
661
+ export interface ImportNamespaceSpecifierBuilder {
662
+ (local?: K.IdentifierKind | null): namedTypes.ImportNamespaceSpecifier;
650
663
  from(params: {
651
664
  comments?: K.CommentKind[] | null;
652
665
  id?: K.IdentifierKind | null;
653
666
  loc?: K.SourceLocationKind | null;
654
667
  local?: K.IdentifierKind | null;
655
668
  name?: K.IdentifierKind | null;
656
- }): namedTypes.ImportDefaultSpecifier;
669
+ }): namedTypes.ImportNamespaceSpecifier;
657
670
  }
658
671
  export interface ImportDeclarationBuilder {
659
- (specifiers: (K.ImportSpecifierKind | K.ImportNamespaceSpecifierKind | K.ImportDefaultSpecifierKind)[] | undefined, source: K.LiteralKind, importKind?: "value" | "type"): namedTypes.ImportDeclaration;
672
+ (specifiers: (K.ImportSpecifierKind | K.ImportNamespaceSpecifierKind | K.ImportDefaultSpecifierKind)[] | undefined, source: K.LiteralKind, importKind?: "value" | "type" | "typeof"): namedTypes.ImportDeclaration;
660
673
  from(params: {
661
674
  comments?: K.CommentKind[] | null;
662
- importKind?: "value" | "type";
675
+ importKind?: "value" | "type" | "typeof";
663
676
  loc?: K.SourceLocationKind | null;
664
677
  source: K.LiteralKind;
665
678
  specifiers?: (K.ImportSpecifierKind | K.ImportNamespaceSpecifierKind | K.ImportDefaultSpecifierKind)[];
666
679
  }): namedTypes.ImportDeclaration;
667
680
  }
681
+ export interface ExportNamedDeclarationBuilder {
682
+ (declaration: K.DeclarationKind | null, specifiers?: K.ExportSpecifierKind[], source?: K.LiteralKind | null): namedTypes.ExportNamedDeclaration;
683
+ from(params: {
684
+ comments?: K.CommentKind[] | null;
685
+ declaration: K.DeclarationKind | null;
686
+ loc?: K.SourceLocationKind | null;
687
+ source?: K.LiteralKind | null;
688
+ specifiers?: K.ExportSpecifierKind[];
689
+ }): namedTypes.ExportNamedDeclaration;
690
+ }
691
+ export interface ExportSpecifierBuilder {
692
+ (id?: K.IdentifierKind | null, name?: K.IdentifierKind | null): namedTypes.ExportSpecifier;
693
+ from(params: {
694
+ comments?: K.CommentKind[] | null;
695
+ exported: K.IdentifierKind;
696
+ id?: K.IdentifierKind | null;
697
+ loc?: K.SourceLocationKind | null;
698
+ local?: K.IdentifierKind | null;
699
+ name?: K.IdentifierKind | null;
700
+ }): namedTypes.ExportSpecifier;
701
+ }
702
+ export interface ExportDefaultDeclarationBuilder {
703
+ (declaration: K.DeclarationKind | K.ExpressionKind): namedTypes.ExportDefaultDeclaration;
704
+ from(params: {
705
+ comments?: K.CommentKind[] | null;
706
+ declaration: K.DeclarationKind | K.ExpressionKind;
707
+ loc?: K.SourceLocationKind | null;
708
+ }): namedTypes.ExportDefaultDeclaration;
709
+ }
710
+ export interface ExportAllDeclarationBuilder {
711
+ (source: K.LiteralKind, exported: K.IdentifierKind | null): namedTypes.ExportAllDeclaration;
712
+ from(params: {
713
+ comments?: K.CommentKind[] | null;
714
+ exported: K.IdentifierKind | null;
715
+ loc?: K.SourceLocationKind | null;
716
+ source: K.LiteralKind;
717
+ }): namedTypes.ExportAllDeclaration;
718
+ }
668
719
  export interface TaggedTemplateExpressionBuilder {
669
720
  (tag: K.ExpressionKind, quasi: K.TemplateLiteralKind): namedTypes.TaggedTemplateExpression;
670
721
  from(params: {
@@ -675,17 +726,17 @@ export interface TaggedTemplateExpressionBuilder {
675
726
  }): namedTypes.TaggedTemplateExpression;
676
727
  }
677
728
  export interface TemplateLiteralBuilder {
678
- (quasis: K.TemplateElementKind[], expressions: K.ExpressionKind[]): namedTypes.TemplateLiteral;
729
+ (quasis: K.TemplateElementKind[], expressions: K.ExpressionKind[] | K.TSTypeKind[]): namedTypes.TemplateLiteral;
679
730
  from(params: {
680
731
  comments?: K.CommentKind[] | null;
681
- expressions: K.ExpressionKind[];
732
+ expressions: K.ExpressionKind[] | K.TSTypeKind[];
682
733
  loc?: K.SourceLocationKind | null;
683
734
  quasis: K.TemplateElementKind[];
684
735
  }): namedTypes.TemplateLiteral;
685
736
  }
686
737
  export interface TemplateElementBuilder {
687
738
  (value: {
688
- cooked: string;
739
+ cooked: string | null;
689
740
  raw: string;
690
741
  }, tail: boolean): namedTypes.TemplateElement;
691
742
  from(params: {
@@ -693,11 +744,29 @@ export interface TemplateElementBuilder {
693
744
  loc?: K.SourceLocationKind | null;
694
745
  tail: boolean;
695
746
  value: {
696
- cooked: string;
747
+ cooked: string | null;
697
748
  raw: string;
698
749
  };
699
750
  }): namedTypes.TemplateElement;
700
751
  }
752
+ export interface MetaPropertyBuilder {
753
+ (meta: K.IdentifierKind, property: K.IdentifierKind): namedTypes.MetaProperty;
754
+ from(params: {
755
+ comments?: K.CommentKind[] | null;
756
+ loc?: K.SourceLocationKind | null;
757
+ meta: K.IdentifierKind;
758
+ property: K.IdentifierKind;
759
+ }): namedTypes.MetaProperty;
760
+ }
761
+ export interface AwaitExpressionBuilder {
762
+ (argument: K.ExpressionKind | null, all?: boolean): namedTypes.AwaitExpression;
763
+ from(params: {
764
+ all?: boolean;
765
+ argument: K.ExpressionKind | null;
766
+ comments?: K.CommentKind[] | null;
767
+ loc?: K.SourceLocationKind | null;
768
+ }): namedTypes.AwaitExpression;
769
+ }
701
770
  export interface SpreadPropertyBuilder {
702
771
  (argument: K.ExpressionKind): namedTypes.SpreadProperty;
703
772
  from(params: {
@@ -714,15 +783,6 @@ export interface SpreadPropertyPatternBuilder {
714
783
  loc?: K.SourceLocationKind | null;
715
784
  }): namedTypes.SpreadPropertyPattern;
716
785
  }
717
- export interface AwaitExpressionBuilder {
718
- (argument: K.ExpressionKind | null, all?: boolean): namedTypes.AwaitExpression;
719
- from(params: {
720
- all?: boolean;
721
- argument: K.ExpressionKind | null;
722
- comments?: K.CommentKind[] | null;
723
- loc?: K.SourceLocationKind | null;
724
- }): namedTypes.AwaitExpression;
725
- }
726
786
  export interface ImportExpressionBuilder {
727
787
  (source: K.ExpressionKind): namedTypes.ImportExpression;
728
788
  from(params: {
@@ -731,13 +791,137 @@ export interface ImportExpressionBuilder {
731
791
  source: K.ExpressionKind;
732
792
  }): namedTypes.ImportExpression;
733
793
  }
794
+ export interface ChainExpressionBuilder {
795
+ (expression: K.ChainElementKind): namedTypes.ChainExpression;
796
+ from(params: {
797
+ comments?: K.CommentKind[] | null;
798
+ expression: K.ChainElementKind;
799
+ loc?: K.SourceLocationKind | null;
800
+ }): namedTypes.ChainExpression;
801
+ }
802
+ export interface OptionalCallExpressionBuilder {
803
+ (callee: K.ExpressionKind, argumentsParam: (K.ExpressionKind | K.SpreadElementKind)[], optional?: boolean): namedTypes.OptionalCallExpression;
804
+ from(params: {
805
+ arguments: (K.ExpressionKind | K.SpreadElementKind)[];
806
+ callee: K.ExpressionKind;
807
+ comments?: K.CommentKind[] | null;
808
+ loc?: K.SourceLocationKind | null;
809
+ optional?: boolean;
810
+ typeArguments?: null | K.TypeParameterInstantiationKind;
811
+ }): namedTypes.OptionalCallExpression;
812
+ }
813
+ export interface OptionalMemberExpressionBuilder {
814
+ (object: K.ExpressionKind, property: K.IdentifierKind | K.ExpressionKind, computed?: boolean, optional?: boolean): namedTypes.OptionalMemberExpression;
815
+ from(params: {
816
+ comments?: K.CommentKind[] | null;
817
+ computed?: boolean;
818
+ loc?: K.SourceLocationKind | null;
819
+ object: K.ExpressionKind;
820
+ optional?: boolean;
821
+ property: K.IdentifierKind | K.ExpressionKind;
822
+ }): namedTypes.OptionalMemberExpression;
823
+ }
824
+ export interface StaticBlockBuilder {
825
+ (body: K.StatementKind[]): namedTypes.StaticBlock;
826
+ from(params: {
827
+ body: K.StatementKind[];
828
+ comments?: K.CommentKind[] | null;
829
+ loc?: K.SourceLocationKind | null;
830
+ }): namedTypes.StaticBlock;
831
+ }
832
+ export interface DecoratorBuilder {
833
+ (expression: K.ExpressionKind): namedTypes.Decorator;
834
+ from(params: {
835
+ comments?: K.CommentKind[] | null;
836
+ expression: K.ExpressionKind;
837
+ loc?: K.SourceLocationKind | null;
838
+ }): namedTypes.Decorator;
839
+ }
840
+ export interface PrivateNameBuilder {
841
+ (id: K.IdentifierKind): namedTypes.PrivateName;
842
+ from(params: {
843
+ comments?: K.CommentKind[] | null;
844
+ id: K.IdentifierKind;
845
+ loc?: K.SourceLocationKind | null;
846
+ }): namedTypes.PrivateName;
847
+ }
848
+ export interface ClassPrivatePropertyBuilder {
849
+ (key: K.PrivateNameKind, value?: K.ExpressionKind | null): namedTypes.ClassPrivateProperty;
850
+ from(params: {
851
+ access?: "public" | "private" | "protected" | undefined;
852
+ comments?: K.CommentKind[] | null;
853
+ computed?: boolean;
854
+ key: K.PrivateNameKind;
855
+ loc?: K.SourceLocationKind | null;
856
+ static?: boolean;
857
+ typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
858
+ value?: K.ExpressionKind | null;
859
+ variance?: K.VarianceKind | "plus" | "minus" | null;
860
+ }): namedTypes.ClassPrivateProperty;
861
+ }
862
+ export interface ImportAttributeBuilder {
863
+ (key: K.IdentifierKind, value: string): namedTypes.ImportAttribute;
864
+ from(params: {
865
+ comments?: K.CommentKind[] | null;
866
+ key: K.IdentifierKind;
867
+ loc?: K.SourceLocationKind | null;
868
+ value: string;
869
+ }): namedTypes.ImportAttribute;
870
+ }
871
+ export interface RecordExpressionBuilder {
872
+ (properties: (K.ObjectPropertyKind | K.ObjectMethodKind | K.SpreadElementKind)[]): namedTypes.RecordExpression;
873
+ from(params: {
874
+ comments?: K.CommentKind[] | null;
875
+ loc?: K.SourceLocationKind | null;
876
+ properties: (K.ObjectPropertyKind | K.ObjectMethodKind | K.SpreadElementKind)[];
877
+ }): namedTypes.RecordExpression;
878
+ }
879
+ export interface ObjectMethodBuilder {
880
+ (kind: "method" | "get" | "set", key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, params: K.PatternKind[], body: K.BlockStatementKind, computed?: boolean): namedTypes.ObjectMethod;
881
+ from(params: {
882
+ accessibility?: K.LiteralKind | null;
883
+ async?: boolean;
884
+ body: K.BlockStatementKind;
885
+ comments?: K.CommentKind[] | null;
886
+ computed?: boolean;
887
+ decorators?: K.DecoratorKind[] | null;
888
+ defaults?: (K.ExpressionKind | null)[];
889
+ expression?: boolean;
890
+ generator?: boolean;
891
+ id?: K.IdentifierKind | null;
892
+ key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind;
893
+ kind: "method" | "get" | "set";
894
+ loc?: K.SourceLocationKind | null;
895
+ params: K.PatternKind[];
896
+ predicate?: K.FlowPredicateKind | null;
897
+ rest?: K.IdentifierKind | null;
898
+ returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
899
+ typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
900
+ }): namedTypes.ObjectMethod;
901
+ }
902
+ export interface TupleExpressionBuilder {
903
+ (elements: (K.ExpressionKind | K.SpreadElementKind | null)[]): namedTypes.TupleExpression;
904
+ from(params: {
905
+ comments?: K.CommentKind[] | null;
906
+ elements: (K.ExpressionKind | K.SpreadElementKind | null)[];
907
+ loc?: K.SourceLocationKind | null;
908
+ }): namedTypes.TupleExpression;
909
+ }
910
+ export interface ModuleExpressionBuilder {
911
+ (): namedTypes.ModuleExpression;
912
+ from(params: {
913
+ body: K.ProgramKind;
914
+ comments?: K.CommentKind[] | null;
915
+ loc?: K.SourceLocationKind | null;
916
+ }): namedTypes.ModuleExpression;
917
+ }
734
918
  export interface JSXAttributeBuilder {
735
- (name: K.JSXIdentifierKind | K.JSXNamespacedNameKind, value?: K.LiteralKind | K.JSXExpressionContainerKind | null): namedTypes.JSXAttribute;
919
+ (name: K.JSXIdentifierKind | K.JSXNamespacedNameKind, value?: K.LiteralKind | K.JSXExpressionContainerKind | K.JSXElementKind | K.JSXFragmentKind | null): namedTypes.JSXAttribute;
736
920
  from(params: {
737
921
  comments?: K.CommentKind[] | null;
738
922
  loc?: K.SourceLocationKind | null;
739
923
  name: K.JSXIdentifierKind | K.JSXNamespacedNameKind;
740
- value?: K.LiteralKind | K.JSXExpressionContainerKind | null;
924
+ value?: K.LiteralKind | K.JSXExpressionContainerKind | K.JSXElementKind | K.JSXFragmentKind | null;
741
925
  }): namedTypes.JSXAttribute;
742
926
  }
743
927
  export interface JSXIdentifierBuilder {
@@ -760,13 +944,36 @@ export interface JSXNamespacedNameBuilder {
760
944
  }): namedTypes.JSXNamespacedName;
761
945
  }
762
946
  export interface JSXExpressionContainerBuilder {
763
- (expression: K.ExpressionKind): namedTypes.JSXExpressionContainer;
947
+ (expression: K.ExpressionKind | K.JSXEmptyExpressionKind): namedTypes.JSXExpressionContainer;
764
948
  from(params: {
765
949
  comments?: K.CommentKind[] | null;
766
- expression: K.ExpressionKind;
950
+ expression: K.ExpressionKind | K.JSXEmptyExpressionKind;
767
951
  loc?: K.SourceLocationKind | null;
768
952
  }): namedTypes.JSXExpressionContainer;
769
953
  }
954
+ export interface JSXElementBuilder {
955
+ (openingElement: K.JSXOpeningElementKind, closingElement?: K.JSXClosingElementKind | null, children?: (K.JSXTextKind | K.JSXExpressionContainerKind | K.JSXSpreadChildKind | K.JSXElementKind | K.JSXFragmentKind | K.LiteralKind)[]): namedTypes.JSXElement;
956
+ from(params: {
957
+ attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[];
958
+ children?: (K.JSXTextKind | K.JSXExpressionContainerKind | K.JSXSpreadChildKind | K.JSXElementKind | K.JSXFragmentKind | K.LiteralKind)[];
959
+ closingElement?: K.JSXClosingElementKind | null;
960
+ comments?: K.CommentKind[] | null;
961
+ loc?: K.SourceLocationKind | null;
962
+ name?: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind;
963
+ openingElement: K.JSXOpeningElementKind;
964
+ selfClosing?: boolean;
965
+ }): namedTypes.JSXElement;
966
+ }
967
+ export interface JSXFragmentBuilder {
968
+ (openingFragment: K.JSXOpeningFragmentKind, closingFragment: K.JSXClosingFragmentKind, children?: (K.JSXTextKind | K.JSXExpressionContainerKind | K.JSXSpreadChildKind | K.JSXElementKind | K.JSXFragmentKind | K.LiteralKind)[]): namedTypes.JSXFragment;
969
+ from(params: {
970
+ children?: (K.JSXTextKind | K.JSXExpressionContainerKind | K.JSXSpreadChildKind | K.JSXElementKind | K.JSXFragmentKind | K.LiteralKind)[];
971
+ closingFragment: K.JSXClosingFragmentKind;
972
+ comments?: K.CommentKind[] | null;
973
+ loc?: K.SourceLocationKind | null;
974
+ openingFragment: K.JSXOpeningFragmentKind;
975
+ }): namedTypes.JSXFragment;
976
+ }
770
977
  export interface JSXMemberExpressionBuilder {
771
978
  (object: K.JSXIdentifierKind | K.JSXMemberExpressionKind, property: K.JSXIdentifierKind): namedTypes.JSXMemberExpression;
772
979
  from(params: {
@@ -774,6 +981,7 @@ export interface JSXMemberExpressionBuilder {
774
981
  computed?: boolean;
775
982
  loc?: K.SourceLocationKind | null;
776
983
  object: K.JSXIdentifierKind | K.JSXMemberExpressionKind;
984
+ optional?: boolean;
777
985
  property: K.JSXIdentifierKind;
778
986
  }): namedTypes.JSXMemberExpression;
779
987
  }
@@ -785,18 +993,33 @@ export interface JSXSpreadAttributeBuilder {
785
993
  loc?: K.SourceLocationKind | null;
786
994
  }): namedTypes.JSXSpreadAttribute;
787
995
  }
788
- export interface JSXElementBuilder {
789
- (openingElement: K.JSXOpeningElementKind, closingElement?: K.JSXClosingElementKind | null, children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[]): namedTypes.JSXElement;
996
+ export interface JSXEmptyExpressionBuilder {
997
+ (): namedTypes.JSXEmptyExpression;
790
998
  from(params: {
791
- attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[];
792
- children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[];
793
- closingElement?: K.JSXClosingElementKind | null;
794
999
  comments?: K.CommentKind[] | null;
795
1000
  loc?: K.SourceLocationKind | null;
796
- name?: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind;
797
- openingElement: K.JSXOpeningElementKind;
798
- selfClosing?: boolean;
799
- }): namedTypes.JSXElement;
1001
+ }): namedTypes.JSXEmptyExpression;
1002
+ }
1003
+ export interface JSXTextBuilder {
1004
+ (value: string, raw?: string): namedTypes.JSXText;
1005
+ from(params: {
1006
+ comments?: K.CommentKind[] | null;
1007
+ loc?: K.SourceLocationKind | null;
1008
+ raw?: string;
1009
+ regex?: {
1010
+ pattern: string;
1011
+ flags: string;
1012
+ } | null;
1013
+ value: string;
1014
+ }): namedTypes.JSXText;
1015
+ }
1016
+ export interface JSXSpreadChildBuilder {
1017
+ (expression: K.ExpressionKind): namedTypes.JSXSpreadChild;
1018
+ from(params: {
1019
+ comments?: K.CommentKind[] | null;
1020
+ expression: K.ExpressionKind;
1021
+ loc?: K.SourceLocationKind | null;
1022
+ }): namedTypes.JSXSpreadChild;
800
1023
  }
801
1024
  export interface JSXOpeningElementBuilder {
802
1025
  (name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind, attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[], selfClosing?: boolean): namedTypes.JSXOpeningElement;
@@ -816,28 +1039,6 @@ export interface JSXClosingElementBuilder {
816
1039
  name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind;
817
1040
  }): namedTypes.JSXClosingElement;
818
1041
  }
819
- export interface JSXFragmentBuilder {
820
- (openingElement: K.JSXOpeningFragmentKind, closingElement: K.JSXClosingFragmentKind, children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[]): namedTypes.JSXFragment;
821
- from(params: {
822
- children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[];
823
- closingElement: K.JSXClosingFragmentKind;
824
- comments?: K.CommentKind[] | null;
825
- loc?: K.SourceLocationKind | null;
826
- openingElement: K.JSXOpeningFragmentKind;
827
- }): namedTypes.JSXFragment;
828
- }
829
- export interface JSXTextBuilder {
830
- (value: string): namedTypes.JSXText;
831
- from(params: {
832
- comments?: K.CommentKind[] | null;
833
- loc?: K.SourceLocationKind | null;
834
- regex?: {
835
- pattern: string;
836
- flags: string;
837
- } | null;
838
- value: string;
839
- }): namedTypes.JSXText;
840
- }
841
1042
  export interface JSXOpeningFragmentBuilder {
842
1043
  (): namedTypes.JSXOpeningFragment;
843
1044
  from(params: {
@@ -852,21 +1053,6 @@ export interface JSXClosingFragmentBuilder {
852
1053
  loc?: K.SourceLocationKind | null;
853
1054
  }): namedTypes.JSXClosingFragment;
854
1055
  }
855
- export interface JSXEmptyExpressionBuilder {
856
- (): namedTypes.JSXEmptyExpression;
857
- from(params: {
858
- comments?: K.CommentKind[] | null;
859
- loc?: K.SourceLocationKind | null;
860
- }): namedTypes.JSXEmptyExpression;
861
- }
862
- export interface JSXSpreadChildBuilder {
863
- (expression: K.ExpressionKind): namedTypes.JSXSpreadChild;
864
- from(params: {
865
- comments?: K.CommentKind[] | null;
866
- expression: K.ExpressionKind;
867
- loc?: K.SourceLocationKind | null;
868
- }): namedTypes.JSXSpreadChild;
869
- }
870
1056
  export interface TypeParameterDeclarationBuilder {
871
1057
  (params: K.TypeParameterKind[]): namedTypes.TypeParameterDeclaration;
872
1058
  from(params: {
@@ -939,12 +1125,19 @@ export interface MixedTypeAnnotationBuilder {
939
1125
  loc?: K.SourceLocationKind | null;
940
1126
  }): namedTypes.MixedTypeAnnotation;
941
1127
  }
942
- export interface VoidTypeAnnotationBuilder {
943
- (): namedTypes.VoidTypeAnnotation;
1128
+ export interface VoidTypeAnnotationBuilder {
1129
+ (): namedTypes.VoidTypeAnnotation;
1130
+ from(params: {
1131
+ comments?: K.CommentKind[] | null;
1132
+ loc?: K.SourceLocationKind | null;
1133
+ }): namedTypes.VoidTypeAnnotation;
1134
+ }
1135
+ export interface SymbolTypeAnnotationBuilder {
1136
+ (): namedTypes.SymbolTypeAnnotation;
944
1137
  from(params: {
945
1138
  comments?: K.CommentKind[] | null;
946
1139
  loc?: K.SourceLocationKind | null;
947
- }): namedTypes.VoidTypeAnnotation;
1140
+ }): namedTypes.SymbolTypeAnnotation;
948
1141
  }
949
1142
  export interface NumberTypeAnnotationBuilder {
950
1143
  (): namedTypes.NumberTypeAnnotation;
@@ -953,6 +1146,13 @@ export interface NumberTypeAnnotationBuilder {
953
1146
  loc?: K.SourceLocationKind | null;
954
1147
  }): namedTypes.NumberTypeAnnotation;
955
1148
  }
1149
+ export interface BigIntTypeAnnotationBuilder {
1150
+ (): namedTypes.BigIntTypeAnnotation;
1151
+ from(params: {
1152
+ comments?: K.CommentKind[] | null;
1153
+ loc?: K.SourceLocationKind | null;
1154
+ }): namedTypes.BigIntTypeAnnotation;
1155
+ }
956
1156
  export interface NumberLiteralTypeAnnotationBuilder {
957
1157
  (value: number, raw: string): namedTypes.NumberLiteralTypeAnnotation;
958
1158
  from(params: {
@@ -971,6 +1171,15 @@ export interface NumericLiteralTypeAnnotationBuilder {
971
1171
  value: number;
972
1172
  }): namedTypes.NumericLiteralTypeAnnotation;
973
1173
  }
1174
+ export interface BigIntLiteralTypeAnnotationBuilder {
1175
+ (value: null, raw: string): namedTypes.BigIntLiteralTypeAnnotation;
1176
+ from(params: {
1177
+ comments?: K.CommentKind[] | null;
1178
+ loc?: K.SourceLocationKind | null;
1179
+ raw: string;
1180
+ value: null;
1181
+ }): namedTypes.BigIntLiteralTypeAnnotation;
1182
+ }
974
1183
  export interface StringTypeAnnotationBuilder {
975
1184
  (): namedTypes.StringTypeAnnotation;
976
1185
  from(params: {
@@ -1058,11 +1267,11 @@ export interface FunctionTypeAnnotationBuilder {
1058
1267
  }): namedTypes.FunctionTypeAnnotation;
1059
1268
  }
1060
1269
  export interface FunctionTypeParamBuilder {
1061
- (name: K.IdentifierKind, typeAnnotation: K.FlowTypeKind, optional: boolean): namedTypes.FunctionTypeParam;
1270
+ (name: K.IdentifierKind | null, typeAnnotation: K.FlowTypeKind, optional: boolean): namedTypes.FunctionTypeParam;
1062
1271
  from(params: {
1063
1272
  comments?: K.CommentKind[] | null;
1064
1273
  loc?: K.SourceLocationKind | null;
1065
- name: K.IdentifierKind;
1274
+ name: K.IdentifierKind | null;
1066
1275
  optional: boolean;
1067
1276
  typeAnnotation: K.FlowTypeKind;
1068
1277
  }): namedTypes.FunctionTypeParam;
@@ -1114,6 +1323,7 @@ export interface ObjectTypeIndexerBuilder {
1114
1323
  id: K.IdentifierKind;
1115
1324
  key: K.FlowTypeKind;
1116
1325
  loc?: K.SourceLocationKind | null;
1326
+ static?: boolean;
1117
1327
  value: K.FlowTypeKind;
1118
1328
  variance?: K.VarianceKind | "plus" | "minus" | null;
1119
1329
  }): namedTypes.ObjectTypeIndexer;
@@ -1174,6 +1384,25 @@ export interface MemberTypeAnnotationBuilder {
1174
1384
  property: K.MemberTypeAnnotationKind | K.GenericTypeAnnotationKind;
1175
1385
  }): namedTypes.MemberTypeAnnotation;
1176
1386
  }
1387
+ export interface IndexedAccessTypeBuilder {
1388
+ (objectType: K.FlowTypeKind, indexType: K.FlowTypeKind): namedTypes.IndexedAccessType;
1389
+ from(params: {
1390
+ comments?: K.CommentKind[] | null;
1391
+ indexType: K.FlowTypeKind;
1392
+ loc?: K.SourceLocationKind | null;
1393
+ objectType: K.FlowTypeKind;
1394
+ }): namedTypes.IndexedAccessType;
1395
+ }
1396
+ export interface OptionalIndexedAccessTypeBuilder {
1397
+ (objectType: K.FlowTypeKind, indexType: K.FlowTypeKind, optional: boolean): namedTypes.OptionalIndexedAccessType;
1398
+ from(params: {
1399
+ comments?: K.CommentKind[] | null;
1400
+ indexType: K.FlowTypeKind;
1401
+ loc?: K.SourceLocationKind | null;
1402
+ objectType: K.FlowTypeKind;
1403
+ optional: boolean;
1404
+ }): namedTypes.OptionalIndexedAccessType;
1405
+ }
1177
1406
  export interface UnionTypeAnnotationBuilder {
1178
1407
  (types: K.FlowTypeKind[]): namedTypes.UnionTypeAnnotation;
1179
1408
  from(params: {
@@ -1199,10 +1428,11 @@ export interface TypeofTypeAnnotationBuilder {
1199
1428
  }): namedTypes.TypeofTypeAnnotation;
1200
1429
  }
1201
1430
  export interface TypeParameterBuilder {
1202
- (name: string, variance?: K.VarianceKind | "plus" | "minus" | null, bound?: K.TypeAnnotationKind | null): namedTypes.TypeParameter;
1431
+ (name: string, variance?: K.VarianceKind | "plus" | "minus" | null, bound?: K.TypeAnnotationKind | null, defaultParam?: K.FlowTypeKind | null): namedTypes.TypeParameter;
1203
1432
  from(params: {
1204
1433
  bound?: K.TypeAnnotationKind | null;
1205
1434
  comments?: K.CommentKind[] | null;
1435
+ default?: K.FlowTypeKind | null;
1206
1436
  loc?: K.SourceLocationKind | null;
1207
1437
  name: string;
1208
1438
  variance?: K.VarianceKind | "plus" | "minus" | null;
@@ -1258,34 +1488,35 @@ export interface TypeAliasBuilder {
1258
1488
  typeParameters: K.TypeParameterDeclarationKind | null;
1259
1489
  }): namedTypes.TypeAlias;
1260
1490
  }
1261
- export interface OpaqueTypeBuilder {
1262
- (id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, impltype: K.FlowTypeKind, supertype: K.FlowTypeKind): namedTypes.OpaqueType;
1491
+ export interface DeclareTypeAliasBuilder {
1492
+ (id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, right: K.FlowTypeKind): namedTypes.DeclareTypeAlias;
1263
1493
  from(params: {
1264
1494
  comments?: K.CommentKind[] | null;
1265
1495
  id: K.IdentifierKind;
1266
- impltype: K.FlowTypeKind;
1267
1496
  loc?: K.SourceLocationKind | null;
1268
- supertype: K.FlowTypeKind;
1497
+ right: K.FlowTypeKind;
1269
1498
  typeParameters: K.TypeParameterDeclarationKind | null;
1270
- }): namedTypes.OpaqueType;
1499
+ }): namedTypes.DeclareTypeAlias;
1271
1500
  }
1272
- export interface DeclareTypeAliasBuilder {
1273
- (id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, right: K.FlowTypeKind): namedTypes.DeclareTypeAlias;
1501
+ export interface OpaqueTypeBuilder {
1502
+ (id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, impltype: K.FlowTypeKind, supertype: K.FlowTypeKind | null): namedTypes.OpaqueType;
1274
1503
  from(params: {
1275
1504
  comments?: K.CommentKind[] | null;
1276
1505
  id: K.IdentifierKind;
1506
+ impltype: K.FlowTypeKind;
1277
1507
  loc?: K.SourceLocationKind | null;
1278
- right: K.FlowTypeKind;
1508
+ supertype: K.FlowTypeKind | null;
1279
1509
  typeParameters: K.TypeParameterDeclarationKind | null;
1280
- }): namedTypes.DeclareTypeAlias;
1510
+ }): namedTypes.OpaqueType;
1281
1511
  }
1282
1512
  export interface DeclareOpaqueTypeBuilder {
1283
- (id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null): namedTypes.DeclareOpaqueType;
1513
+ (id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, supertype: K.FlowTypeKind | null): namedTypes.DeclareOpaqueType;
1284
1514
  from(params: {
1285
1515
  comments?: K.CommentKind[] | null;
1286
1516
  id: K.IdentifierKind;
1517
+ impltype: K.FlowTypeKind | null;
1287
1518
  loc?: K.SourceLocationKind | null;
1288
- right: K.FlowTypeKind;
1519
+ supertype: K.FlowTypeKind | null;
1289
1520
  typeParameters: K.TypeParameterDeclarationKind | null;
1290
1521
  }): namedTypes.DeclareOpaqueType;
1291
1522
  }
@@ -1320,6 +1551,7 @@ export interface DeclareFunctionBuilder {
1320
1551
  comments?: K.CommentKind[] | null;
1321
1552
  id: K.IdentifierKind;
1322
1553
  loc?: K.SourceLocationKind | null;
1554
+ predicate?: K.FlowPredicateKind | null;
1323
1555
  }): namedTypes.DeclareFunction;
1324
1556
  }
1325
1557
  export interface DeclareClassBuilder {
@@ -1351,27 +1583,16 @@ export interface DeclareModuleExportsBuilder {
1351
1583
  }): namedTypes.DeclareModuleExports;
1352
1584
  }
1353
1585
  export interface DeclareExportDeclarationBuilder {
1354
- (defaultParam: boolean, declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | null, specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[], source?: K.LiteralKind | null): namedTypes.DeclareExportDeclaration;
1586
+ (defaultParam: boolean, declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | K.TypeAliasKind | K.DeclareOpaqueTypeKind | K.InterfaceDeclarationKind | null, specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[], source?: K.LiteralKind | null): namedTypes.DeclareExportDeclaration;
1355
1587
  from(params: {
1356
1588
  comments?: K.CommentKind[] | null;
1357
- declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | null;
1589
+ declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | K.TypeAliasKind | K.DeclareOpaqueTypeKind | K.InterfaceDeclarationKind | null;
1358
1590
  default: boolean;
1359
1591
  loc?: K.SourceLocationKind | null;
1360
1592
  source?: K.LiteralKind | null;
1361
1593
  specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[];
1362
1594
  }): namedTypes.DeclareExportDeclaration;
1363
1595
  }
1364
- export interface ExportSpecifierBuilder {
1365
- (local: K.IdentifierKind | null | undefined, exported: K.IdentifierKind): namedTypes.ExportSpecifier;
1366
- from(params: {
1367
- comments?: K.CommentKind[] | null;
1368
- exported: K.IdentifierKind;
1369
- id?: K.IdentifierKind | null;
1370
- loc?: K.SourceLocationKind | null;
1371
- local?: K.IdentifierKind | null;
1372
- name?: K.IdentifierKind | null;
1373
- }): namedTypes.ExportSpecifier;
1374
- }
1375
1596
  export interface ExportBatchSpecifierBuilder {
1376
1597
  (): namedTypes.ExportBatchSpecifier;
1377
1598
  from(params: {
@@ -1402,6 +1623,69 @@ export interface DeclaredPredicateBuilder {
1402
1623
  value: K.ExpressionKind;
1403
1624
  }): namedTypes.DeclaredPredicate;
1404
1625
  }
1626
+ export interface EnumDeclarationBuilder {
1627
+ (id: K.IdentifierKind, body: K.EnumBooleanBodyKind | K.EnumNumberBodyKind | K.EnumStringBodyKind | K.EnumSymbolBodyKind): namedTypes.EnumDeclaration;
1628
+ from(params: {
1629
+ body: K.EnumBooleanBodyKind | K.EnumNumberBodyKind | K.EnumStringBodyKind | K.EnumSymbolBodyKind;
1630
+ comments?: K.CommentKind[] | null;
1631
+ id: K.IdentifierKind;
1632
+ loc?: K.SourceLocationKind | null;
1633
+ }): namedTypes.EnumDeclaration;
1634
+ }
1635
+ export interface EnumBooleanBodyBuilder {
1636
+ (members: K.EnumBooleanMemberKind[], explicitType: boolean): namedTypes.EnumBooleanBody;
1637
+ from(params: {
1638
+ explicitType: boolean;
1639
+ members: K.EnumBooleanMemberKind[];
1640
+ }): namedTypes.EnumBooleanBody;
1641
+ }
1642
+ export interface EnumNumberBodyBuilder {
1643
+ (members: K.EnumNumberMemberKind[], explicitType: boolean): namedTypes.EnumNumberBody;
1644
+ from(params: {
1645
+ explicitType: boolean;
1646
+ members: K.EnumNumberMemberKind[];
1647
+ }): namedTypes.EnumNumberBody;
1648
+ }
1649
+ export interface EnumStringBodyBuilder {
1650
+ (members: K.EnumStringMemberKind[] | K.EnumDefaultedMemberKind[], explicitType: boolean): namedTypes.EnumStringBody;
1651
+ from(params: {
1652
+ explicitType: boolean;
1653
+ members: K.EnumStringMemberKind[] | K.EnumDefaultedMemberKind[];
1654
+ }): namedTypes.EnumStringBody;
1655
+ }
1656
+ export interface EnumSymbolBodyBuilder {
1657
+ (members: K.EnumDefaultedMemberKind[]): namedTypes.EnumSymbolBody;
1658
+ from(params: {
1659
+ members: K.EnumDefaultedMemberKind[];
1660
+ }): namedTypes.EnumSymbolBody;
1661
+ }
1662
+ export interface EnumBooleanMemberBuilder {
1663
+ (id: K.IdentifierKind, init: K.LiteralKind | boolean): namedTypes.EnumBooleanMember;
1664
+ from(params: {
1665
+ id: K.IdentifierKind;
1666
+ init: K.LiteralKind | boolean;
1667
+ }): namedTypes.EnumBooleanMember;
1668
+ }
1669
+ export interface EnumNumberMemberBuilder {
1670
+ (id: K.IdentifierKind, init: K.LiteralKind): namedTypes.EnumNumberMember;
1671
+ from(params: {
1672
+ id: K.IdentifierKind;
1673
+ init: K.LiteralKind;
1674
+ }): namedTypes.EnumNumberMember;
1675
+ }
1676
+ export interface EnumStringMemberBuilder {
1677
+ (id: K.IdentifierKind, init: K.LiteralKind): namedTypes.EnumStringMember;
1678
+ from(params: {
1679
+ id: K.IdentifierKind;
1680
+ init: K.LiteralKind;
1681
+ }): namedTypes.EnumStringMember;
1682
+ }
1683
+ export interface EnumDefaultedMemberBuilder {
1684
+ (id: K.IdentifierKind): namedTypes.EnumDefaultedMember;
1685
+ from(params: {
1686
+ id: K.IdentifierKind;
1687
+ }): namedTypes.EnumDefaultedMember;
1688
+ }
1405
1689
  export interface ExportDeclarationBuilder {
1406
1690
  (defaultParam: boolean, declaration: K.DeclarationKind | K.ExpressionKind | null, specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[], source?: K.LiteralKind | null): namedTypes.ExportDeclaration;
1407
1691
  from(params: {
@@ -1446,13 +1730,6 @@ export interface DoExpressionBuilder {
1446
1730
  loc?: K.SourceLocationKind | null;
1447
1731
  }): namedTypes.DoExpression;
1448
1732
  }
1449
- export interface SuperBuilder {
1450
- (): namedTypes.Super;
1451
- from(params: {
1452
- comments?: K.CommentKind[] | null;
1453
- loc?: K.SourceLocationKind | null;
1454
- }): namedTypes.Super;
1455
- }
1456
1733
  export interface BindExpressionBuilder {
1457
1734
  (object: K.ExpressionKind | null, callee: K.ExpressionKind): namedTypes.BindExpression;
1458
1735
  from(params: {
@@ -1462,23 +1739,6 @@ export interface BindExpressionBuilder {
1462
1739
  object: K.ExpressionKind | null;
1463
1740
  }): namedTypes.BindExpression;
1464
1741
  }
1465
- export interface DecoratorBuilder {
1466
- (expression: K.ExpressionKind): namedTypes.Decorator;
1467
- from(params: {
1468
- comments?: K.CommentKind[] | null;
1469
- expression: K.ExpressionKind;
1470
- loc?: K.SourceLocationKind | null;
1471
- }): namedTypes.Decorator;
1472
- }
1473
- export interface MetaPropertyBuilder {
1474
- (meta: K.IdentifierKind, property: K.IdentifierKind): namedTypes.MetaProperty;
1475
- from(params: {
1476
- comments?: K.CommentKind[] | null;
1477
- loc?: K.SourceLocationKind | null;
1478
- meta: K.IdentifierKind;
1479
- property: K.IdentifierKind;
1480
- }): namedTypes.MetaProperty;
1481
- }
1482
1742
  export interface ParenthesizedExpressionBuilder {
1483
1743
  (expression: K.ExpressionKind): namedTypes.ParenthesizedExpression;
1484
1744
  from(params: {
@@ -1487,24 +1747,6 @@ export interface ParenthesizedExpressionBuilder {
1487
1747
  loc?: K.SourceLocationKind | null;
1488
1748
  }): namedTypes.ParenthesizedExpression;
1489
1749
  }
1490
- export interface ExportDefaultDeclarationBuilder {
1491
- (declaration: K.DeclarationKind | K.ExpressionKind): namedTypes.ExportDefaultDeclaration;
1492
- from(params: {
1493
- comments?: K.CommentKind[] | null;
1494
- declaration: K.DeclarationKind | K.ExpressionKind;
1495
- loc?: K.SourceLocationKind | null;
1496
- }): namedTypes.ExportDefaultDeclaration;
1497
- }
1498
- export interface ExportNamedDeclarationBuilder {
1499
- (declaration: K.DeclarationKind | null, specifiers?: K.ExportSpecifierKind[], source?: K.LiteralKind | null): namedTypes.ExportNamedDeclaration;
1500
- from(params: {
1501
- comments?: K.CommentKind[] | null;
1502
- declaration: K.DeclarationKind | null;
1503
- loc?: K.SourceLocationKind | null;
1504
- source?: K.LiteralKind | null;
1505
- specifiers?: K.ExportSpecifierKind[];
1506
- }): namedTypes.ExportNamedDeclaration;
1507
- }
1508
1750
  export interface ExportNamespaceSpecifierBuilder {
1509
1751
  (exported: K.IdentifierKind): namedTypes.ExportNamespaceSpecifier;
1510
1752
  from(params: {
@@ -1521,15 +1763,6 @@ export interface ExportDefaultSpecifierBuilder {
1521
1763
  loc?: K.SourceLocationKind | null;
1522
1764
  }): namedTypes.ExportDefaultSpecifier;
1523
1765
  }
1524
- export interface ExportAllDeclarationBuilder {
1525
- (exported: K.IdentifierKind | null, source: K.LiteralKind): namedTypes.ExportAllDeclaration;
1526
- from(params: {
1527
- comments?: K.CommentKind[] | null;
1528
- exported: K.IdentifierKind | null;
1529
- loc?: K.SourceLocationKind | null;
1530
- source: K.LiteralKind;
1531
- }): namedTypes.ExportAllDeclaration;
1532
- }
1533
1766
  export interface CommentBlockBuilder {
1534
1767
  (value: string, leading?: boolean, trailing?: boolean): namedTypes.CommentBlock;
1535
1768
  from(params: {
@@ -1617,6 +1850,22 @@ export interface BigIntLiteralBuilder {
1617
1850
  value: string | number;
1618
1851
  }): namedTypes.BigIntLiteral;
1619
1852
  }
1853
+ export interface DecimalLiteralBuilder {
1854
+ (value: string): namedTypes.DecimalLiteral;
1855
+ from(params: {
1856
+ comments?: K.CommentKind[] | null;
1857
+ extra?: {
1858
+ rawValue: string;
1859
+ raw: string;
1860
+ };
1861
+ loc?: K.SourceLocationKind | null;
1862
+ regex?: {
1863
+ pattern: string;
1864
+ flags: string;
1865
+ } | null;
1866
+ value: string;
1867
+ }): namedTypes.DecimalLiteral;
1868
+ }
1620
1869
  export interface NullLiteralBuilder {
1621
1870
  (): namedTypes.NullLiteral;
1622
1871
  from(params: {
@@ -1655,42 +1904,6 @@ export interface RegExpLiteralBuilder {
1655
1904
  value?: RegExp;
1656
1905
  }): namedTypes.RegExpLiteral;
1657
1906
  }
1658
- export interface ObjectMethodBuilder {
1659
- (kind: "method" | "get" | "set", key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, params: K.PatternKind[], body: K.BlockStatementKind, computed?: boolean): namedTypes.ObjectMethod;
1660
- from(params: {
1661
- accessibility?: K.LiteralKind | null;
1662
- async?: boolean;
1663
- body: K.BlockStatementKind;
1664
- comments?: K.CommentKind[] | null;
1665
- computed?: boolean;
1666
- decorators?: K.DecoratorKind[] | null;
1667
- defaults?: (K.ExpressionKind | null)[];
1668
- expression?: boolean;
1669
- generator?: boolean;
1670
- id?: K.IdentifierKind | null;
1671
- key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind;
1672
- kind: "method" | "get" | "set";
1673
- loc?: K.SourceLocationKind | null;
1674
- params: K.PatternKind[];
1675
- rest?: K.IdentifierKind | null;
1676
- returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
1677
- typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
1678
- }): namedTypes.ObjectMethod;
1679
- }
1680
- export interface ClassPrivatePropertyBuilder {
1681
- (key: K.PrivateNameKind, value?: K.ExpressionKind | null): namedTypes.ClassPrivateProperty;
1682
- from(params: {
1683
- access?: "public" | "private" | "protected" | undefined;
1684
- comments?: K.CommentKind[] | null;
1685
- computed?: boolean;
1686
- key: K.PrivateNameKind;
1687
- loc?: K.SourceLocationKind | null;
1688
- static?: boolean;
1689
- typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
1690
- value?: K.ExpressionKind | null;
1691
- variance?: K.VarianceKind | "plus" | "minus" | null;
1692
- }): namedTypes.ClassPrivateProperty;
1693
- }
1694
1907
  export interface ClassMethodBuilder {
1695
1908
  (kind: "get" | "set" | "method" | "constructor" | undefined, key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, params: K.PatternKind[], body: K.BlockStatementKind, computed?: boolean, staticParam?: boolean | null): namedTypes.ClassMethod;
1696
1909
  from(params: {
@@ -1711,6 +1924,7 @@ export interface ClassMethodBuilder {
1711
1924
  loc?: K.SourceLocationKind | null;
1712
1925
  optional?: boolean | null;
1713
1926
  params: K.PatternKind[];
1927
+ predicate?: K.FlowPredicateKind | null;
1714
1928
  rest?: K.IdentifierKind | null;
1715
1929
  returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
1716
1930
  static?: boolean | null;
@@ -1737,20 +1951,13 @@ export interface ClassPrivateMethodBuilder {
1737
1951
  loc?: K.SourceLocationKind | null;
1738
1952
  optional?: boolean | null;
1739
1953
  params: K.PatternKind[];
1954
+ predicate?: K.FlowPredicateKind | null;
1740
1955
  rest?: K.IdentifierKind | null;
1741
1956
  returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
1742
1957
  static?: boolean | null;
1743
1958
  typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
1744
1959
  }): namedTypes.ClassPrivateMethod;
1745
1960
  }
1746
- export interface PrivateNameBuilder {
1747
- (id: K.IdentifierKind): namedTypes.PrivateName;
1748
- from(params: {
1749
- comments?: K.CommentKind[] | null;
1750
- id: K.IdentifierKind;
1751
- loc?: K.SourceLocationKind | null;
1752
- }): namedTypes.PrivateName;
1753
- }
1754
1961
  export interface RestPropertyBuilder {
1755
1962
  (argument: K.ExpressionKind): namedTypes.RestProperty;
1756
1963
  from(params: {
@@ -1776,6 +1983,21 @@ export interface ImportBuilder {
1776
1983
  loc?: K.SourceLocationKind | null;
1777
1984
  }): namedTypes.Import;
1778
1985
  }
1986
+ export interface V8IntrinsicIdentifierBuilder {
1987
+ (name: string): namedTypes.V8IntrinsicIdentifier;
1988
+ from(params: {
1989
+ comments?: K.CommentKind[] | null;
1990
+ loc?: K.SourceLocationKind | null;
1991
+ name: string;
1992
+ }): namedTypes.V8IntrinsicIdentifier;
1993
+ }
1994
+ export interface TopicReferenceBuilder {
1995
+ (): namedTypes.TopicReference;
1996
+ from(params: {
1997
+ comments?: K.CommentKind[] | null;
1998
+ loc?: K.SourceLocationKind | null;
1999
+ }): namedTypes.TopicReference;
2000
+ }
1779
2001
  export interface TSQualifiedNameBuilder {
1780
2002
  (left: K.IdentifierKind | K.TSQualifiedNameKind, right: K.IdentifierKind | K.TSQualifiedNameKind): namedTypes.TSQualifiedName;
1781
2003
  from(params: {
@@ -1898,6 +2120,13 @@ export interface TSVoidKeywordBuilder {
1898
2120
  loc?: K.SourceLocationKind | null;
1899
2121
  }): namedTypes.TSVoidKeyword;
1900
2122
  }
2123
+ export interface TSIntrinsicKeywordBuilder {
2124
+ (): namedTypes.TSIntrinsicKeyword;
2125
+ from(params: {
2126
+ comments?: K.CommentKind[] | null;
2127
+ loc?: K.SourceLocationKind | null;
2128
+ }): namedTypes.TSIntrinsicKeyword;
2129
+ }
1901
2130
  export interface TSThisTypeBuilder {
1902
2131
  (): namedTypes.TSThisType;
1903
2132
  from(params: {
@@ -2313,28 +2542,6 @@ export interface TSParameterPropertyBuilder {
2313
2542
  readonly?: boolean;
2314
2543
  }): namedTypes.TSParameterProperty;
2315
2544
  }
2316
- export interface OptionalMemberExpressionBuilder {
2317
- (object: K.ExpressionKind, property: K.IdentifierKind | K.ExpressionKind, computed?: boolean, optional?: boolean): namedTypes.OptionalMemberExpression;
2318
- from(params: {
2319
- comments?: K.CommentKind[] | null;
2320
- computed?: boolean;
2321
- loc?: K.SourceLocationKind | null;
2322
- object: K.ExpressionKind;
2323
- optional?: boolean;
2324
- property: K.IdentifierKind | K.ExpressionKind;
2325
- }): namedTypes.OptionalMemberExpression;
2326
- }
2327
- export interface OptionalCallExpressionBuilder {
2328
- (callee: K.ExpressionKind, argumentsParam: (K.ExpressionKind | K.SpreadElementKind)[], optional?: boolean): namedTypes.OptionalCallExpression;
2329
- from(params: {
2330
- arguments: (K.ExpressionKind | K.SpreadElementKind)[];
2331
- callee: K.ExpressionKind;
2332
- comments?: K.CommentKind[] | null;
2333
- loc?: K.SourceLocationKind | null;
2334
- optional?: boolean;
2335
- typeArguments?: null | K.TypeParameterInstantiationKind;
2336
- }): namedTypes.OptionalCallExpression;
2337
- }
2338
2545
  export interface builders {
2339
2546
  file: FileBuilder;
2340
2547
  program: ProgramBuilder;
@@ -2391,40 +2598,58 @@ export interface builders {
2391
2598
  propertyPattern: PropertyPatternBuilder;
2392
2599
  objectPattern: ObjectPatternBuilder;
2393
2600
  arrayPattern: ArrayPatternBuilder;
2394
- methodDefinition: MethodDefinitionBuilder;
2395
2601
  spreadElement: SpreadElementBuilder;
2396
2602
  assignmentPattern: AssignmentPatternBuilder;
2603
+ methodDefinition: MethodDefinitionBuilder;
2397
2604
  classPropertyDefinition: ClassPropertyDefinitionBuilder;
2398
2605
  classProperty: ClassPropertyBuilder;
2399
2606
  classBody: ClassBodyBuilder;
2400
2607
  classDeclaration: ClassDeclarationBuilder;
2401
2608
  classExpression: ClassExpressionBuilder;
2609
+ super: SuperBuilder;
2402
2610
  importSpecifier: ImportSpecifierBuilder;
2403
- importNamespaceSpecifier: ImportNamespaceSpecifierBuilder;
2404
2611
  importDefaultSpecifier: ImportDefaultSpecifierBuilder;
2612
+ importNamespaceSpecifier: ImportNamespaceSpecifierBuilder;
2405
2613
  importDeclaration: ImportDeclarationBuilder;
2614
+ exportNamedDeclaration: ExportNamedDeclarationBuilder;
2615
+ exportSpecifier: ExportSpecifierBuilder;
2616
+ exportDefaultDeclaration: ExportDefaultDeclarationBuilder;
2617
+ exportAllDeclaration: ExportAllDeclarationBuilder;
2406
2618
  taggedTemplateExpression: TaggedTemplateExpressionBuilder;
2407
2619
  templateLiteral: TemplateLiteralBuilder;
2408
2620
  templateElement: TemplateElementBuilder;
2621
+ metaProperty: MetaPropertyBuilder;
2622
+ awaitExpression: AwaitExpressionBuilder;
2409
2623
  spreadProperty: SpreadPropertyBuilder;
2410
2624
  spreadPropertyPattern: SpreadPropertyPatternBuilder;
2411
- awaitExpression: AwaitExpressionBuilder;
2412
2625
  importExpression: ImportExpressionBuilder;
2626
+ chainExpression: ChainExpressionBuilder;
2627
+ optionalCallExpression: OptionalCallExpressionBuilder;
2628
+ optionalMemberExpression: OptionalMemberExpressionBuilder;
2629
+ staticBlock: StaticBlockBuilder;
2630
+ decorator: DecoratorBuilder;
2631
+ privateName: PrivateNameBuilder;
2632
+ classPrivateProperty: ClassPrivatePropertyBuilder;
2633
+ importAttribute: ImportAttributeBuilder;
2634
+ recordExpression: RecordExpressionBuilder;
2635
+ objectMethod: ObjectMethodBuilder;
2636
+ tupleExpression: TupleExpressionBuilder;
2637
+ moduleExpression: ModuleExpressionBuilder;
2413
2638
  jsxAttribute: JSXAttributeBuilder;
2414
2639
  jsxIdentifier: JSXIdentifierBuilder;
2415
2640
  jsxNamespacedName: JSXNamespacedNameBuilder;
2416
2641
  jsxExpressionContainer: JSXExpressionContainerBuilder;
2642
+ jsxElement: JSXElementBuilder;
2643
+ jsxFragment: JSXFragmentBuilder;
2417
2644
  jsxMemberExpression: JSXMemberExpressionBuilder;
2418
2645
  jsxSpreadAttribute: JSXSpreadAttributeBuilder;
2419
- jsxElement: JSXElementBuilder;
2646
+ jsxEmptyExpression: JSXEmptyExpressionBuilder;
2647
+ jsxText: JSXTextBuilder;
2648
+ jsxSpreadChild: JSXSpreadChildBuilder;
2420
2649
  jsxOpeningElement: JSXOpeningElementBuilder;
2421
2650
  jsxClosingElement: JSXClosingElementBuilder;
2422
- jsxFragment: JSXFragmentBuilder;
2423
- jsxText: JSXTextBuilder;
2424
2651
  jsxOpeningFragment: JSXOpeningFragmentBuilder;
2425
2652
  jsxClosingFragment: JSXClosingFragmentBuilder;
2426
- jsxEmptyExpression: JSXEmptyExpressionBuilder;
2427
- jsxSpreadChild: JSXSpreadChildBuilder;
2428
2653
  typeParameterDeclaration: TypeParameterDeclarationBuilder;
2429
2654
  tsTypeParameterDeclaration: TSTypeParameterDeclarationBuilder;
2430
2655
  typeParameterInstantiation: TypeParameterInstantiationBuilder;
@@ -2435,9 +2660,12 @@ export interface builders {
2435
2660
  emptyTypeAnnotation: EmptyTypeAnnotationBuilder;
2436
2661
  mixedTypeAnnotation: MixedTypeAnnotationBuilder;
2437
2662
  voidTypeAnnotation: VoidTypeAnnotationBuilder;
2663
+ symbolTypeAnnotation: SymbolTypeAnnotationBuilder;
2438
2664
  numberTypeAnnotation: NumberTypeAnnotationBuilder;
2665
+ bigIntTypeAnnotation: BigIntTypeAnnotationBuilder;
2439
2666
  numberLiteralTypeAnnotation: NumberLiteralTypeAnnotationBuilder;
2440
2667
  numericLiteralTypeAnnotation: NumericLiteralTypeAnnotationBuilder;
2668
+ bigIntLiteralTypeAnnotation: BigIntLiteralTypeAnnotationBuilder;
2441
2669
  stringTypeAnnotation: StringTypeAnnotationBuilder;
2442
2670
  stringLiteralTypeAnnotation: StringLiteralTypeAnnotationBuilder;
2443
2671
  booleanTypeAnnotation: BooleanTypeAnnotationBuilder;
@@ -2461,6 +2689,8 @@ export interface builders {
2461
2689
  qualifiedTypeIdentifier: QualifiedTypeIdentifierBuilder;
2462
2690
  genericTypeAnnotation: GenericTypeAnnotationBuilder;
2463
2691
  memberTypeAnnotation: MemberTypeAnnotationBuilder;
2692
+ indexedAccessType: IndexedAccessTypeBuilder;
2693
+ optionalIndexedAccessType: OptionalIndexedAccessTypeBuilder;
2464
2694
  unionTypeAnnotation: UnionTypeAnnotationBuilder;
2465
2695
  intersectionTypeAnnotation: IntersectionTypeAnnotationBuilder;
2466
2696
  typeofTypeAnnotation: TypeofTypeAnnotationBuilder;
@@ -2470,8 +2700,8 @@ export interface builders {
2470
2700
  interfaceDeclaration: InterfaceDeclarationBuilder;
2471
2701
  declareInterface: DeclareInterfaceBuilder;
2472
2702
  typeAlias: TypeAliasBuilder;
2473
- opaqueType: OpaqueTypeBuilder;
2474
2703
  declareTypeAlias: DeclareTypeAliasBuilder;
2704
+ opaqueType: OpaqueTypeBuilder;
2475
2705
  declareOpaqueType: DeclareOpaqueTypeBuilder;
2476
2706
  typeCastExpression: TypeCastExpressionBuilder;
2477
2707
  tupleTypeAnnotation: TupleTypeAnnotationBuilder;
@@ -2481,26 +2711,28 @@ export interface builders {
2481
2711
  declareModule: DeclareModuleBuilder;
2482
2712
  declareModuleExports: DeclareModuleExportsBuilder;
2483
2713
  declareExportDeclaration: DeclareExportDeclarationBuilder;
2484
- exportSpecifier: ExportSpecifierBuilder;
2485
2714
  exportBatchSpecifier: ExportBatchSpecifierBuilder;
2486
2715
  declareExportAllDeclaration: DeclareExportAllDeclarationBuilder;
2487
2716
  inferredPredicate: InferredPredicateBuilder;
2488
2717
  declaredPredicate: DeclaredPredicateBuilder;
2718
+ enumDeclaration: EnumDeclarationBuilder;
2719
+ enumBooleanBody: EnumBooleanBodyBuilder;
2720
+ enumNumberBody: EnumNumberBodyBuilder;
2721
+ enumStringBody: EnumStringBodyBuilder;
2722
+ enumSymbolBody: EnumSymbolBodyBuilder;
2723
+ enumBooleanMember: EnumBooleanMemberBuilder;
2724
+ enumNumberMember: EnumNumberMemberBuilder;
2725
+ enumStringMember: EnumStringMemberBuilder;
2726
+ enumDefaultedMember: EnumDefaultedMemberBuilder;
2489
2727
  exportDeclaration: ExportDeclarationBuilder;
2490
2728
  block: BlockBuilder;
2491
2729
  line: LineBuilder;
2492
2730
  noop: NoopBuilder;
2493
2731
  doExpression: DoExpressionBuilder;
2494
- super: SuperBuilder;
2495
2732
  bindExpression: BindExpressionBuilder;
2496
- decorator: DecoratorBuilder;
2497
- metaProperty: MetaPropertyBuilder;
2498
2733
  parenthesizedExpression: ParenthesizedExpressionBuilder;
2499
- exportDefaultDeclaration: ExportDefaultDeclarationBuilder;
2500
- exportNamedDeclaration: ExportNamedDeclarationBuilder;
2501
2734
  exportNamespaceSpecifier: ExportNamespaceSpecifierBuilder;
2502
2735
  exportDefaultSpecifier: ExportDefaultSpecifierBuilder;
2503
- exportAllDeclaration: ExportAllDeclarationBuilder;
2504
2736
  commentBlock: CommentBlockBuilder;
2505
2737
  commentLine: CommentLineBuilder;
2506
2738
  directive: DirectiveBuilder;
@@ -2509,17 +2741,17 @@ export interface builders {
2509
2741
  stringLiteral: StringLiteralBuilder;
2510
2742
  numericLiteral: NumericLiteralBuilder;
2511
2743
  bigIntLiteral: BigIntLiteralBuilder;
2744
+ decimalLiteral: DecimalLiteralBuilder;
2512
2745
  nullLiteral: NullLiteralBuilder;
2513
2746
  booleanLiteral: BooleanLiteralBuilder;
2514
2747
  regExpLiteral: RegExpLiteralBuilder;
2515
- objectMethod: ObjectMethodBuilder;
2516
- classPrivateProperty: ClassPrivatePropertyBuilder;
2517
2748
  classMethod: ClassMethodBuilder;
2518
2749
  classPrivateMethod: ClassPrivateMethodBuilder;
2519
- privateName: PrivateNameBuilder;
2520
2750
  restProperty: RestPropertyBuilder;
2521
2751
  forAwaitStatement: ForAwaitStatementBuilder;
2522
2752
  import: ImportBuilder;
2753
+ v8IntrinsicIdentifier: V8IntrinsicIdentifierBuilder;
2754
+ topicReference: TopicReferenceBuilder;
2523
2755
  tsQualifiedName: TSQualifiedNameBuilder;
2524
2756
  tsTypeReference: TSTypeReferenceBuilder;
2525
2757
  tsAsExpression: TSAsExpressionBuilder;
@@ -2536,6 +2768,7 @@ export interface builders {
2536
2768
  tsUndefinedKeyword: TSUndefinedKeywordBuilder;
2537
2769
  tsUnknownKeyword: TSUnknownKeywordBuilder;
2538
2770
  tsVoidKeyword: TSVoidKeywordBuilder;
2771
+ tsIntrinsicKeyword: TSIntrinsicKeywordBuilder;
2539
2772
  tsThisType: TSThisTypeBuilder;
2540
2773
  tsArrayType: TSArrayTypeBuilder;
2541
2774
  tsLiteralType: TSLiteralTypeBuilder;
@@ -2578,7 +2811,5 @@ export interface builders {
2578
2811
  tsInterfaceBody: TSInterfaceBodyBuilder;
2579
2812
  tsInterfaceDeclaration: TSInterfaceDeclarationBuilder;
2580
2813
  tsParameterProperty: TSParameterPropertyBuilder;
2581
- optionalMemberExpression: OptionalMemberExpressionBuilder;
2582
- optionalCallExpression: OptionalCallExpressionBuilder;
2583
2814
  [builderName: string]: any;
2584
2815
  }