import type { IPluginContext } from '@tarojs/service';
/**
 * 更新 babel.config.js
 * 主要处理模板里的写法
 * 1.
 * ```js
 * module.exports = {
 *   presets: [
 *      ['taro', {
 *       framework: 'react',
 *       ts: true,
 *       compiler: 'webpack5',
 *     }]
 *  ]
 * }
 * ```
 * 2.
 * ```js
 * const taroBabelConfig = {
 *  framework: 'react',
 *  ts: true,
 *  compiler: 'webpack5',
 * }
 * module.exports = {
 *   presets: [
 *      ['taro', taroBabelConfig]
 *  ]
 * }
 * ```
 */
export declare function updateBabelConfig(ctx: IPluginContext): Promise<void>;
