ast-types 0.13.2 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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
  }
@@ -444,6 +446,7 @@ export interface ArrowFunctionExpressionBuilder {
444
446
  id?: null;
445
447
  loc?: K.SourceLocationKind | null;
446
448
  params: K.PatternKind[];
449
+ predicate?: K.FlowPredicateKind | null;
447
450
  rest?: K.IdentifierKind | null;
448
451
  returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
449
452
  typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
@@ -452,6 +455,7 @@ export interface ArrowFunctionExpressionBuilder {
452
455
  export interface ForOfStatementBuilder {
453
456
  (left: K.VariableDeclarationKind | K.PatternKind, right: K.ExpressionKind, body: K.StatementKind): namedTypes.ForOfStatement;
454
457
  from(params: {
458
+ await?: boolean;
455
459
  body: K.StatementKind;
456
460
  comments?: K.CommentKind[] | null;
457
461
  left: K.VariableDeclarationKind | K.PatternKind;
@@ -538,19 +542,6 @@ export interface ArrayPatternBuilder {
538
542
  loc?: K.SourceLocationKind | null;
539
543
  }): namedTypes.ArrayPattern;
540
544
  }
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
545
  export interface SpreadElementBuilder {
555
546
  (argument: K.ExpressionKind): namedTypes.SpreadElement;
556
547
  from(params: {
@@ -568,6 +559,19 @@ export interface AssignmentPatternBuilder {
568
559
  right: K.ExpressionKind;
569
560
  }): namedTypes.AssignmentPattern;
570
561
  }
562
+ export interface MethodDefinitionBuilder {
563
+ (kind: "constructor" | "method" | "get" | "set", key: K.ExpressionKind, value: K.FunctionKind, staticParam?: boolean): namedTypes.MethodDefinition;
564
+ from(params: {
565
+ comments?: K.CommentKind[] | null;
566
+ computed?: boolean;
567
+ decorators?: K.DecoratorKind[] | null;
568
+ key: K.ExpressionKind;
569
+ kind: "constructor" | "method" | "get" | "set";
570
+ loc?: K.SourceLocationKind | null;
571
+ static?: boolean;
572
+ value: K.FunctionKind;
573
+ }): namedTypes.MethodDefinition;
574
+ }
571
575
  export interface ClassPropertyDefinitionBuilder {
572
576
  (definition: K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind): namedTypes.ClassPropertyDefinition;
573
577
  from(params: {
@@ -624,6 +628,13 @@ export interface ClassExpressionBuilder {
624
628
  typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
625
629
  }): namedTypes.ClassExpression;
626
630
  }
631
+ export interface SuperBuilder {
632
+ (): namedTypes.Super;
633
+ from(params: {
634
+ comments?: K.CommentKind[] | null;
635
+ loc?: K.SourceLocationKind | null;
636
+ }): namedTypes.Super;
637
+ }
627
638
  export interface ImportSpecifierBuilder {
628
639
  (imported: K.IdentifierKind, local?: K.IdentifierKind | null): namedTypes.ImportSpecifier;
629
640
  from(params: {
@@ -635,36 +646,74 @@ export interface ImportSpecifierBuilder {
635
646
  name?: K.IdentifierKind | null;
636
647
  }): namedTypes.ImportSpecifier;
637
648
  }
638
- export interface ImportNamespaceSpecifierBuilder {
639
- (local?: K.IdentifierKind | null): namedTypes.ImportNamespaceSpecifier;
649
+ export interface ImportDefaultSpecifierBuilder {
650
+ (local?: K.IdentifierKind | null): namedTypes.ImportDefaultSpecifier;
640
651
  from(params: {
641
652
  comments?: K.CommentKind[] | null;
642
653
  id?: K.IdentifierKind | null;
643
654
  loc?: K.SourceLocationKind | null;
644
655
  local?: K.IdentifierKind | null;
645
656
  name?: K.IdentifierKind | null;
646
- }): namedTypes.ImportNamespaceSpecifier;
657
+ }): namedTypes.ImportDefaultSpecifier;
647
658
  }
648
- export interface ImportDefaultSpecifierBuilder {
649
- (local?: K.IdentifierKind | null): namedTypes.ImportDefaultSpecifier;
659
+ export interface ImportNamespaceSpecifierBuilder {
660
+ (local?: K.IdentifierKind | null): namedTypes.ImportNamespaceSpecifier;
650
661
  from(params: {
651
662
  comments?: K.CommentKind[] | null;
652
663
  id?: K.IdentifierKind | null;
653
664
  loc?: K.SourceLocationKind | null;
654
665
  local?: K.IdentifierKind | null;
655
666
  name?: K.IdentifierKind | null;
656
- }): namedTypes.ImportDefaultSpecifier;
667
+ }): namedTypes.ImportNamespaceSpecifier;
657
668
  }
658
669
  export interface ImportDeclarationBuilder {
659
- (specifiers: (K.ImportSpecifierKind | K.ImportNamespaceSpecifierKind | K.ImportDefaultSpecifierKind)[] | undefined, source: K.LiteralKind, importKind?: "value" | "type"): namedTypes.ImportDeclaration;
670
+ (specifiers: (K.ImportSpecifierKind | K.ImportNamespaceSpecifierKind | K.ImportDefaultSpecifierKind)[] | undefined, source: K.LiteralKind, importKind?: "value" | "type" | "typeof"): namedTypes.ImportDeclaration;
660
671
  from(params: {
661
672
  comments?: K.CommentKind[] | null;
662
- importKind?: "value" | "type";
673
+ importKind?: "value" | "type" | "typeof";
663
674
  loc?: K.SourceLocationKind | null;
664
675
  source: K.LiteralKind;
665
676
  specifiers?: (K.ImportSpecifierKind | K.ImportNamespaceSpecifierKind | K.ImportDefaultSpecifierKind)[];
666
677
  }): namedTypes.ImportDeclaration;
667
678
  }
679
+ export interface ExportNamedDeclarationBuilder {
680
+ (declaration: K.DeclarationKind | null, specifiers?: K.ExportSpecifierKind[], source?: K.LiteralKind | null): namedTypes.ExportNamedDeclaration;
681
+ from(params: {
682
+ comments?: K.CommentKind[] | null;
683
+ declaration: K.DeclarationKind | null;
684
+ loc?: K.SourceLocationKind | null;
685
+ source?: K.LiteralKind | null;
686
+ specifiers?: K.ExportSpecifierKind[];
687
+ }): namedTypes.ExportNamedDeclaration;
688
+ }
689
+ export interface ExportSpecifierBuilder {
690
+ (id?: K.IdentifierKind | null, name?: K.IdentifierKind | null): namedTypes.ExportSpecifier;
691
+ from(params: {
692
+ comments?: K.CommentKind[] | null;
693
+ exported: K.IdentifierKind;
694
+ id?: K.IdentifierKind | null;
695
+ loc?: K.SourceLocationKind | null;
696
+ local?: K.IdentifierKind | null;
697
+ name?: K.IdentifierKind | null;
698
+ }): namedTypes.ExportSpecifier;
699
+ }
700
+ export interface ExportDefaultDeclarationBuilder {
701
+ (declaration: K.DeclarationKind | K.ExpressionKind): namedTypes.ExportDefaultDeclaration;
702
+ from(params: {
703
+ comments?: K.CommentKind[] | null;
704
+ declaration: K.DeclarationKind | K.ExpressionKind;
705
+ loc?: K.SourceLocationKind | null;
706
+ }): namedTypes.ExportDefaultDeclaration;
707
+ }
708
+ export interface ExportAllDeclarationBuilder {
709
+ (source: K.LiteralKind, exported: K.IdentifierKind | null): namedTypes.ExportAllDeclaration;
710
+ from(params: {
711
+ comments?: K.CommentKind[] | null;
712
+ exported: K.IdentifierKind | null;
713
+ loc?: K.SourceLocationKind | null;
714
+ source: K.LiteralKind;
715
+ }): namedTypes.ExportAllDeclaration;
716
+ }
668
717
  export interface TaggedTemplateExpressionBuilder {
669
718
  (tag: K.ExpressionKind, quasi: K.TemplateLiteralKind): namedTypes.TaggedTemplateExpression;
670
719
  from(params: {
@@ -685,7 +734,7 @@ export interface TemplateLiteralBuilder {
685
734
  }
686
735
  export interface TemplateElementBuilder {
687
736
  (value: {
688
- cooked: string;
737
+ cooked: string | null;
689
738
  raw: string;
690
739
  }, tail: boolean): namedTypes.TemplateElement;
691
740
  from(params: {
@@ -693,11 +742,29 @@ export interface TemplateElementBuilder {
693
742
  loc?: K.SourceLocationKind | null;
694
743
  tail: boolean;
695
744
  value: {
696
- cooked: string;
745
+ cooked: string | null;
697
746
  raw: string;
698
747
  };
699
748
  }): namedTypes.TemplateElement;
700
749
  }
750
+ export interface MetaPropertyBuilder {
751
+ (meta: K.IdentifierKind, property: K.IdentifierKind): namedTypes.MetaProperty;
752
+ from(params: {
753
+ comments?: K.CommentKind[] | null;
754
+ loc?: K.SourceLocationKind | null;
755
+ meta: K.IdentifierKind;
756
+ property: K.IdentifierKind;
757
+ }): namedTypes.MetaProperty;
758
+ }
759
+ export interface AwaitExpressionBuilder {
760
+ (argument: K.ExpressionKind | null, all?: boolean): namedTypes.AwaitExpression;
761
+ from(params: {
762
+ all?: boolean;
763
+ argument: K.ExpressionKind | null;
764
+ comments?: K.CommentKind[] | null;
765
+ loc?: K.SourceLocationKind | null;
766
+ }): namedTypes.AwaitExpression;
767
+ }
701
768
  export interface SpreadPropertyBuilder {
702
769
  (argument: K.ExpressionKind): namedTypes.SpreadProperty;
703
770
  from(params: {
@@ -714,22 +781,43 @@ export interface SpreadPropertyPatternBuilder {
714
781
  loc?: K.SourceLocationKind | null;
715
782
  }): namedTypes.SpreadPropertyPattern;
716
783
  }
717
- export interface AwaitExpressionBuilder {
718
- (argument: K.ExpressionKind | null, all?: boolean): namedTypes.AwaitExpression;
784
+ export interface ImportExpressionBuilder {
785
+ (source: K.ExpressionKind): namedTypes.ImportExpression;
719
786
  from(params: {
720
- all?: boolean;
721
- argument: K.ExpressionKind | null;
722
787
  comments?: K.CommentKind[] | null;
723
788
  loc?: K.SourceLocationKind | null;
724
- }): namedTypes.AwaitExpression;
789
+ source: K.ExpressionKind;
790
+ }): namedTypes.ImportExpression;
791
+ }
792
+ export interface OptionalMemberExpressionBuilder {
793
+ (object: K.ExpressionKind, property: K.IdentifierKind | K.ExpressionKind, computed?: boolean, optional?: boolean): namedTypes.OptionalMemberExpression;
794
+ from(params: {
795
+ comments?: K.CommentKind[] | null;
796
+ computed?: boolean;
797
+ loc?: K.SourceLocationKind | null;
798
+ object: K.ExpressionKind;
799
+ optional?: boolean;
800
+ property: K.IdentifierKind | K.ExpressionKind;
801
+ }): namedTypes.OptionalMemberExpression;
802
+ }
803
+ export interface OptionalCallExpressionBuilder {
804
+ (callee: K.ExpressionKind, argumentsParam: (K.ExpressionKind | K.SpreadElementKind)[], optional?: boolean): namedTypes.OptionalCallExpression;
805
+ from(params: {
806
+ arguments: (K.ExpressionKind | K.SpreadElementKind)[];
807
+ callee: K.ExpressionKind;
808
+ comments?: K.CommentKind[] | null;
809
+ loc?: K.SourceLocationKind | null;
810
+ optional?: boolean;
811
+ typeArguments?: null | K.TypeParameterInstantiationKind;
812
+ }): namedTypes.OptionalCallExpression;
725
813
  }
726
814
  export interface JSXAttributeBuilder {
727
- (name: K.JSXIdentifierKind | K.JSXNamespacedNameKind, value?: K.LiteralKind | K.JSXExpressionContainerKind | null): namedTypes.JSXAttribute;
815
+ (name: K.JSXIdentifierKind | K.JSXNamespacedNameKind, value?: K.LiteralKind | K.JSXExpressionContainerKind | K.JSXElementKind | K.JSXFragmentKind | null): namedTypes.JSXAttribute;
728
816
  from(params: {
729
817
  comments?: K.CommentKind[] | null;
730
818
  loc?: K.SourceLocationKind | null;
731
819
  name: K.JSXIdentifierKind | K.JSXNamespacedNameKind;
732
- value?: K.LiteralKind | K.JSXExpressionContainerKind | null;
820
+ value?: K.LiteralKind | K.JSXExpressionContainerKind | K.JSXElementKind | K.JSXFragmentKind | null;
733
821
  }): namedTypes.JSXAttribute;
734
822
  }
735
823
  export interface JSXIdentifierBuilder {
@@ -752,13 +840,36 @@ export interface JSXNamespacedNameBuilder {
752
840
  }): namedTypes.JSXNamespacedName;
753
841
  }
754
842
  export interface JSXExpressionContainerBuilder {
755
- (expression: K.ExpressionKind): namedTypes.JSXExpressionContainer;
843
+ (expression: K.ExpressionKind | K.JSXEmptyExpressionKind): namedTypes.JSXExpressionContainer;
756
844
  from(params: {
757
845
  comments?: K.CommentKind[] | null;
758
- expression: K.ExpressionKind;
846
+ expression: K.ExpressionKind | K.JSXEmptyExpressionKind;
759
847
  loc?: K.SourceLocationKind | null;
760
848
  }): namedTypes.JSXExpressionContainer;
761
849
  }
850
+ export interface JSXElementBuilder {
851
+ (openingElement: K.JSXOpeningElementKind, closingElement?: K.JSXClosingElementKind | null, children?: (K.JSXTextKind | K.JSXExpressionContainerKind | K.JSXSpreadChildKind | K.JSXElementKind | K.JSXFragmentKind | K.LiteralKind)[]): namedTypes.JSXElement;
852
+ from(params: {
853
+ attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[];
854
+ children?: (K.JSXTextKind | K.JSXExpressionContainerKind | K.JSXSpreadChildKind | K.JSXElementKind | K.JSXFragmentKind | K.LiteralKind)[];
855
+ closingElement?: K.JSXClosingElementKind | null;
856
+ comments?: K.CommentKind[] | null;
857
+ loc?: K.SourceLocationKind | null;
858
+ name?: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind;
859
+ openingElement: K.JSXOpeningElementKind;
860
+ selfClosing?: boolean;
861
+ }): namedTypes.JSXElement;
862
+ }
863
+ export interface JSXFragmentBuilder {
864
+ (openingFragment: K.JSXOpeningFragmentKind, closingFragment: K.JSXClosingFragmentKind, children?: (K.JSXTextKind | K.JSXExpressionContainerKind | K.JSXSpreadChildKind | K.JSXElementKind | K.JSXFragmentKind | K.LiteralKind)[]): namedTypes.JSXFragment;
865
+ from(params: {
866
+ children?: (K.JSXTextKind | K.JSXExpressionContainerKind | K.JSXSpreadChildKind | K.JSXElementKind | K.JSXFragmentKind | K.LiteralKind)[];
867
+ closingFragment: K.JSXClosingFragmentKind;
868
+ comments?: K.CommentKind[] | null;
869
+ loc?: K.SourceLocationKind | null;
870
+ openingFragment: K.JSXOpeningFragmentKind;
871
+ }): namedTypes.JSXFragment;
872
+ }
762
873
  export interface JSXMemberExpressionBuilder {
763
874
  (object: K.JSXIdentifierKind | K.JSXMemberExpressionKind, property: K.JSXIdentifierKind): namedTypes.JSXMemberExpression;
764
875
  from(params: {
@@ -777,18 +888,33 @@ export interface JSXSpreadAttributeBuilder {
777
888
  loc?: K.SourceLocationKind | null;
778
889
  }): namedTypes.JSXSpreadAttribute;
779
890
  }
780
- export interface JSXElementBuilder {
781
- (openingElement: K.JSXOpeningElementKind, closingElement?: K.JSXClosingElementKind | null, children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[]): namedTypes.JSXElement;
891
+ export interface JSXEmptyExpressionBuilder {
892
+ (): namedTypes.JSXEmptyExpression;
782
893
  from(params: {
783
- attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[];
784
- children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[];
785
- closingElement?: K.JSXClosingElementKind | null;
786
894
  comments?: K.CommentKind[] | null;
787
895
  loc?: K.SourceLocationKind | null;
788
- name?: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind;
789
- openingElement: K.JSXOpeningElementKind;
790
- selfClosing?: boolean;
791
- }): namedTypes.JSXElement;
896
+ }): namedTypes.JSXEmptyExpression;
897
+ }
898
+ export interface JSXTextBuilder {
899
+ (value: string, raw?: string): namedTypes.JSXText;
900
+ from(params: {
901
+ comments?: K.CommentKind[] | null;
902
+ loc?: K.SourceLocationKind | null;
903
+ raw?: string;
904
+ regex?: {
905
+ pattern: string;
906
+ flags: string;
907
+ } | null;
908
+ value: string;
909
+ }): namedTypes.JSXText;
910
+ }
911
+ export interface JSXSpreadChildBuilder {
912
+ (expression: K.ExpressionKind): namedTypes.JSXSpreadChild;
913
+ from(params: {
914
+ comments?: K.CommentKind[] | null;
915
+ expression: K.ExpressionKind;
916
+ loc?: K.SourceLocationKind | null;
917
+ }): namedTypes.JSXSpreadChild;
792
918
  }
793
919
  export interface JSXOpeningElementBuilder {
794
920
  (name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind, attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[], selfClosing?: boolean): namedTypes.JSXOpeningElement;
@@ -808,28 +934,6 @@ export interface JSXClosingElementBuilder {
808
934
  name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind;
809
935
  }): namedTypes.JSXClosingElement;
810
936
  }
811
- export interface JSXFragmentBuilder {
812
- (openingElement: K.JSXOpeningFragmentKind, closingElement: K.JSXClosingFragmentKind, children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[]): namedTypes.JSXFragment;
813
- from(params: {
814
- children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[];
815
- closingElement: K.JSXClosingFragmentKind;
816
- comments?: K.CommentKind[] | null;
817
- loc?: K.SourceLocationKind | null;
818
- openingElement: K.JSXOpeningFragmentKind;
819
- }): namedTypes.JSXFragment;
820
- }
821
- export interface JSXTextBuilder {
822
- (value: string): namedTypes.JSXText;
823
- from(params: {
824
- comments?: K.CommentKind[] | null;
825
- loc?: K.SourceLocationKind | null;
826
- regex?: {
827
- pattern: string;
828
- flags: string;
829
- } | null;
830
- value: string;
831
- }): namedTypes.JSXText;
832
- }
833
937
  export interface JSXOpeningFragmentBuilder {
834
938
  (): namedTypes.JSXOpeningFragment;
835
939
  from(params: {
@@ -844,20 +948,35 @@ export interface JSXClosingFragmentBuilder {
844
948
  loc?: K.SourceLocationKind | null;
845
949
  }): namedTypes.JSXClosingFragment;
846
950
  }
847
- export interface JSXEmptyExpressionBuilder {
848
- (): namedTypes.JSXEmptyExpression;
951
+ export interface DecoratorBuilder {
952
+ (expression: K.ExpressionKind): namedTypes.Decorator;
849
953
  from(params: {
850
954
  comments?: K.CommentKind[] | null;
955
+ expression: K.ExpressionKind;
851
956
  loc?: K.SourceLocationKind | null;
852
- }): namedTypes.JSXEmptyExpression;
957
+ }): namedTypes.Decorator;
853
958
  }
854
- export interface JSXSpreadChildBuilder {
855
- (expression: K.ExpressionKind): namedTypes.JSXSpreadChild;
959
+ export interface PrivateNameBuilder {
960
+ (id: K.IdentifierKind): namedTypes.PrivateName;
856
961
  from(params: {
857
962
  comments?: K.CommentKind[] | null;
858
- expression: K.ExpressionKind;
963
+ id: K.IdentifierKind;
859
964
  loc?: K.SourceLocationKind | null;
860
- }): namedTypes.JSXSpreadChild;
965
+ }): namedTypes.PrivateName;
966
+ }
967
+ export interface ClassPrivatePropertyBuilder {
968
+ (key: K.PrivateNameKind, value?: K.ExpressionKind | null): namedTypes.ClassPrivateProperty;
969
+ from(params: {
970
+ access?: "public" | "private" | "protected" | undefined;
971
+ comments?: K.CommentKind[] | null;
972
+ computed?: boolean;
973
+ key: K.PrivateNameKind;
974
+ loc?: K.SourceLocationKind | null;
975
+ static?: boolean;
976
+ typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
977
+ value?: K.ExpressionKind | null;
978
+ variance?: K.VarianceKind | "plus" | "minus" | null;
979
+ }): namedTypes.ClassPrivateProperty;
861
980
  }
862
981
  export interface TypeParameterDeclarationBuilder {
863
982
  (params: K.TypeParameterKind[]): namedTypes.TypeParameterDeclaration;
@@ -938,6 +1057,13 @@ export interface VoidTypeAnnotationBuilder {
938
1057
  loc?: K.SourceLocationKind | null;
939
1058
  }): namedTypes.VoidTypeAnnotation;
940
1059
  }
1060
+ export interface SymbolTypeAnnotationBuilder {
1061
+ (): namedTypes.SymbolTypeAnnotation;
1062
+ from(params: {
1063
+ comments?: K.CommentKind[] | null;
1064
+ loc?: K.SourceLocationKind | null;
1065
+ }): namedTypes.SymbolTypeAnnotation;
1066
+ }
941
1067
  export interface NumberTypeAnnotationBuilder {
942
1068
  (): namedTypes.NumberTypeAnnotation;
943
1069
  from(params: {
@@ -945,6 +1071,13 @@ export interface NumberTypeAnnotationBuilder {
945
1071
  loc?: K.SourceLocationKind | null;
946
1072
  }): namedTypes.NumberTypeAnnotation;
947
1073
  }
1074
+ export interface BigIntTypeAnnotationBuilder {
1075
+ (): namedTypes.BigIntTypeAnnotation;
1076
+ from(params: {
1077
+ comments?: K.CommentKind[] | null;
1078
+ loc?: K.SourceLocationKind | null;
1079
+ }): namedTypes.BigIntTypeAnnotation;
1080
+ }
948
1081
  export interface NumberLiteralTypeAnnotationBuilder {
949
1082
  (value: number, raw: string): namedTypes.NumberLiteralTypeAnnotation;
950
1083
  from(params: {
@@ -963,6 +1096,15 @@ export interface NumericLiteralTypeAnnotationBuilder {
963
1096
  value: number;
964
1097
  }): namedTypes.NumericLiteralTypeAnnotation;
965
1098
  }
1099
+ export interface BigIntLiteralTypeAnnotationBuilder {
1100
+ (value: null, raw: string): namedTypes.BigIntLiteralTypeAnnotation;
1101
+ from(params: {
1102
+ comments?: K.CommentKind[] | null;
1103
+ loc?: K.SourceLocationKind | null;
1104
+ raw: string;
1105
+ value: null;
1106
+ }): namedTypes.BigIntLiteralTypeAnnotation;
1107
+ }
966
1108
  export interface StringTypeAnnotationBuilder {
967
1109
  (): namedTypes.StringTypeAnnotation;
968
1110
  from(params: {
@@ -1050,11 +1192,11 @@ export interface FunctionTypeAnnotationBuilder {
1050
1192
  }): namedTypes.FunctionTypeAnnotation;
1051
1193
  }
1052
1194
  export interface FunctionTypeParamBuilder {
1053
- (name: K.IdentifierKind, typeAnnotation: K.FlowTypeKind, optional: boolean): namedTypes.FunctionTypeParam;
1195
+ (name: K.IdentifierKind | null, typeAnnotation: K.FlowTypeKind, optional: boolean): namedTypes.FunctionTypeParam;
1054
1196
  from(params: {
1055
1197
  comments?: K.CommentKind[] | null;
1056
1198
  loc?: K.SourceLocationKind | null;
1057
- name: K.IdentifierKind;
1199
+ name: K.IdentifierKind | null;
1058
1200
  optional: boolean;
1059
1201
  typeAnnotation: K.FlowTypeKind;
1060
1202
  }): namedTypes.FunctionTypeParam;
@@ -1106,6 +1248,7 @@ export interface ObjectTypeIndexerBuilder {
1106
1248
  id: K.IdentifierKind;
1107
1249
  key: K.FlowTypeKind;
1108
1250
  loc?: K.SourceLocationKind | null;
1251
+ static?: boolean;
1109
1252
  value: K.FlowTypeKind;
1110
1253
  variance?: K.VarianceKind | "plus" | "minus" | null;
1111
1254
  }): namedTypes.ObjectTypeIndexer;
@@ -1191,10 +1334,11 @@ export interface TypeofTypeAnnotationBuilder {
1191
1334
  }): namedTypes.TypeofTypeAnnotation;
1192
1335
  }
1193
1336
  export interface TypeParameterBuilder {
1194
- (name: string, variance?: K.VarianceKind | "plus" | "minus" | null, bound?: K.TypeAnnotationKind | null): namedTypes.TypeParameter;
1337
+ (name: string, variance?: K.VarianceKind | "plus" | "minus" | null, bound?: K.TypeAnnotationKind | null, defaultParam?: K.FlowTypeKind | null): namedTypes.TypeParameter;
1195
1338
  from(params: {
1196
1339
  bound?: K.TypeAnnotationKind | null;
1197
1340
  comments?: K.CommentKind[] | null;
1341
+ default?: K.FlowTypeKind | null;
1198
1342
  loc?: K.SourceLocationKind | null;
1199
1343
  name: string;
1200
1344
  variance?: K.VarianceKind | "plus" | "minus" | null;
@@ -1250,34 +1394,35 @@ export interface TypeAliasBuilder {
1250
1394
  typeParameters: K.TypeParameterDeclarationKind | null;
1251
1395
  }): namedTypes.TypeAlias;
1252
1396
  }
1253
- export interface OpaqueTypeBuilder {
1254
- (id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, impltype: K.FlowTypeKind, supertype: K.FlowTypeKind): namedTypes.OpaqueType;
1397
+ export interface DeclareTypeAliasBuilder {
1398
+ (id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, right: K.FlowTypeKind): namedTypes.DeclareTypeAlias;
1255
1399
  from(params: {
1256
1400
  comments?: K.CommentKind[] | null;
1257
1401
  id: K.IdentifierKind;
1258
- impltype: K.FlowTypeKind;
1259
1402
  loc?: K.SourceLocationKind | null;
1260
- supertype: K.FlowTypeKind;
1403
+ right: K.FlowTypeKind;
1261
1404
  typeParameters: K.TypeParameterDeclarationKind | null;
1262
- }): namedTypes.OpaqueType;
1405
+ }): namedTypes.DeclareTypeAlias;
1263
1406
  }
1264
- export interface DeclareTypeAliasBuilder {
1265
- (id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, right: K.FlowTypeKind): namedTypes.DeclareTypeAlias;
1407
+ export interface OpaqueTypeBuilder {
1408
+ (id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, impltype: K.FlowTypeKind, supertype: K.FlowTypeKind | null): namedTypes.OpaqueType;
1266
1409
  from(params: {
1267
1410
  comments?: K.CommentKind[] | null;
1268
1411
  id: K.IdentifierKind;
1412
+ impltype: K.FlowTypeKind;
1269
1413
  loc?: K.SourceLocationKind | null;
1270
- right: K.FlowTypeKind;
1414
+ supertype: K.FlowTypeKind | null;
1271
1415
  typeParameters: K.TypeParameterDeclarationKind | null;
1272
- }): namedTypes.DeclareTypeAlias;
1416
+ }): namedTypes.OpaqueType;
1273
1417
  }
1274
1418
  export interface DeclareOpaqueTypeBuilder {
1275
- (id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null): namedTypes.DeclareOpaqueType;
1419
+ (id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, supertype: K.FlowTypeKind | null): namedTypes.DeclareOpaqueType;
1276
1420
  from(params: {
1277
1421
  comments?: K.CommentKind[] | null;
1278
1422
  id: K.IdentifierKind;
1423
+ impltype: K.FlowTypeKind | null;
1279
1424
  loc?: K.SourceLocationKind | null;
1280
- right: K.FlowTypeKind;
1425
+ supertype: K.FlowTypeKind | null;
1281
1426
  typeParameters: K.TypeParameterDeclarationKind | null;
1282
1427
  }): namedTypes.DeclareOpaqueType;
1283
1428
  }
@@ -1312,6 +1457,7 @@ export interface DeclareFunctionBuilder {
1312
1457
  comments?: K.CommentKind[] | null;
1313
1458
  id: K.IdentifierKind;
1314
1459
  loc?: K.SourceLocationKind | null;
1460
+ predicate?: K.FlowPredicateKind | null;
1315
1461
  }): namedTypes.DeclareFunction;
1316
1462
  }
1317
1463
  export interface DeclareClassBuilder {
@@ -1343,27 +1489,16 @@ export interface DeclareModuleExportsBuilder {
1343
1489
  }): namedTypes.DeclareModuleExports;
1344
1490
  }
1345
1491
  export interface DeclareExportDeclarationBuilder {
1346
- (defaultParam: boolean, declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | null, specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[], source?: K.LiteralKind | null): namedTypes.DeclareExportDeclaration;
1492
+ (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;
1347
1493
  from(params: {
1348
1494
  comments?: K.CommentKind[] | null;
1349
- declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | null;
1495
+ declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | K.TypeAliasKind | K.DeclareOpaqueTypeKind | K.InterfaceDeclarationKind | null;
1350
1496
  default: boolean;
1351
1497
  loc?: K.SourceLocationKind | null;
1352
1498
  source?: K.LiteralKind | null;
1353
1499
  specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[];
1354
1500
  }): namedTypes.DeclareExportDeclaration;
1355
1501
  }
1356
- export interface ExportSpecifierBuilder {
1357
- (local: K.IdentifierKind | null | undefined, exported: K.IdentifierKind): namedTypes.ExportSpecifier;
1358
- from(params: {
1359
- comments?: K.CommentKind[] | null;
1360
- exported: K.IdentifierKind;
1361
- id?: K.IdentifierKind | null;
1362
- loc?: K.SourceLocationKind | null;
1363
- local?: K.IdentifierKind | null;
1364
- name?: K.IdentifierKind | null;
1365
- }): namedTypes.ExportSpecifier;
1366
- }
1367
1502
  export interface ExportBatchSpecifierBuilder {
1368
1503
  (): namedTypes.ExportBatchSpecifier;
1369
1504
  from(params: {
@@ -1394,6 +1529,69 @@ export interface DeclaredPredicateBuilder {
1394
1529
  value: K.ExpressionKind;
1395
1530
  }): namedTypes.DeclaredPredicate;
1396
1531
  }
1532
+ export interface EnumDeclarationBuilder {
1533
+ (id: K.IdentifierKind, body: K.EnumBooleanBodyKind | K.EnumNumberBodyKind | K.EnumStringBodyKind | K.EnumSymbolBodyKind): namedTypes.EnumDeclaration;
1534
+ from(params: {
1535
+ body: K.EnumBooleanBodyKind | K.EnumNumberBodyKind | K.EnumStringBodyKind | K.EnumSymbolBodyKind;
1536
+ comments?: K.CommentKind[] | null;
1537
+ id: K.IdentifierKind;
1538
+ loc?: K.SourceLocationKind | null;
1539
+ }): namedTypes.EnumDeclaration;
1540
+ }
1541
+ export interface EnumBooleanBodyBuilder {
1542
+ (members: K.EnumBooleanMemberKind[], explicitType: boolean): namedTypes.EnumBooleanBody;
1543
+ from(params: {
1544
+ explicitType: boolean;
1545
+ members: K.EnumBooleanMemberKind[];
1546
+ }): namedTypes.EnumBooleanBody;
1547
+ }
1548
+ export interface EnumNumberBodyBuilder {
1549
+ (members: K.EnumNumberMemberKind[], explicitType: boolean): namedTypes.EnumNumberBody;
1550
+ from(params: {
1551
+ explicitType: boolean;
1552
+ members: K.EnumNumberMemberKind[];
1553
+ }): namedTypes.EnumNumberBody;
1554
+ }
1555
+ export interface EnumStringBodyBuilder {
1556
+ (members: K.EnumStringMemberKind[] | K.EnumDefaultedMemberKind[], explicitType: boolean): namedTypes.EnumStringBody;
1557
+ from(params: {
1558
+ explicitType: boolean;
1559
+ members: K.EnumStringMemberKind[] | K.EnumDefaultedMemberKind[];
1560
+ }): namedTypes.EnumStringBody;
1561
+ }
1562
+ export interface EnumSymbolBodyBuilder {
1563
+ (members: K.EnumDefaultedMemberKind[]): namedTypes.EnumSymbolBody;
1564
+ from(params: {
1565
+ members: K.EnumDefaultedMemberKind[];
1566
+ }): namedTypes.EnumSymbolBody;
1567
+ }
1568
+ export interface EnumBooleanMemberBuilder {
1569
+ (id: K.IdentifierKind, init: K.LiteralKind | boolean): namedTypes.EnumBooleanMember;
1570
+ from(params: {
1571
+ id: K.IdentifierKind;
1572
+ init: K.LiteralKind | boolean;
1573
+ }): namedTypes.EnumBooleanMember;
1574
+ }
1575
+ export interface EnumNumberMemberBuilder {
1576
+ (id: K.IdentifierKind, init: K.LiteralKind): namedTypes.EnumNumberMember;
1577
+ from(params: {
1578
+ id: K.IdentifierKind;
1579
+ init: K.LiteralKind;
1580
+ }): namedTypes.EnumNumberMember;
1581
+ }
1582
+ export interface EnumStringMemberBuilder {
1583
+ (id: K.IdentifierKind, init: K.LiteralKind): namedTypes.EnumStringMember;
1584
+ from(params: {
1585
+ id: K.IdentifierKind;
1586
+ init: K.LiteralKind;
1587
+ }): namedTypes.EnumStringMember;
1588
+ }
1589
+ export interface EnumDefaultedMemberBuilder {
1590
+ (id: K.IdentifierKind): namedTypes.EnumDefaultedMember;
1591
+ from(params: {
1592
+ id: K.IdentifierKind;
1593
+ }): namedTypes.EnumDefaultedMember;
1594
+ }
1397
1595
  export interface ExportDeclarationBuilder {
1398
1596
  (defaultParam: boolean, declaration: K.DeclarationKind | K.ExpressionKind | null, specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[], source?: K.LiteralKind | null): namedTypes.ExportDeclaration;
1399
1597
  from(params: {
@@ -1438,13 +1636,6 @@ export interface DoExpressionBuilder {
1438
1636
  loc?: K.SourceLocationKind | null;
1439
1637
  }): namedTypes.DoExpression;
1440
1638
  }
1441
- export interface SuperBuilder {
1442
- (): namedTypes.Super;
1443
- from(params: {
1444
- comments?: K.CommentKind[] | null;
1445
- loc?: K.SourceLocationKind | null;
1446
- }): namedTypes.Super;
1447
- }
1448
1639
  export interface BindExpressionBuilder {
1449
1640
  (object: K.ExpressionKind | null, callee: K.ExpressionKind): namedTypes.BindExpression;
1450
1641
  from(params: {
@@ -1454,23 +1645,6 @@ export interface BindExpressionBuilder {
1454
1645
  object: K.ExpressionKind | null;
1455
1646
  }): namedTypes.BindExpression;
1456
1647
  }
1457
- export interface DecoratorBuilder {
1458
- (expression: K.ExpressionKind): namedTypes.Decorator;
1459
- from(params: {
1460
- comments?: K.CommentKind[] | null;
1461
- expression: K.ExpressionKind;
1462
- loc?: K.SourceLocationKind | null;
1463
- }): namedTypes.Decorator;
1464
- }
1465
- export interface MetaPropertyBuilder {
1466
- (meta: K.IdentifierKind, property: K.IdentifierKind): namedTypes.MetaProperty;
1467
- from(params: {
1468
- comments?: K.CommentKind[] | null;
1469
- loc?: K.SourceLocationKind | null;
1470
- meta: K.IdentifierKind;
1471
- property: K.IdentifierKind;
1472
- }): namedTypes.MetaProperty;
1473
- }
1474
1648
  export interface ParenthesizedExpressionBuilder {
1475
1649
  (expression: K.ExpressionKind): namedTypes.ParenthesizedExpression;
1476
1650
  from(params: {
@@ -1479,24 +1653,6 @@ export interface ParenthesizedExpressionBuilder {
1479
1653
  loc?: K.SourceLocationKind | null;
1480
1654
  }): namedTypes.ParenthesizedExpression;
1481
1655
  }
1482
- export interface ExportDefaultDeclarationBuilder {
1483
- (declaration: K.DeclarationKind | K.ExpressionKind): namedTypes.ExportDefaultDeclaration;
1484
- from(params: {
1485
- comments?: K.CommentKind[] | null;
1486
- declaration: K.DeclarationKind | K.ExpressionKind;
1487
- loc?: K.SourceLocationKind | null;
1488
- }): namedTypes.ExportDefaultDeclaration;
1489
- }
1490
- export interface ExportNamedDeclarationBuilder {
1491
- (declaration: K.DeclarationKind | null, specifiers?: K.ExportSpecifierKind[], source?: K.LiteralKind | null): namedTypes.ExportNamedDeclaration;
1492
- from(params: {
1493
- comments?: K.CommentKind[] | null;
1494
- declaration: K.DeclarationKind | null;
1495
- loc?: K.SourceLocationKind | null;
1496
- source?: K.LiteralKind | null;
1497
- specifiers?: K.ExportSpecifierKind[];
1498
- }): namedTypes.ExportNamedDeclaration;
1499
- }
1500
1656
  export interface ExportNamespaceSpecifierBuilder {
1501
1657
  (exported: K.IdentifierKind): namedTypes.ExportNamespaceSpecifier;
1502
1658
  from(params: {
@@ -1513,15 +1669,6 @@ export interface ExportDefaultSpecifierBuilder {
1513
1669
  loc?: K.SourceLocationKind | null;
1514
1670
  }): namedTypes.ExportDefaultSpecifier;
1515
1671
  }
1516
- export interface ExportAllDeclarationBuilder {
1517
- (exported: K.IdentifierKind | null, source: K.LiteralKind): namedTypes.ExportAllDeclaration;
1518
- from(params: {
1519
- comments?: K.CommentKind[] | null;
1520
- exported: K.IdentifierKind | null;
1521
- loc?: K.SourceLocationKind | null;
1522
- source: K.LiteralKind;
1523
- }): namedTypes.ExportAllDeclaration;
1524
- }
1525
1672
  export interface CommentBlockBuilder {
1526
1673
  (value: string, leading?: boolean, trailing?: boolean): namedTypes.CommentBlock;
1527
1674
  from(params: {
@@ -1664,25 +1811,12 @@ export interface ObjectMethodBuilder {
1664
1811
  kind: "method" | "get" | "set";
1665
1812
  loc?: K.SourceLocationKind | null;
1666
1813
  params: K.PatternKind[];
1814
+ predicate?: K.FlowPredicateKind | null;
1667
1815
  rest?: K.IdentifierKind | null;
1668
1816
  returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
1669
1817
  typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
1670
1818
  }): namedTypes.ObjectMethod;
1671
1819
  }
1672
- export interface ClassPrivatePropertyBuilder {
1673
- (key: K.PrivateNameKind, value?: K.ExpressionKind | null): namedTypes.ClassPrivateProperty;
1674
- from(params: {
1675
- access?: "public" | "private" | "protected" | undefined;
1676
- comments?: K.CommentKind[] | null;
1677
- computed?: boolean;
1678
- key: K.PrivateNameKind;
1679
- loc?: K.SourceLocationKind | null;
1680
- static?: boolean;
1681
- typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
1682
- value?: K.ExpressionKind | null;
1683
- variance?: K.VarianceKind | "plus" | "minus" | null;
1684
- }): namedTypes.ClassPrivateProperty;
1685
- }
1686
1820
  export interface ClassMethodBuilder {
1687
1821
  (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;
1688
1822
  from(params: {
@@ -1703,6 +1837,7 @@ export interface ClassMethodBuilder {
1703
1837
  loc?: K.SourceLocationKind | null;
1704
1838
  optional?: boolean | null;
1705
1839
  params: K.PatternKind[];
1840
+ predicate?: K.FlowPredicateKind | null;
1706
1841
  rest?: K.IdentifierKind | null;
1707
1842
  returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
1708
1843
  static?: boolean | null;
@@ -1729,20 +1864,13 @@ export interface ClassPrivateMethodBuilder {
1729
1864
  loc?: K.SourceLocationKind | null;
1730
1865
  optional?: boolean | null;
1731
1866
  params: K.PatternKind[];
1867
+ predicate?: K.FlowPredicateKind | null;
1732
1868
  rest?: K.IdentifierKind | null;
1733
1869
  returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
1734
1870
  static?: boolean | null;
1735
1871
  typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
1736
1872
  }): namedTypes.ClassPrivateMethod;
1737
1873
  }
1738
- export interface PrivateNameBuilder {
1739
- (id: K.IdentifierKind): namedTypes.PrivateName;
1740
- from(params: {
1741
- comments?: K.CommentKind[] | null;
1742
- id: K.IdentifierKind;
1743
- loc?: K.SourceLocationKind | null;
1744
- }): namedTypes.PrivateName;
1745
- }
1746
1874
  export interface RestPropertyBuilder {
1747
1875
  (argument: K.ExpressionKind): namedTypes.RestProperty;
1748
1876
  from(params: {
@@ -2035,13 +2163,23 @@ export interface TSMappedTypeBuilder {
2035
2163
  }): namedTypes.TSMappedType;
2036
2164
  }
2037
2165
  export interface TSTupleTypeBuilder {
2038
- (elementTypes: K.TSTypeKind[]): namedTypes.TSTupleType;
2166
+ (elementTypes: (K.TSTypeKind | K.TSNamedTupleMemberKind)[]): namedTypes.TSTupleType;
2039
2167
  from(params: {
2040
2168
  comments?: K.CommentKind[] | null;
2041
- elementTypes: K.TSTypeKind[];
2169
+ elementTypes: (K.TSTypeKind | K.TSNamedTupleMemberKind)[];
2042
2170
  loc?: K.SourceLocationKind | null;
2043
2171
  }): namedTypes.TSTupleType;
2044
2172
  }
2173
+ export interface TSNamedTupleMemberBuilder {
2174
+ (label: K.IdentifierKind, elementType: K.TSTypeKind, optional?: boolean): namedTypes.TSNamedTupleMember;
2175
+ from(params: {
2176
+ comments?: K.CommentKind[] | null;
2177
+ elementType: K.TSTypeKind;
2178
+ label: K.IdentifierKind;
2179
+ loc?: K.SourceLocationKind | null;
2180
+ optional?: boolean;
2181
+ }): namedTypes.TSNamedTupleMember;
2182
+ }
2045
2183
  export interface TSRestTypeBuilder {
2046
2184
  (typeAnnotation: K.TSTypeKind): namedTypes.TSRestType;
2047
2185
  from(params: {
@@ -2113,12 +2251,13 @@ export interface TSMethodSignatureBuilder {
2113
2251
  }): namedTypes.TSMethodSignature;
2114
2252
  }
2115
2253
  export interface TSTypePredicateBuilder {
2116
- (parameterName: K.IdentifierKind | K.TSThisTypeKind, typeAnnotation: K.TSTypeAnnotationKind): namedTypes.TSTypePredicate;
2254
+ (parameterName: K.IdentifierKind | K.TSThisTypeKind, typeAnnotation?: K.TSTypeAnnotationKind | null, asserts?: boolean): namedTypes.TSTypePredicate;
2117
2255
  from(params: {
2256
+ asserts?: boolean;
2118
2257
  comments?: K.CommentKind[] | null;
2119
2258
  loc?: K.SourceLocationKind | null;
2120
2259
  parameterName: K.IdentifierKind | K.TSThisTypeKind;
2121
- typeAnnotation: K.TSTypeAnnotationKind;
2260
+ typeAnnotation?: K.TSTypeAnnotationKind | null;
2122
2261
  }): namedTypes.TSTypePredicate;
2123
2262
  }
2124
2263
  export interface TSCallSignatureDeclarationBuilder {
@@ -2294,28 +2433,6 @@ export interface TSParameterPropertyBuilder {
2294
2433
  readonly?: boolean;
2295
2434
  }): namedTypes.TSParameterProperty;
2296
2435
  }
2297
- export interface OptionalMemberExpressionBuilder {
2298
- (object: K.ExpressionKind, property: K.IdentifierKind | K.ExpressionKind, computed?: boolean, optional?: boolean): namedTypes.OptionalMemberExpression;
2299
- from(params: {
2300
- comments?: K.CommentKind[] | null;
2301
- computed?: boolean;
2302
- loc?: K.SourceLocationKind | null;
2303
- object: K.ExpressionKind;
2304
- optional?: boolean;
2305
- property: K.IdentifierKind | K.ExpressionKind;
2306
- }): namedTypes.OptionalMemberExpression;
2307
- }
2308
- export interface OptionalCallExpressionBuilder {
2309
- (callee: K.ExpressionKind, argumentsParam: (K.ExpressionKind | K.SpreadElementKind)[], optional?: boolean): namedTypes.OptionalCallExpression;
2310
- from(params: {
2311
- arguments: (K.ExpressionKind | K.SpreadElementKind)[];
2312
- callee: K.ExpressionKind;
2313
- comments?: K.CommentKind[] | null;
2314
- loc?: K.SourceLocationKind | null;
2315
- optional?: boolean;
2316
- typeArguments?: null | K.TypeParameterInstantiationKind;
2317
- }): namedTypes.OptionalCallExpression;
2318
- }
2319
2436
  export interface builders {
2320
2437
  file: FileBuilder;
2321
2438
  program: ProgramBuilder;
@@ -2372,39 +2489,51 @@ export interface builders {
2372
2489
  propertyPattern: PropertyPatternBuilder;
2373
2490
  objectPattern: ObjectPatternBuilder;
2374
2491
  arrayPattern: ArrayPatternBuilder;
2375
- methodDefinition: MethodDefinitionBuilder;
2376
2492
  spreadElement: SpreadElementBuilder;
2377
2493
  assignmentPattern: AssignmentPatternBuilder;
2494
+ methodDefinition: MethodDefinitionBuilder;
2378
2495
  classPropertyDefinition: ClassPropertyDefinitionBuilder;
2379
2496
  classProperty: ClassPropertyBuilder;
2380
2497
  classBody: ClassBodyBuilder;
2381
2498
  classDeclaration: ClassDeclarationBuilder;
2382
2499
  classExpression: ClassExpressionBuilder;
2500
+ super: SuperBuilder;
2383
2501
  importSpecifier: ImportSpecifierBuilder;
2384
- importNamespaceSpecifier: ImportNamespaceSpecifierBuilder;
2385
2502
  importDefaultSpecifier: ImportDefaultSpecifierBuilder;
2503
+ importNamespaceSpecifier: ImportNamespaceSpecifierBuilder;
2386
2504
  importDeclaration: ImportDeclarationBuilder;
2505
+ exportNamedDeclaration: ExportNamedDeclarationBuilder;
2506
+ exportSpecifier: ExportSpecifierBuilder;
2507
+ exportDefaultDeclaration: ExportDefaultDeclarationBuilder;
2508
+ exportAllDeclaration: ExportAllDeclarationBuilder;
2387
2509
  taggedTemplateExpression: TaggedTemplateExpressionBuilder;
2388
2510
  templateLiteral: TemplateLiteralBuilder;
2389
2511
  templateElement: TemplateElementBuilder;
2512
+ metaProperty: MetaPropertyBuilder;
2513
+ awaitExpression: AwaitExpressionBuilder;
2390
2514
  spreadProperty: SpreadPropertyBuilder;
2391
2515
  spreadPropertyPattern: SpreadPropertyPatternBuilder;
2392
- awaitExpression: AwaitExpressionBuilder;
2516
+ importExpression: ImportExpressionBuilder;
2517
+ optionalMemberExpression: OptionalMemberExpressionBuilder;
2518
+ optionalCallExpression: OptionalCallExpressionBuilder;
2393
2519
  jsxAttribute: JSXAttributeBuilder;
2394
2520
  jsxIdentifier: JSXIdentifierBuilder;
2395
2521
  jsxNamespacedName: JSXNamespacedNameBuilder;
2396
2522
  jsxExpressionContainer: JSXExpressionContainerBuilder;
2523
+ jsxElement: JSXElementBuilder;
2524
+ jsxFragment: JSXFragmentBuilder;
2397
2525
  jsxMemberExpression: JSXMemberExpressionBuilder;
2398
2526
  jsxSpreadAttribute: JSXSpreadAttributeBuilder;
2399
- jsxElement: JSXElementBuilder;
2527
+ jsxEmptyExpression: JSXEmptyExpressionBuilder;
2528
+ jsxText: JSXTextBuilder;
2529
+ jsxSpreadChild: JSXSpreadChildBuilder;
2400
2530
  jsxOpeningElement: JSXOpeningElementBuilder;
2401
2531
  jsxClosingElement: JSXClosingElementBuilder;
2402
- jsxFragment: JSXFragmentBuilder;
2403
- jsxText: JSXTextBuilder;
2404
2532
  jsxOpeningFragment: JSXOpeningFragmentBuilder;
2405
2533
  jsxClosingFragment: JSXClosingFragmentBuilder;
2406
- jsxEmptyExpression: JSXEmptyExpressionBuilder;
2407
- jsxSpreadChild: JSXSpreadChildBuilder;
2534
+ decorator: DecoratorBuilder;
2535
+ privateName: PrivateNameBuilder;
2536
+ classPrivateProperty: ClassPrivatePropertyBuilder;
2408
2537
  typeParameterDeclaration: TypeParameterDeclarationBuilder;
2409
2538
  tsTypeParameterDeclaration: TSTypeParameterDeclarationBuilder;
2410
2539
  typeParameterInstantiation: TypeParameterInstantiationBuilder;
@@ -2415,9 +2544,12 @@ export interface builders {
2415
2544
  emptyTypeAnnotation: EmptyTypeAnnotationBuilder;
2416
2545
  mixedTypeAnnotation: MixedTypeAnnotationBuilder;
2417
2546
  voidTypeAnnotation: VoidTypeAnnotationBuilder;
2547
+ symbolTypeAnnotation: SymbolTypeAnnotationBuilder;
2418
2548
  numberTypeAnnotation: NumberTypeAnnotationBuilder;
2549
+ bigIntTypeAnnotation: BigIntTypeAnnotationBuilder;
2419
2550
  numberLiteralTypeAnnotation: NumberLiteralTypeAnnotationBuilder;
2420
2551
  numericLiteralTypeAnnotation: NumericLiteralTypeAnnotationBuilder;
2552
+ bigIntLiteralTypeAnnotation: BigIntLiteralTypeAnnotationBuilder;
2421
2553
  stringTypeAnnotation: StringTypeAnnotationBuilder;
2422
2554
  stringLiteralTypeAnnotation: StringLiteralTypeAnnotationBuilder;
2423
2555
  booleanTypeAnnotation: BooleanTypeAnnotationBuilder;
@@ -2450,8 +2582,8 @@ export interface builders {
2450
2582
  interfaceDeclaration: InterfaceDeclarationBuilder;
2451
2583
  declareInterface: DeclareInterfaceBuilder;
2452
2584
  typeAlias: TypeAliasBuilder;
2453
- opaqueType: OpaqueTypeBuilder;
2454
2585
  declareTypeAlias: DeclareTypeAliasBuilder;
2586
+ opaqueType: OpaqueTypeBuilder;
2455
2587
  declareOpaqueType: DeclareOpaqueTypeBuilder;
2456
2588
  typeCastExpression: TypeCastExpressionBuilder;
2457
2589
  tupleTypeAnnotation: TupleTypeAnnotationBuilder;
@@ -2461,26 +2593,28 @@ export interface builders {
2461
2593
  declareModule: DeclareModuleBuilder;
2462
2594
  declareModuleExports: DeclareModuleExportsBuilder;
2463
2595
  declareExportDeclaration: DeclareExportDeclarationBuilder;
2464
- exportSpecifier: ExportSpecifierBuilder;
2465
2596
  exportBatchSpecifier: ExportBatchSpecifierBuilder;
2466
2597
  declareExportAllDeclaration: DeclareExportAllDeclarationBuilder;
2467
2598
  inferredPredicate: InferredPredicateBuilder;
2468
2599
  declaredPredicate: DeclaredPredicateBuilder;
2600
+ enumDeclaration: EnumDeclarationBuilder;
2601
+ enumBooleanBody: EnumBooleanBodyBuilder;
2602
+ enumNumberBody: EnumNumberBodyBuilder;
2603
+ enumStringBody: EnumStringBodyBuilder;
2604
+ enumSymbolBody: EnumSymbolBodyBuilder;
2605
+ enumBooleanMember: EnumBooleanMemberBuilder;
2606
+ enumNumberMember: EnumNumberMemberBuilder;
2607
+ enumStringMember: EnumStringMemberBuilder;
2608
+ enumDefaultedMember: EnumDefaultedMemberBuilder;
2469
2609
  exportDeclaration: ExportDeclarationBuilder;
2470
2610
  block: BlockBuilder;
2471
2611
  line: LineBuilder;
2472
2612
  noop: NoopBuilder;
2473
2613
  doExpression: DoExpressionBuilder;
2474
- super: SuperBuilder;
2475
2614
  bindExpression: BindExpressionBuilder;
2476
- decorator: DecoratorBuilder;
2477
- metaProperty: MetaPropertyBuilder;
2478
2615
  parenthesizedExpression: ParenthesizedExpressionBuilder;
2479
- exportDefaultDeclaration: ExportDefaultDeclarationBuilder;
2480
- exportNamedDeclaration: ExportNamedDeclarationBuilder;
2481
2616
  exportNamespaceSpecifier: ExportNamespaceSpecifierBuilder;
2482
2617
  exportDefaultSpecifier: ExportDefaultSpecifierBuilder;
2483
- exportAllDeclaration: ExportAllDeclarationBuilder;
2484
2618
  commentBlock: CommentBlockBuilder;
2485
2619
  commentLine: CommentLineBuilder;
2486
2620
  directive: DirectiveBuilder;
@@ -2493,10 +2627,8 @@ export interface builders {
2493
2627
  booleanLiteral: BooleanLiteralBuilder;
2494
2628
  regExpLiteral: RegExpLiteralBuilder;
2495
2629
  objectMethod: ObjectMethodBuilder;
2496
- classPrivateProperty: ClassPrivatePropertyBuilder;
2497
2630
  classMethod: ClassMethodBuilder;
2498
2631
  classPrivateMethod: ClassPrivateMethodBuilder;
2499
- privateName: PrivateNameBuilder;
2500
2632
  restProperty: RestPropertyBuilder;
2501
2633
  forAwaitStatement: ForAwaitStatementBuilder;
2502
2634
  import: ImportBuilder;
@@ -2531,6 +2663,7 @@ export interface builders {
2531
2663
  tsDeclareMethod: TSDeclareMethodBuilder;
2532
2664
  tsMappedType: TSMappedTypeBuilder;
2533
2665
  tsTupleType: TSTupleTypeBuilder;
2666
+ tsNamedTupleMember: TSNamedTupleMemberBuilder;
2534
2667
  tsRestType: TSRestTypeBuilder;
2535
2668
  tsOptionalType: TSOptionalTypeBuilder;
2536
2669
  tsIndexedAccessType: TSIndexedAccessTypeBuilder;
@@ -2557,7 +2690,5 @@ export interface builders {
2557
2690
  tsInterfaceBody: TSInterfaceBodyBuilder;
2558
2691
  tsInterfaceDeclaration: TSInterfaceDeclarationBuilder;
2559
2692
  tsParameterProperty: TSParameterPropertyBuilder;
2560
- optionalMemberExpression: OptionalMemberExpressionBuilder;
2561
- optionalCallExpression: OptionalCallExpressionBuilder;
2562
2693
  [builderName: string]: any;
2563
2694
  }