import ts from 'typescript/lib/typescript'; /** * 提供一个transform helper函数 */ export declare function visitNodes(node: ts.Node, context: ts.TransformationContext, callback: (node: ts.Node, context: ts.TransformationContext) => ts.Node): ts.SourceFile; /** * 创建一个ast转换器 */ export declare const createTransformer: (callback: (node: ts.Node, context: ts.TransformationContext) => ts.Node) => ts.TransformerFactory; export declare const transform: (text: string, transformers: ts.TransformerFactory[], scriptKind?: ts.ScriptKind) => string;