import webpack from '../compiled/webpack';
import type { IOpts as IConfigOpts } from './config/config';
import { IConfig } from './types';
type IOpts = {
    cwd: string;
    rootDir?: string;
    entry: Record<string, string>;
    config: IConfig;
    onBuildComplete?: Function;
    babelPreset?: any;
    chainWebpack?: Function;
    modifyWebpackConfig?: Function;
    beforeBabelPlugins?: any[];
    beforeBabelPresets?: any[];
    extraBabelPlugins?: any[];
    extraBabelPresets?: any[];
    clean?: boolean;
    watch?: boolean;
    disableCopy?: boolean;
} & Pick<IConfigOpts, 'cache' | 'pkg'>;
export declare function build(opts: IOpts): Promise<webpack.Stats>;
export {};
