/** * 文件字符串 转 ast树 * @param file 文件字符串 * @param fileType 文件类型,对应ast插件 babel-eslint | typescript | flow | jsx | object-rest-spread | decorators * @returns */ export declare const getAst: (file: string, fileType?: string) => any; export declare const getCode: (ast: any) => any; export declare const parseAST: (curAst: any) => {}; /** * 获取export default的代码,仅限export出来的是个Array or Object * file: fs读出的string文件内容 * type: fs读出的string文件内容 */ export declare const getExportDefault: (file: string, fileType?: string) => {};