import { Configuration } from '../../compiled/webpack'; import { Env, IConfig } from '../types'; export interface IOpts { cwd: string; rootDir?: string; env: Env; entry: Record; extraBabelPresets?: any[]; extraBabelPlugins?: any[]; extraBabelIncludes?: Array; extraBabelExcludes?: Array; extraEsbuildLoaderHandler?: any[]; babelPreset?: any; chainWebpack?: Function; modifyWebpackConfig?: Function; hash?: boolean; hmr?: boolean; staticPathPrefix?: string; userConfig: IConfig; analyze?: any; compression?: any; name?: string; cache?: { absNodeModulesPath?: string; buildDependencies?: string[]; cacheDirectory?: string; }; pkg?: Record; disableCopy?: boolean; host?: string; port?: number; } export declare function getConfig(opts: IOpts): Promise;