import { IConfig, IBundlerConfigType } from '@umijs/types'; import defaultWebpack from 'webpack'; export interface IOpts { cwd: string; config: IConfig; type: IBundlerConfigType; env: 'development' | 'production'; entry?: { [key: string]: string; }; hot?: boolean; port?: number; babelOpts?: object; babelOptsForDep?: object; targets?: any; browserslist?: any; bundleImplementor?: typeof defaultWebpack; modifyBabelOpts?: (opts: object) => Promise; modifyBabelPresetOpts?: (opts: object) => Promise; chainWebpack?: (webpackConfig: any, args: any) => Promise; miniCSSExtractPluginPath?: string; miniCSSExtractPluginLoaderPath?: string; } export default function getConfig(opts: IOpts): Promise;