import { type Configuration } from 'webpack'; import { type RspackOptions } from '@rspack/core'; import { type EvolveEntryMap } from '../types/types-entry-map.js'; import { type FlatEvolveOptions } from '../types/types-options.js'; /** * Asserts a single compiler configuration by generating a new entry object based on the served entries, * webpack configuration, evolve options, and enabled HMR flag. * * @param servedEntries - The served entries object. * @param webpackConfig `Omit` webpack final configuration * @param evolveOptions - The flat evolve options object. * @param enabledHmr - Flag indicating whether Hot Module Replacement (HMR) is enabled. Default is false. * @returns The merged webpack configuration object with the new entry object. * @throws Error if the react-refresh-webpack-plugin package directory is not found. */ export declare function assertSingleWebpackCompiler(servedEntries: EvolveEntryMap, webpackConfig: Omit, evolveOptions: FlatEvolveOptions, enabledHmr?: boolean): Configuration; /** * Asserts a single compiler configuration by generating a new entry object based on the served entries, * rspack configuration, evolve options, and enabled HMR flag. * * @param servedEntries - The served entries object. * @param rspackConfig `Omit` rspack final configuration * @param evolveOptions - The flat evolve options object. * @param enabledHmr - Flag indicating whether Hot Module Replacement (HMR) is enabled. Default is false. * @returns The merged rspack configuration object with the new entry object. * @throws Error if the react-refresh-webpack-plugin package directory is not found. */ export declare function assertSingleRspackCompiler(servedEntries: EvolveEntryMap, rspackConfig: Omit, evolveOptions: FlatEvolveOptions, enabledHmr?: boolean): RspackOptions;