import { Command } from 'commander'; import { OptionValues } from 'commander'; import postcss from 'postcss'; /** @public */ declare interface AnyTypeAnnotationBuilder { (): namedTypes.AnyTypeAnnotation; from(params: { comments?: Kinds.CommentKind[] | null; loc?: Kinds.SourceLocationKind | null; }): namedTypes.AnyTypeAnnotation; } /** @public */ declare type AnyTypeAnnotationKind = namedTypes.AnyTypeAnnotation; /** @public */ declare interface ArrayExpressionBuilder { (elements: (Kinds.ExpressionKind | Kinds.SpreadElementKind | Kinds.RestElementKind | null)[]): namedTypes.ArrayExpression; from(params: { comments?: Kinds.CommentKind[] | null; elements: (Kinds.ExpressionKind | Kinds.SpreadElementKind | Kinds.RestElementKind | null)[]; loc?: Kinds.SourceLocationKind | null; }): namedTypes.ArrayExpression; } /** @public */ declare type ArrayExpressionKind = namedTypes.ArrayExpression; /** @public */ declare interface ArrayPatternBuilder { (elements: (Kinds.PatternKind | Kinds.SpreadElementKind | null)[]): namedTypes.ArrayPattern; from(params: { comments?: Kinds.CommentKind[] | null; decorators?: Kinds.DecoratorKind[] | null; elements: (Kinds.PatternKind | Kinds.SpreadElementKind | null)[]; loc?: Kinds.SourceLocationKind | null; optional?: boolean; typeAnnotation?: Kinds.TSTypeAnnotationKind | null; }): namedTypes.ArrayPattern; } /** @public */ declare type ArrayPatternKind = namedTypes.ArrayPattern; declare class ArrayType extends BaseType { readonly elemType: Type; readonly kind: "ArrayType"; constructor(elemType: Type); toString(): string; check(value: any, deep?: Deep): value is T; } /** @public */ declare interface ArrayTypeAnnotationBuilder { (elementType: Kinds.FlowTypeKind): namedTypes.ArrayTypeAnnotation; from(params: { comments?: Kinds.CommentKind[] | null; elementType: Kinds.FlowTypeKind; loc?: Kinds.SourceLocationKind | null; }): namedTypes.ArrayTypeAnnotation; } /** @public */ declare type ArrayTypeAnnotationKind = namedTypes.ArrayTypeAnnotation; /** @public */ declare interface ArrowFunctionExpressionBuilder { (params: Kinds.PatternKind[], body: Kinds.BlockStatementKind | Kinds.ExpressionKind, expression?: boolean): namedTypes.ArrowFunctionExpression; from(params: { async?: boolean; body: Kinds.BlockStatementKind | Kinds.ExpressionKind; comments?: Kinds.CommentKind[] | null; defaults?: (Kinds.ExpressionKind | null)[]; expression?: boolean; generator?: false; id?: null; loc?: Kinds.SourceLocationKind | null; params: Kinds.PatternKind[]; predicate?: Kinds.FlowPredicateKind | null; rest?: Kinds.IdentifierKind | null; returnType?: Kinds.TypeAnnotationKind | Kinds.TSTypeAnnotationKind | null; typeParameters?: Kinds.TypeParameterDeclarationKind | Kinds.TSTypeParameterDeclarationKind | null; }): namedTypes.ArrowFunctionExpression; } /** @public */ declare type ArrowFunctionExpressionKind = namedTypes.ArrowFunctionExpression; /** @public */ declare interface AssignmentExpressionBuilder { (operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "**=" | "||=" | "&&=" | "??=", left: Kinds.PatternKind | Kinds.MemberExpressionKind, right: Kinds.ExpressionKind): namedTypes.AssignmentExpression; from(params: { comments?: Kinds.CommentKind[] | null; left: Kinds.PatternKind | Kinds.MemberExpressionKind; loc?: Kinds.SourceLocationKind | null; operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "**=" | "||=" | "&&=" | "??="; right: Kinds.ExpressionKind; }): namedTypes.AssignmentExpression; } /** @public */ declare type AssignmentExpressionKind = namedTypes.AssignmentExpression; /** @public */ declare interface AssignmentPatternBuilder { (left: Kinds.PatternKind, right: Kinds.ExpressionKind): namedTypes.AssignmentPattern; from(params: { comments?: Kinds.CommentKind[] | null; decorators?: Kinds.DecoratorKind[] | null; left: Kinds.PatternKind; loc?: Kinds.SourceLocationKind | null; optional?: boolean; right: Kinds.ExpressionKind; typeAnnotation?: Kinds.TSTypeAnnotationKind | null; }): namedTypes.AssignmentPattern; } /** @public */ declare type AssignmentPatternKind = namedTypes.AssignmentPattern; declare namespace AST { export { HasParent, HasLeadingComment, NS, Namespace, Node_2 as Node, VForExpression, VOnExpression, VSlotScopeExpression, VFilterSequenceExpression, VFilter, VGenericExpression, VNode, TEMPLATE_NODE_TYPES, VText, HtmlComment, VExpressionContainer, VIdentifier, VDirectiveKey, VLiteral, VAttribute, VDirective, VStartTag, VEndTag, VElement, VDocumentFragment, VStyleElement, traverseNodes } } export { AST } export declare namespace astHelpers { export { findFirst, findAll, findImportDeclaration, createNamedImport, createDefaultImport, createNamespaceImport, findVueComponentOptions } } declare namespace astHelpers_2 { export { findFirst, findAll, findImportDeclaration, createNamedImport, createDefaultImport, createNamespaceImport, findVueComponentOptions } } declare interface ASTNode { type: string; } /** @public */ declare interface AwaitExpressionBuilder { (argument: Kinds.ExpressionKind | null, all?: boolean): namedTypes.AwaitExpression; from(params: { all?: boolean; argument: Kinds.ExpressionKind | null; comments?: Kinds.CommentKind[] | null; loc?: Kinds.SourceLocationKind | null; }): namedTypes.AwaitExpression; } /** @public */ declare type AwaitExpressionKind = namedTypes.AwaitExpression; declare abstract class BaseType { abstract toString(): string; abstract check(value: any, deep?: Deep): value is T; assert(value: any, deep?: Deep): value is T; arrayOf(): Type; } /** @public */ declare interface BigIntLiteralBuilder { (value: string | number): namedTypes.BigIntLiteral; from(params: { bigint?: string | undefined; comments?: Kinds.CommentKind[] | null; extra?: { rawValue: string; raw: string; }; loc?: Kinds.SourceLocationKind | null; raw?: string | null | undefined; regex?: { pattern: string; flags: string; } | undefined; value: string | number; }): namedTypes.BigIntLiteral; } /** @public */ declare type BigIntLiteralKind = namedTypes.BigIntLiteral; /** @public */ declare interface BigIntLiteralTypeAnnotationBuilder { (value: null, raw: string): namedTypes.BigIntLiteralTypeAnnotation; from(params: { comments?: Kinds.CommentKind[] | null; loc?: Kinds.SourceLocationKind | null; raw: string; value: null; }): namedTypes.BigIntLiteralTypeAnnotation; } /** @public */ declare type BigIntLiteralTypeAnnotationKind = namedTypes.BigIntLiteralTypeAnnotation; /** @public */ declare interface BigIntTypeAnnotationBuilder { (): namedTypes.BigIntTypeAnnotation; from(params: { comments?: Kinds.CommentKind[] | null; loc?: Kinds.SourceLocationKind | null; }): namedTypes.BigIntTypeAnnotation; } /** @public */ declare type BigIntTypeAnnotationKind = namedTypes.BigIntTypeAnnotation; /** @public */ declare interface BinaryExpressionBuilder { (operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "&" | "|" | "^" | "in" | "instanceof" | "**", left: Kinds.ExpressionKind, right: Kinds.ExpressionKind): namedTypes.BinaryExpression; from(params: { comments?: Kinds.CommentKind[] | null; left: Kinds.ExpressionKind; loc?: Kinds.SourceLocationKind | null; operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "&" | "|" | "^" | "in" | "instanceof" | "**"; right: Kinds.ExpressionKind; }): namedTypes.BinaryExpression; } /** @public */ declare type BinaryExpressionKind = namedTypes.BinaryExpression; /** @public */ declare interface BindExpressionBuilder { (object: Kinds.ExpressionKind | null, callee: Kinds.ExpressionKind): namedTypes.BindExpression; from(params: { callee: Kinds.ExpressionKind; comments?: Kinds.CommentKind[] | null; loc?: Kinds.SourceLocationKind | null; object: Kinds.ExpressionKind | null; }): namedTypes.BindExpression; } /** @public */ declare type BindExpressionKind = namedTypes.BindExpression; /** @public */ declare interface BlockBuilder { (value: string, leading?: boolean, trailing?: boolean): namedTypes.Block; from(params: { leading?: boolean; loc?: Kinds.SourceLocationKind | null; trailing?: boolean; value: string; }): namedTypes.Block; } /** @public */ declare type BlockKind = namedTypes.Block; /** @public */ declare interface BlockStatementBuilder { (body: Kinds.StatementKind[]): namedTypes.BlockStatement; from(params: { body: Kinds.StatementKind[]; comments?: Kinds.CommentKind[] | null; directives?: Kinds.DirectiveKind[]; loc?: Kinds.SourceLocationKind | null; }): namedTypes.BlockStatement; } /** @public */ declare type BlockStatementKind = namedTypes.BlockStatement; /** @public */ declare interface BooleanLiteralBuilder { (value: boolean): namedTypes.BooleanLiteral; from(params: { bigint?: string | undefined; comments?: Kinds.CommentKind[] | null; loc?: Kinds.SourceLocationKind | null; raw?: string | null | undefined; regex?: { pattern: string; flags: string; } | undefined; value: boolean; }): namedTypes.BooleanLiteral; } /** @public */ declare type BooleanLiteralKind = namedTypes.BooleanLiteral; /** @public */ declare interface BooleanLiteralTypeAnnotationBuilder { (value: boolean, raw: string): namedTypes.BooleanLiteralTypeAnnotation; from(params: { comments?: Kinds.CommentKind[] | null; loc?: Kinds.SourceLocationKind | null; raw: string; value: boolean; }): namedTypes.BooleanLiteralTypeAnnotation; } /** @public */ declare type BooleanLiteralTypeAnnotationKind = namedTypes.BooleanLiteralTypeAnnotation; /** @public */ declare interface BooleanTypeAnnotationBuilder { (): namedTypes.BooleanTypeAnnotation; from(params: { comments?: Kinds.CommentKind[] | null; loc?: Kinds.SourceLocationKind | null; }): namedTypes.BooleanTypeAnnotation; } /** @public */ declare type BooleanTypeAnnotationKind = namedTypes.BooleanTypeAnnotation; /** @public */ declare interface BreakStatementBuilder { (label?: Kinds.IdentifierKind | null): namedTypes.BreakStatement; from(params: { comments?: Kinds.CommentKind[] | null; label?: Kinds.IdentifierKind | null; loc?: Kinds.SourceLocationKind | null; }): namedTypes.BreakStatement; } /** @public */ declare type BreakStatementKind = namedTypes.BreakStatement; /** * @public */ export declare type Builders = typeof builders; /** * Combined AST node builders for both script (ESTree/Babel) and template (Vue SFC) nodes. * * Script builders create JavaScript/TypeScript AST nodes (e.g. `builders.identifier()`, * `builders.callExpression()`). Template builders create Vue template AST nodes * (e.g. `builders.vElement()`, `builders.vDirective()`). * * @public */ export declare const builders: { setParents(node: AST.Node): void; vAttribute(key: AST.VAttribute["key"], value: AST.VAttribute["value"]): AST.VAttribute; vDirective(key: AST.VDirective["key"], value: AST.VDirective["value"]): AST.VDirective; vDirectiveKey(name: AST.VDirectiveKey["name"], argument?: AST.VDirectiveKey["argument"], modifiers?: AST.VDirectiveKey["modifiers"]): AST.VDirectiveKey; vDocumentFragment(children: AST.VDocumentFragment["children"]): AST.VDocumentFragment; vEndTag(leadingComment?: AST.HtmlComment): AST.VEndTag; vElement(name: string, startTag: AST.VStartTag, children: AST.VElement["children"], namespace?: AST.VElement["namespace"]): AST.VElement; vExpressionContainer(expression: AST.VExpressionContainer["expression"], leadingComment?: AST.HtmlComment): AST.VExpressionContainer; vForExpression(left: AST.VForExpression["left"], right: AST.VForExpression["right"]): AST.VForExpression; vIdentifier(name: AST.VIdentifier["name"], rawName?: AST.VIdentifier["rawName"]): AST.VIdentifier; vLiteral(value: AST.VLiteral["value"]): AST.VLiteral; vStartTag(attributes: AST.VStartTag["attributes"], selfClosing: AST.VStartTag["selfClosing"], leadingComment?: AST.HtmlComment): AST.VStartTag; vText(value: AST.VText["value"], leadingComment?: AST.HtmlComment): AST.VText; vOnExpression(body: AST.VOnExpression["body"]): AST.VOnExpression; vFilterSequenceExpression(expression: AST.VFilterSequenceExpression["expression"], filters: AST.VFilterSequenceExpression["filters"]): AST.VFilterSequenceExpression; vFilter(callee: AST.VFilter["callee"], args: AST.VFilter["arguments"]): AST.VFilter; htmlComment(value: string, leadingComment?: AST.HtmlComment): AST.HtmlComment; file: FileBuilder; program: ProgramBuilder; identifier: IdentifierBuilder; blockStatement: BlockStatementBuilder; emptyStatement: EmptyStatementBuilder; expressionStatement: ExpressionStatementBuilder; ifStatement: IfStatementBuilder; labeledStatement: LabeledStatementBuilder; breakStatement: BreakStatementBuilder; continueStatement: ContinueStatementBuilder; withStatement: WithStatementBuilder; switchStatement: SwitchStatementBuilder; switchCase: SwitchCaseBuilder; returnStatement: ReturnStatementBuilder; throwStatement: ThrowStatementBuilder; tryStatement: TryStatementBuilder; catchClause: CatchClauseBuilder; whileStatement: WhileStatementBuilder; doWhileStatement: DoWhileStatementBuilder; forStatement: ForStatementBuilder; variableDeclaration: VariableDeclarationBuilder; forInStatement: ForInStatementBuilder; debuggerStatement: DebuggerStatementBuilder; functionDeclaration: FunctionDeclarationBuilder; functionExpression: FunctionExpressionBuilder; variableDeclarator: VariableDeclaratorBuilder; thisExpression: ThisExpressionBuilder; arrayExpression: ArrayExpressionBuilder; objectExpression: ObjectExpressionBuilder; property: PropertyBuilder; literal: LiteralBuilder; sequenceExpression: SequenceExpressionBuilder; unaryExpression: UnaryExpressionBuilder; binaryExpression: BinaryExpressionBuilder; assignmentExpression: AssignmentExpressionBuilder; memberExpression: MemberExpressionBuilder; updateExpression: UpdateExpressionBuilder; logicalExpression: LogicalExpressionBuilder; conditionalExpression: ConditionalExpressionBuilder; newExpression: NewExpressionBuilder; callExpression: CallExpressionBuilder; restElement: RestElementBuilder; typeAnnotation: TypeAnnotationBuilder; tsTypeAnnotation: TSTypeAnnotationBuilder; spreadElementPattern: SpreadElementPatternBuilder; arrowFunctionExpression: ArrowFunctionExpressionBuilder; forOfStatement: ForOfStatementBuilder; yieldExpression: YieldExpressionBuilder; generatorExpression: GeneratorExpressionBuilder; comprehensionBlock: ComprehensionBlockBuilder; comprehensionExpression: ComprehensionExpressionBuilder; objectProperty: ObjectPropertyBuilder; propertyPattern: PropertyPatternBuilder; objectPattern: ObjectPatternBuilder; arrayPattern: ArrayPatternBuilder; spreadElement: SpreadElementBuilder; assignmentPattern: AssignmentPatternBuilder; methodDefinition: MethodDefinitionBuilder; classPropertyDefinition: ClassPropertyDefinitionBuilder; classProperty: ClassPropertyBuilder; staticBlock: StaticBlockBuilder; classBody: ClassBodyBuilder; classDeclaration: ClassDeclarationBuilder; classExpression: ClassExpressionBuilder; super: SuperBuilder; importSpecifier: ImportSpecifierBuilder; importDefaultSpecifier: ImportDefaultSpecifierBuilder; importNamespaceSpecifier: ImportNamespaceSpecifierBuilder; importDeclaration: ImportDeclarationBuilder; exportNamedDeclaration: ExportNamedDeclarationBuilder; exportSpecifier: ExportSpecifierBuilder; exportDefaultDeclaration: ExportDefaultDeclarationBuilder; exportAllDeclaration: ExportAllDeclarationBuilder; taggedTemplateExpression: TaggedTemplateExpressionBuilder; templateLiteral: TemplateLiteralBuilder; templateElement: TemplateElementBuilder; metaProperty: MetaPropertyBuilder; awaitExpression: AwaitExpressionBuilder; spreadProperty: SpreadPropertyBuilder; spreadPropertyPattern: SpreadPropertyPatternBuilder; importExpression: ImportExpressionBuilder; chainExpression: ChainExpressionBuilder; optionalCallExpression: OptionalCallExpressionBuilder; optionalMemberExpression: OptionalMemberExpressionBuilder; privateIdentifier: PrivateIdentifierBuilder; decorator: DecoratorBuilder; privateName: PrivateNameBuilder; classPrivateProperty: ClassPrivatePropertyBuilder; importAttribute: ImportAttributeBuilder; recordExpression: RecordExpressionBuilder; objectMethod: ObjectMethodBuilder; tupleExpression: TupleExpressionBuilder; moduleExpression: ModuleExpressionBuilder; jsxAttribute: JSXAttributeBuilder; jsxIdentifier: JSXIdentifierBuilder; jsxNamespacedName: JSXNamespacedNameBuilder; jsxExpressionContainer: JSXExpressionContainerBuilder; jsxElement: JSXElementBuilder; jsxFragment: JSXFragmentBuilder; jsxMemberExpression: JSXMemberExpressionBuilder; jsxSpreadAttribute: JSXSpreadAttributeBuilder; jsxEmptyExpression: JSXEmptyExpressionBuilder; jsxText: JSXTextBuilder; jsxSpreadChild: JSXSpreadChildBuilder; jsxOpeningElement: JSXOpeningElementBuilder; jsxClosingElement: JSXClosingElementBuilder; jsxOpeningFragment: JSXOpeningFragmentBuilder; jsxClosingFragment: JSXClosingFragmentBuilder; typeParameterDeclaration: TypeParameterDeclarationBuilder; tsTypeParameterDeclaration: TSTypeParameterDeclarationBuilder; typeParameterInstantiation: TypeParameterInstantiationBuilder; tsTypeParameterInstantiation: TSTypeParameterInstantiationBuilder; classImplements: ClassImplementsBuilder; tsExpressionWithTypeArguments: TSExpressionWithTypeArgumentsBuilder; anyTypeAnnotation: AnyTypeAnnotationBuilder; emptyTypeAnnotation: EmptyTypeAnnotationBuilder; mixedTypeAnnotation: MixedTypeAnnotationBuilder; voidTypeAnnotation: VoidTypeAnnotationBuilder; symbolTypeAnnotation: SymbolTypeAnnotationBuilder; numberTypeAnnotation: NumberTypeAnnotationBuilder; bigIntTypeAnnotation: BigIntTypeAnnotationBuilder; numberLiteralTypeAnnotation: NumberLiteralTypeAnnotationBuilder; numericLiteralTypeAnnotation: NumericLiteralTypeAnnotationBuilder; bigIntLiteralTypeAnnotation: BigIntLiteralTypeAnnotationBuilder; stringTypeAnnotation: StringTypeAnnotationBuilder; stringLiteralTypeAnnotation: StringLiteralTypeAnnotationBuilder; booleanTypeAnnotation: BooleanTypeAnnotationBuilder; booleanLiteralTypeAnnotation: BooleanLiteralTypeAnnotationBuilder; nullableTypeAnnotation: NullableTypeAnnotationBuilder; nullLiteralTypeAnnotation: NullLiteralTypeAnnotationBuilder; nullTypeAnnotation: NullTypeAnnotationBuilder; thisTypeAnnotation: ThisTypeAnnotationBuilder; existsTypeAnnotation: ExistsTypeAnnotationBuilder; existentialTypeParam: ExistentialTypeParamBuilder; functionTypeAnnotation: FunctionTypeAnnotationBuilder; functionTypeParam: FunctionTypeParamBuilder; arrayTypeAnnotation: ArrayTypeAnnotationBuilder; objectTypeAnnotation: ObjectTypeAnnotationBuilder; objectTypeProperty: ObjectTypePropertyBuilder; objectTypeSpreadProperty: ObjectTypeSpreadPropertyBuilder; objectTypeIndexer: ObjectTypeIndexerBuilder; objectTypeCallProperty: ObjectTypeCallPropertyBuilder; objectTypeInternalSlot: ObjectTypeInternalSlotBuilder; variance: VarianceBuilder; qualifiedTypeIdentifier: QualifiedTypeIdentifierBuilder; genericTypeAnnotation: GenericTypeAnnotationBuilder; memberTypeAnnotation: MemberTypeAnnotationBuilder; indexedAccessType: IndexedAccessTypeBuilder; optionalIndexedAccessType: OptionalIndexedAccessTypeBuilder; unionTypeAnnotation: UnionTypeAnnotationBuilder; intersectionTypeAnnotation: IntersectionTypeAnnotationBuilder; typeofTypeAnnotation: TypeofTypeAnnotationBuilder; typeParameter: TypeParameterBuilder; propertyDefinition: PropertyDefinitionBuilder; interfaceTypeAnnotation: InterfaceTypeAnnotationBuilder; interfaceExtends: InterfaceExtendsBuilder; interfaceDeclaration: InterfaceDeclarationBuilder; declareInterface: DeclareInterfaceBuilder; typeAlias: TypeAliasBuilder; declareTypeAlias: DeclareTypeAliasBuilder; opaqueType: OpaqueTypeBuilder; declareOpaqueType: DeclareOpaqueTypeBuilder; typeCastExpression: TypeCastExpressionBuilder; tupleTypeAnnotation: TupleTypeAnnotationBuilder; declareVariable: DeclareVariableBuilder; declareFunction: DeclareFunctionBuilder; declareClass: DeclareClassBuilder; declareModule: DeclareModuleBuilder; declareModuleExports: DeclareModuleExportsBuilder; declareExportDeclaration: DeclareExportDeclarationBuilder; exportBatchSpecifier: ExportBatchSpecifierBuilder; declareExportAllDeclaration: DeclareExportAllDeclarationBuilder; inferredPredicate: InferredPredicateBuilder; declaredPredicate: DeclaredPredicateBuilder; enumDeclaration: EnumDeclarationBuilder; enumBooleanBody: EnumBooleanBodyBuilder; enumNumberBody: EnumNumberBodyBuilder; enumStringBody: EnumStringBodyBuilder; enumSymbolBody: EnumSymbolBodyBuilder; enumBooleanMember: EnumBooleanMemberBuilder; enumNumberMember: EnumNumberMemberBuilder; enumStringMember: EnumStringMemberBuilder; enumDefaultedMember: EnumDefaultedMemberBuilder; exportDeclaration: ExportDeclarationBuilder; block: BlockBuilder; line: LineBuilder; noop: NoopBuilder; doExpression: DoExpressionBuilder; bindExpression: BindExpressionBuilder; parenthesizedExpression: ParenthesizedExpressionBuilder; exportNamespaceSpecifier: ExportNamespaceSpecifierBuilder; exportDefaultSpecifier: ExportDefaultSpecifierBuilder; commentBlock: CommentBlockBuilder; commentLine: CommentLineBuilder; directive: DirectiveBuilder; directiveLiteral: DirectiveLiteralBuilder; interpreterDirective: InterpreterDirectiveBuilder; stringLiteral: StringLiteralBuilder; numericLiteral: NumericLiteralBuilder; bigIntLiteral: BigIntLiteralBuilder; decimalLiteral: DecimalLiteralBuilder; nullLiteral: NullLiteralBuilder; booleanLiteral: BooleanLiteralBuilder; regExpLiteral: RegExpLiteralBuilder; classMethod: ClassMethodBuilder; classPrivateMethod: ClassPrivateMethodBuilder; classAccessorProperty: ClassAccessorPropertyBuilder; restProperty: RestPropertyBuilder; forAwaitStatement: ForAwaitStatementBuilder; import: ImportBuilder; v8IntrinsicIdentifier: V8IntrinsicIdentifierBuilder; topicReference: TopicReferenceBuilder; tsQualifiedName: TSQualifiedNameBuilder; tsTypeReference: TSTypeReferenceBuilder; tsAsExpression: TSAsExpressionBuilder; tsTypeCastExpression: TSTypeCastExpressionBuilder; tsSatisfiesExpression: TSSatisfiesExpressionBuilder; tsNonNullExpression: TSNonNullExpressionBuilder; tsAnyKeyword: TSAnyKeywordBuilder; tsBigIntKeyword: TSBigIntKeywordBuilder; tsBooleanKeyword: TSBooleanKeywordBuilder; tsNeverKeyword: TSNeverKeywordBuilder; tsNullKeyword: TSNullKeywordBuilder; tsNumberKeyword: TSNumberKeywordBuilder; tsObjectKeyword: TSObjectKeywordBuilder; tsStringKeyword: TSStringKeywordBuilder; tsSymbolKeyword: TSSymbolKeywordBuilder; tsUndefinedKeyword: TSUndefinedKeywordBuilder; tsUnknownKeyword: TSUnknownKeywordBuilder; tsVoidKeyword: TSVoidKeywordBuilder; tsIntrinsicKeyword: TSIntrinsicKeywordBuilder; tsThisType: TSThisTypeBuilder; tsArrayType: TSArrayTypeBuilder; tsLiteralType: TSLiteralTypeBuilder; tsUnionType: TSUnionTypeBuilder; tsIntersectionType: TSIntersectionTypeBuilder; tsConditionalType: TSConditionalTypeBuilder; tsInferType: TSInferTypeBuilder; tsTypeParameter: TSTypeParameterBuilder; tsParenthesizedType: TSParenthesizedTypeBuilder; tsFunctionType: TSFunctionTypeBuilder; tsConstructorType: TSConstructorTypeBuilder; tsDeclareFunction: TSDeclareFunctionBuilder; tsDeclareMethod: TSDeclareMethodBuilder; tsMappedType: TSMappedTypeBuilder; tsTupleType: TSTupleTypeBuilder; tsNamedTupleMember: TSNamedTupleMemberBuilder; tsRestType: TSRestTypeBuilder; tsOptionalType: TSOptionalTypeBuilder; tsIndexedAccessType: TSIndexedAccessTypeBuilder; tsTypeOperator: TSTypeOperatorBuilder; tsIndexSignature: TSIndexSignatureBuilder; tsPropertySignature: TSPropertySignatureBuilder; tsMethodSignature: TSMethodSignatureBuilder; tsTypePredicate: TSTypePredicateBuilder; tsCallSignatureDeclaration: TSCallSignatureDeclarationBuilder; tsConstructSignatureDeclaration: TSConstructSignatureDeclarationBuilder; tsEnumMember: TSEnumMemberBuilder; tsTypeQuery: TSTypeQueryBuilder; tsImportType: TSImportTypeBuilder; tsTypeLiteral: TSTypeLiteralBuilder; tsTypeAssertion: TSTypeAssertionBuilder; tsInstantiationExpression: TSInstantiationExpressionBuilder; tsEnumDeclaration: TSEnumDeclarationBuilder; tsTypeAliasDeclaration: TSTypeAliasDeclarationBuilder; tsModuleBlock: TSModuleBlockBuilder; tsModuleDeclaration: TSModuleDeclarationBuilder; tsImportEqualsDeclaration: TSImportEqualsDeclarationBuilder; tsExternalModuleReference: TSExternalModuleReferenceBuilder; tsExportAssignment: TSExportAssignmentBuilder; tsNamespaceExportDeclaration: TSNamespaceExportDeclarationBuilder; tsInterfaceBody: TSInterfaceBodyBuilder; tsInterfaceDeclaration: TSInterfaceDeclarationBuilder; tsParameterProperty: TSParameterPropertyBuilder; tsEnumBody: TSEnumBodyBuilder; tsInterfaceHeritage: TSInterfaceHeritageBuilder; tsClassImplements: TSClassImplementsBuilder; tsTemplateLiteralType: TSTemplateLiteralTypeBuilder; tsEmptyBodyFunctionExpression: TSEmptyBodyFunctionExpressionBuilder; tsAbstractMethodDefinition: TSAbstractMethodDefinitionBuilder; tsAbstractPropertyDefinition: TSAbstractPropertyDefinitionBuilder; }; /** @public */ declare interface CallExpressionBuilder { (callee: Kinds.ExpressionKind, argumentsParam: (Kinds.ExpressionKind | Kinds.SpreadElementKind)[]): namedTypes.CallExpression; from(params: { arguments: (Kinds.ExpressionKind | Kinds.SpreadElementKind)[]; callee: Kinds.ExpressionKind; comments?: Kinds.CommentKind[] | null; loc?: Kinds.SourceLocationKind | null; optional?: boolean; typeArguments?: null | Kinds.TypeParameterInstantiationKind; typeParameters?: Kinds.TSTypeParameterInstantiationKind | null; }): namedTypes.CallExpression; } /** @public */ declare type CallExpressionKind = namedTypes.CallExpression | namedTypes.OptionalCallExpression; /** @public */ declare interface CatchClauseBuilder { (param: Kinds.PatternKind | null | undefined, guard: Kinds.ExpressionKind | null | undefined, body: Kinds.BlockStatementKind): namedTypes.CatchClause; from(params: { body: Kinds.BlockStatementKind; comments?: Kinds.CommentKind[] | null; guard?: Kinds.ExpressionKind | null; loc?: Kinds.SourceLocationKind | null; param?: Kinds.PatternKind | null; }): namedTypes.CatchClause; } /** @public */ declare type CatchClauseKind = namedTypes.CatchClause; /** @public */ declare type ChainElementKind = namedTypes.MemberExpression | namedTypes.CallExpression | namedTypes.OptionalCallExpression | namedTypes.OptionalMemberExpression | namedTypes.JSXMemberExpression; /** @public */ declare interface ChainExpressionBuilder { (expression: Kinds.ChainElementKind): namedTypes.ChainExpression; from(params: { comments?: Kinds.CommentKind[] | null; expression: Kinds.ChainElementKind; loc?: Kinds.SourceLocationKind | null; }): namedTypes.ChainExpression; } /** @public */ declare type ChainExpressionKind = namedTypes.ChainExpression; /** @public */ declare interface ClassAccessorPropertyBuilder { (key: Kinds.LiteralKind | Kinds.IdentifierKind | Kinds.PrivateNameKind | Kinds.ExpressionKind, value?: Kinds.ExpressionKind | null, decorators?: Kinds.DecoratorKind[] | null, computed?: boolean, staticParam?: boolean): namedTypes.ClassAccessorProperty; from(params: { abstract?: boolean; accessibility?: "public" | "private" | "protected" | null; comments?: Kinds.CommentKind[] | null; computed?: boolean; decorators?: Kinds.DecoratorKind[] | null; definite?: boolean; key: Kinds.LiteralKind | Kinds.IdentifierKind | Kinds.PrivateNameKind | Kinds.ExpressionKind; loc?: Kinds.SourceLocationKind | null; optional?: boolean; override?: boolean; readonly?: boolean; static?: boolean; typeAnnotation?: Kinds.TSTypeAnnotationKind | null; value?: Kinds.ExpressionKind | null; }): namedTypes.ClassAccessorProperty; } /** @public */ declare type ClassAccessorPropertyKind = namedTypes.ClassAccessorProperty; /** @public */ declare interface ClassBodyBuilder { (body: (Kinds.MethodDefinitionKind | Kinds.VariableDeclaratorKind | Kinds.ClassPropertyDefinitionKind | Kinds.ClassPropertyKind | Kinds.ClassPrivatePropertyKind | Kinds.ClassMethodKind | Kinds.ClassPrivateMethodKind | Kinds.ClassAccessorPropertyKind | Kinds.StaticBlockKind | Kinds.TSDeclareMethodKind | Kinds.TSCallSignatureDeclarationKind | Kinds.TSConstructSignatureDeclarationKind | Kinds.TSIndexSignatureKind | Kinds.TSMethodSignatureKind | Kinds.TSPropertySignatureKind)[]): namedTypes.ClassBody; from(params: { body: (Kinds.MethodDefinitionKind | Kinds.VariableDeclaratorKind | Kinds.ClassPropertyDefinitionKind | Kinds.ClassPropertyKind | Kinds.ClassPrivatePropertyKind | Kinds.ClassMethodKind | Kinds.ClassPrivateMethodKind | Kinds.ClassAccessorPropertyKind | Kinds.StaticBlockKind | Kinds.TSDeclareMethodKind | Kinds.TSCallSignatureDeclarationKind | Kinds.TSConstructSignatureDeclarationKind | Kinds.TSIndexSignatureKind | Kinds.TSMethodSignatureKind | Kinds.TSPropertySignatureKind)[]; comments?: Kinds.CommentKind[] | null; loc?: Kinds.SourceLocationKind | null; }): namedTypes.ClassBody; } /** @public */ declare type ClassBodyKind = namedTypes.ClassBody; /** @public */ declare interface ClassDeclarationBuilder { (id: Kinds.IdentifierKind | null, body: Kinds.ClassBodyKind, superClass?: Kinds.ExpressionKind | null): namedTypes.ClassDeclaration; from(params: { abstract?: boolean; body: Kinds.ClassBodyKind; comments?: Kinds.CommentKind[] | null; declare?: boolean; decorators?: Kinds.DecoratorKind[] | null; id: Kinds.IdentifierKind | null; implements?: Kinds.TSClassImplementsKind[] | Kinds.ClassImplementsKind[] | Kinds.TSExpressionWithTypeArgumentsKind[]; loc?: Kinds.SourceLocationKind | null; superClass?: Kinds.ExpressionKind | null; superTypeArguments?: Kinds.TSTypeParameterInstantiationKind | null | undefined; superTypeParameters?: Kinds.TypeParameterInstantiationKind | Kinds.TSTypeParameterInstantiationKind | null; typeParameters?: Kinds.TypeParameterDeclarationKind | Kinds.TSTypeParameterDeclarationKind | null; }): namedTypes.ClassDeclaration; } /** @public */ declare type ClassDeclarationKind = namedTypes.ClassDeclaration; /** @public */ declare interface ClassExpressionBuilder { (id: Kinds.IdentifierKind | null | undefined, body: Kinds.ClassBodyKind, superClass?: Kinds.ExpressionKind | null): namedTypes.ClassExpression; from(params: { abstract?: boolean; body: Kinds.ClassBodyKind; comments?: Kinds.CommentKind[] | null; declare?: boolean; id?: Kinds.IdentifierKind | null; implements?: Kinds.TSClassImplementsKind[] | Kinds.ClassImplementsKind[] | Kinds.TSExpressionWithTypeArgumentsKind[]; loc?: Kinds.SourceLocationKind | null; superClass?: Kinds.ExpressionKind | null; superTypeArguments?: Kinds.TSTypeParameterInstantiationKind | null | undefined; superTypeParameters?: Kinds.TypeParameterInstantiationKind | Kinds.TSTypeParameterInstantiationKind | null; typeParameters?: Kinds.TypeParameterDeclarationKind | Kinds.TSTypeParameterDeclarationKind | null; }): namedTypes.ClassExpression; } /** @public */ declare type ClassExpressionKind = namedTypes.ClassExpression; /** @public */ declare interface ClassImplementsBuilder { (id: Kinds.IdentifierKind): namedTypes.ClassImplements; from(params: { comments?: Kinds.CommentKind[] | null; id: Kinds.IdentifierKind; loc?: Kinds.SourceLocationKind | null; superClass?: Kinds.ExpressionKind | null; typeParameters?: Kinds.TypeParameterInstantiationKind | null; }): namedTypes.ClassImplements; } /** @public */ declare type ClassImplementsKind = namedTypes.ClassImplements; /** @public */ declare interface ClassMethodBuilder { (kind: "get" | "set" | "method" | "constructor" | undefined, key: Kinds.LiteralKind | Kinds.IdentifierKind | Kinds.ExpressionKind, params: Kinds.PatternKind[], body: Kinds.BlockStatementKind, computed?: boolean, staticParam?: boolean): namedTypes.ClassMethod; from(params: { abstract?: boolean; access?: "public" | "private" | "protected" | null; accessibility?: "public" | "private" | "protected" | null; async?: boolean; body: Kinds.BlockStatementKind; comments?: Kinds.CommentKind[] | null; computed?: boolean; decorators?: Kinds.DecoratorKind[] | null; defaults?: (Kinds.ExpressionKind | null)[]; definite?: boolean; expression?: boolean; generator?: boolean; id?: Kinds.IdentifierKind | null; key: Kinds.LiteralKind | Kinds.IdentifierKind | Kinds.ExpressionKind; kind?: "get" | "set" | "method" | "constructor"; loc?: Kinds.SourceLocationKind | null; optional?: boolean; override?: boolean; params: Kinds.PatternKind[]; predicate?: Kinds.FlowPredicateKind | null; readonly?: boolean; rest?: Kinds.IdentifierKind | null; returnType?: Kinds.TypeAnnotationKind | Kinds.TSTypeAnnotationKind | null; static?: boolean; typeParameters?: Kinds.TypeParameterDeclarationKind | Kinds.TSTypeParameterDeclarationKind | null; }): namedTypes.ClassMethod; } /** @public */ declare type ClassMethodKind = namedTypes.ClassMethod; /** @public */ declare interface ClassPrivateMethodBuilder { (key: Kinds.PrivateNameKind, params: Kinds.PatternKind[], body: Kinds.BlockStatementKind, kind?: "get" | "set" | "method" | "constructor", computed?: boolean, staticParam?: boolean): namedTypes.ClassPrivateMethod; from(params: { abstract?: boolean; access?: "public" | "private" | "protected" | null; accessibility?: "public" | "private" | "protected" | null; async?: boolean; body: Kinds.BlockStatementKind; comments?: Kinds.CommentKind[] | null; computed?: boolean; decorators?: Kinds.DecoratorKind[] | null; defaults?: (Kinds.ExpressionKind | null)[]; definite?: boolean; expression?: boolean; generator?: boolean; id?: Kinds.IdentifierKind | null; key: Kinds.PrivateNameKind; kind?: "get" | "set" | "method" | "constructor"; loc?: Kinds.SourceLocationKind | null; optional?: boolean; override?: boolean; params: Kinds.PatternKind[]; predicate?: Kinds.FlowPredicateKind | null; readonly?: boolean; rest?: Kinds.IdentifierKind | null; returnType?: Kinds.TypeAnnotationKind | Kinds.TSTypeAnnotationKind | null; static?: boolean; typeParameters?: Kinds.TypeParameterDeclarationKind | Kinds.TSTypeParameterDeclarationKind | null; }): namedTypes.ClassPrivateMethod; } /** @public */ declare type ClassPrivateMethodKind = namedTypes.ClassPrivateMethod; /** @public */ declare interface ClassPrivatePropertyBuilder { (key: Kinds.PrivateNameKind, value?: Kinds.ExpressionKind | null): namedTypes.ClassPrivateProperty; from(params: { access?: "public" | "private" | "protected" | undefined; comments?: Kinds.CommentKind[] | null; computed?: boolean; decorators?: Kinds.DecoratorKind[] | null; key: Kinds.PrivateNameKind; loc?: Kinds.SourceLocationKind | null; static?: boolean; typeAnnotation?: Kinds.TypeAnnotationKind | Kinds.TSTypeAnnotationKind | null; value?: Kinds.ExpressionKind | null; variance?: Kinds.VarianceKind | "plus" | "minus" | null; }): namedTypes.ClassPrivateProperty; } /** @public */ declare type ClassPrivatePropertyKind = namedTypes.ClassPrivateProperty; /** @public */ declare interface ClassPropertyBuilder { (key: Kinds.LiteralKind | Kinds.IdentifierKind | Kinds.ExpressionKind, value: Kinds.ExpressionKind | null, typeAnnotation?: Kinds.TypeAnnotationKind | Kinds.TSTypeAnnotationKind | null, staticParam?: boolean): namedTypes.ClassProperty; from(params: { access?: "public" | "private" | "protected" | undefined; comments?: Kinds.CommentKind[] | null; computed?: boolean; decorators?: Kinds.DecoratorKind[] | null; key: Kinds.LiteralKind | Kinds.IdentifierKind | Kinds.ExpressionKind; loc?: Kinds.SourceLocationKind | null; static?: boolean; typeAnnotation?: Kinds.TypeAnnotationKind | Kinds.TSTypeAnnotationKind | null; value: Kinds.ExpressionKind | null; variance?: Kinds.VarianceKind | "plus" | "minus" | null; }): namedTypes.ClassProperty; } /** @public */ declare interface ClassPropertyDefinitionBuilder { (definition: Kinds.MethodDefinitionKind | Kinds.VariableDeclaratorKind | Kinds.ClassPropertyDefinitionKind | Kinds.ClassPropertyKind | Kinds.StaticBlockKind): namedTypes.ClassPropertyDefinition; from(params: { comments?: Kinds.CommentKind[] | null; definition: Kinds.MethodDefinitionKind | Kinds.VariableDeclaratorKind | Kinds.ClassPropertyDefinitionKind | Kinds.ClassPropertyKind | Kinds.StaticBlockKind; loc?: Kinds.SourceLocationKind | null; }): namedTypes.ClassPropertyDefinition; } /** @public */ declare type ClassPropertyDefinitionKind = namedTypes.ClassPropertyDefinition; /** @public */ declare type ClassPropertyKind = namedTypes.ClassProperty | namedTypes.ClassPrivateProperty | namedTypes.PropertyDefinition | namedTypes.TSAbstractPropertyDefinition; /** * A plugin that updates source code * @public */ export declare type CodemodPlugin = { name: string; type: 'codemod'; /** * Mutate the AST to make changes * @returns Number of transforms applied. Used for stats */ transform(context: CodemodPluginContext): number; }; /** * @public */ export declare type CodemodPluginContext = { /** * If this is a .vue file, the AST of the `