import type { RspackOptions } from '@rspack/core'; import type { GlobalStore } from '..'; import type { EmpConfig } from '../empConfig'; type EntriesConfigType = { [chunk: string]: { html: EmpConfig['html']; entry: RspackOptions['entry']; }; }; declare class RspackEntries { store: GlobalStore; entriesConfig: EntriesConfigType; setup(store: GlobalStore): Promise; private setHtmlConfig; private prepareAndSetAsset; /** * injectPolyfill 插入 polyfill 代码 */ private injectPolyfill; /** * chunk name 格式化 去除 后缀 * @param filename * @returns */ private setChunk; private setTemplate; private setFavicion; /** * * @param filename 文件名 * @param op html plugin 配置 * @param absPath 文件 绝对路径 */ private setEntryItem; setRspackHtmlPlugin(config: EmpConfig['html'], chunk: string): void; setRspackEntry(entry: RspackOptions['entry']): void; init(): Promise; setAutoPage(): Promise; setDefaultEntry(): Promise; setEntryByConfig(): void; toConfig(): void; } declare const _default: RspackEntries; export default _default;