import { webpack } from 'next/dist/compiled/webpack/webpack'; import { WebpackEntrypoints } from './entries'; import { NextConfig } from '../next-server/server/config'; import { CustomRoutes } from '../lib/load-custom-routes.js'; export declare function attachReactRefresh(webpackConfig: webpack.Configuration, targetLoader: webpack.RuleSetUseItem): void; export default function getBaseWebpackConfig(dir: string, { buildId, config, dev, isServer, pagesDirs, target, reactProductionProfiling, entrypoints, rewrites, }: { buildId: string; config: NextConfig; dev?: boolean; isServer?: boolean; pagesDirs: string[]; target?: string; reactProductionProfiling?: boolean; entrypoints: WebpackEntrypoints; rewrites: CustomRoutes['rewrites']; }): Promise;