diff --git a/packages/rspack-dev-server/temp/api.md b/packages/rspack-dev-server/temp/api.md new file mode 100644 index 00000000000..3f97d09cd2b --- /dev/null +++ b/packages/rspack-dev-server/temp/api.md @@ -0,0 +1,39 @@ +## API Report File for "@rspack/dev-server" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +/// + +import { Compiler } from '@rspack/core'; +import { DevServer as Configuration } from '@rspack/core'; +import type { FSWatcher } from 'chokidar'; +import { MultiCompiler } from '@rspack/core'; +import type { Server } from 'http'; +import type { Socket } from 'net'; +import WebpackDevServer from 'webpack-dev-server'; + +export { Configuration } + +// @public (undocumented) +export class RspackDevServer extends WebpackDevServer { + constructor(options: Configuration, compiler: Compiler | MultiCompiler); + compiler: Compiler | MultiCompiler; + // (undocumented) + initialize(): Promise; + // Warning: (ae-forgotten-export) The symbol "ResolvedDevServer" needs to be exported by the entry point index.d.ts + options: ResolvedDevServer; + // (undocumented) + server: Server; + // (undocumented) + sockets: Socket[]; + // (undocumented) + staticWatchers: FSWatcher[]; + // (undocumented) + webSocketServer: WebpackDevServer.WebSocketServerImplementation | undefined; +} + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/rspack-plugin-react-refresh/temp/api.md b/packages/rspack-plugin-react-refresh/temp/api.md new file mode 100644 index 00000000000..c9b4e1aa2df --- /dev/null +++ b/packages/rspack-plugin-react-refresh/temp/api.md @@ -0,0 +1,17 @@ +## API Report File for "@rspack/plugin-react-refresh" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +// @public (undocumented) +export type PluginOptions = { + include?: string | RegExp | (string | RegExp)[] | null; + exclude?: string | RegExp | (string | RegExp)[] | null; + library?: string; + forceEnable?: boolean; +}; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/rspack-test-tools/temp/api.md b/packages/rspack-test-tools/temp/api.md new file mode 100644 index 00000000000..5fecd25ea71 --- /dev/null +++ b/packages/rspack-test-tools/temp/api.md @@ -0,0 +1,1162 @@ +## API Report File for "@rspack/test-tools" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +/// +/// + +import { Compiler } from '@rspack/core'; +import { Compiler as Compiler_2 } from 'webpack'; +import type { Configuration } from 'webpack'; +import EventEmitter from 'events'; +import { ITestCompilerManager as ITestCompilerManager_2 } from '../type'; +import { RspackOptions } from '@rspack/core'; +import { RspackOptionsNormalized } from '@rspack/core'; +import { RspackPluginInstance } from '@rspack/core'; +import { Stats } from '@rspack/core'; +import type { Stats as Stats_2 } from 'webpack'; +import { StatsCompilation } from '@rspack/core'; +import { WebpackOptionsNormalized } from 'webpack'; + +// @public (undocumented) +export class BasicRunnerFactory implements TRunnerFactory { + constructor(name: string, context: ITestContext); + // (undocumented) + protected context: ITestContext; + // (undocumented) + create(file: string, compilerOptions: TCompilerOptions, env: ITestEnv): ITestRunner; + // (undocumented) + protected createRunner(file: string, compilerOptions: TCompilerOptions, env: ITestEnv): ITestRunner; + // (undocumented) + protected getRunnerKey(file: string): string; + // (undocumented) + protected name: string; +} + +// @public (undocumented) +export class BasicTaskProcessor implements ITestProcessor { + constructor(_options: IBasicProcessorOptions); + // (undocumented) + after(context: ITestContext): Promise; + // (undocumented) + afterAll(context: ITestContext): Promise; + // (undocumented) + before(context: ITestContext): Promise; + // (undocumented) + beforeAll(context: ITestContext): Promise; + // (undocumented) + build(context: ITestContext): Promise; + // (undocumented) + check(env: ITestEnv, context: ITestContext): Promise; + // (undocumented) + compiler(context: ITestContext): Promise; + // (undocumented) + config(context: ITestContext): Promise; + // (undocumented) + protected getCompiler(context: ITestContext): ITestCompilerManager_2; + // (undocumented) + protected _options: IBasicProcessorOptions; + // (undocumented) + run(env: ITestEnv, context: ITestContext): Promise; +} + +// @public (undocumented) +export function compareContent(sourceContent: string | false, distContent: string | false, compareOptions: ICompareOptions): TCompareResult; + +// @public (undocumented) +export function compareFile(sourceFile: string, distFile: string, compareOptions: ICompareOptions): TFileCompareResult; + +// @public (undocumented) +export function compareModules(modules: string[], sourceModules: Map, distModules: Map, compareOptions: ICompareOptions): TModuleCompareResult[]; + +// @public (undocumented) +export function createBuiltinCase(name: string, src: string, dist: string): void; + +// @public (undocumented) +export function createConfigCase(name: string, src: string, dist: string): void; + +// @public (undocumented) +export function createDefaultsCase(src: string): void; + +// @public (undocumented) +export function createDiagnosticCase(name: string, src: string, dist: string): void; + +// @public (undocumented) +export function createDiffCase(name: string, src: string, dist: string): void; + +// @public (undocumented) +export function createHashCase(name: string, src: string, dist: string): void; + +// @public (undocumented) +export function createHotCase(name: string, src: string, dist: string, target: TCompilerOptions["target"]): void; + +// @public (undocumented) +export function createHotStepCase(name: string, src: string, dist: string, target: TCompilerOptions["target"]): void; + +// @public (undocumented) +export function createNormalCase(name: string, src: string, dist: string): void; + +// @public (undocumented) +export function createStatsCase(name: string, src: string, dist: string): void; + +// @public (undocumented) +export function createTreeShakingCase(name: string, src: string, dist: string): void; + +// @public (undocumented) +export function createWatchCase(name: string, src: string, dist: string, temp: string): void; + +// @public (undocumented) +export class DefaultsConfigTaskProcessor extends SimpleTaskProcessor { + constructor(_defaultsConfigOptions: IDefaultsConfigProcessorOptions); + // (undocumented) + static addSnapshotSerializer(): void; + // (undocumented) + after(context: ITestContext): Promise; + // (undocumented) + afterAll(context: ITestContext): Promise; + // (undocumented) + before(context: ITestContext): Promise; + // (undocumented) + beforeAll(context: ITestContext): Promise; + // (undocumented) + build(context: ITestContext): Promise; + // (undocumented) + check(env: ITestEnv, context: ITestContext): Promise; + // (undocumented) + compiler(context: ITestContext): Promise; + // (undocumented) + protected _defaultsConfigOptions: IDefaultsConfigProcessorOptions; + // (undocumented) + protected getCompiler(context: ITestContext): ITestCompilerManager_2; + // (undocumented) + static getDefaultConfig(cwd: string, config: TCompilerOptions): TCompilerOptions; + // (undocumented) + run(env: ITestEnv, context: ITestContext): Promise; +} + +// @public (undocumented) +export function describeByWalk(name: string, sourceBase: string, distBase: string, createCase: (name: string, src: string, dist: string) => void, whitelist?: { + cat?: RegExp; + case?: RegExp; +}): void; + +// @public (undocumented) +export class DiffComparator { + constructor(options: IDiffComparatorOptions); + // (undocumented) + compare(): Promise; +} + +// @public (undocumented) +export class DiffHtmlReporter implements ITestReporter { + constructor(options: IDiffHtmlReporterOptions); + // (undocumented) + failure(id: string): Promise; + // (undocumented) + increment(id: string, data: TModuleCompareResult[]): Promise; + // (undocumented) + init(data?: TModuleCompareResult[]): Promise; + // (undocumented) + output(): Promise; +} + +// @public (undocumented) +export class DiffProcessor implements ITestProcessor { + constructor(options: IDiffProcessorOptions); + // (undocumented) + build(context: ITestContext): Promise; + // (undocumented) + check(env: ITestEnv, context: ITestContext): Promise; + // (undocumented) + compiler(context: ITestContext): Promise; + // (undocumented) + config(context: ITestContext): Promise; +} + +// @public (undocumented) +export class DiffStatsReporter implements ITestReporter { + constructor(options: IDiffStatsReporterOptions); + // (undocumented) + failure(id: string): Promise; + // (undocumented) + increment(id: string, data: TModuleCompareResult[]): Promise; + // (undocumented) + init(data?: TModuleCompareResult[]): Promise; + // (undocumented) + output(): Promise; +} + +// @public (undocumented) +export enum ECompareResultType { + // (undocumented) + Different = "different", + // (undocumented) + Missing = "missing", + // (undocumented) + OnlyDist = "only-dist", + // (undocumented) + OnlySource = "only-source", + // (undocumented) + Same = "same" +} + +// @public (undocumented) +export enum ECompilerType { + // (undocumented) + Rspack = "rspack", + // (undocumented) + Webpack = "webpack" +} + +// @public (undocumented) +export enum EEsmMode { + // (undocumented) + Evaluated = 1, + // (undocumented) + Unknown = 0, + // (undocumented) + Unlinked = 2 +} + +// @public (undocumented) +export function formatCode(name: string, raw: string, options: IFormatCodeOptions): string; + +// @public (undocumented) +export class HotRunnerFactory extends BasicRunnerFactory { + // (undocumented) + protected createRunner(file: string, compilerOptions: TCompilerOptions, env: ITestEnv): ITestRunner; +} + +// @public (undocumented) +export class HotStepRunnerFactory extends HotRunnerFactory { + // (undocumented) + protected createRunner(file: string, compilerOptions: TCompilerOptions, env: ITestEnv): ITestRunner; +} + +// @public (undocumented) +export interface IBasicGlobalContext { + // (undocumented) + [key: string]: any; + // (undocumented) + clearTimeout: typeof clearTimeout; + // (undocumented) + console: Console; + // (undocumented) + expect: jest.Expect; + // (undocumented) + setTimeout: typeof setTimeout; +} + +// @public (undocumented) +export interface IBasicModuleScope extends ITestEnv { + // (undocumented) + [key: string]: any; + // (undocumented) + console: Console; + // (undocumented) + expect: jest.Expect; + // (undocumented) + jest: typeof jest; +} + +// @public (undocumented) +export interface IBasicProcessorOptions { + // (undocumented) + compilerType: T; + // (undocumented) + configFiles?: string[]; + // (undocumented) + defaultOptions?: (context: ITestContext) => TCompilerOptions; + // (undocumented) + findBundle?: (context: ITestContext, options: TCompilerOptions) => string[] | string | void; + // (undocumented) + name: string; + // (undocumented) + overrideOptions?: (context: ITestContext, options: TCompilerOptions) => void; + // (undocumented) + runable: boolean; +} + +// @public (undocumented) +export interface IBasicRunnerOptions { + // (undocumented) + compilerOptions: TCompilerOptions; + // (undocumented) + dist: string; + // (undocumented) + env: ITestEnv; + // (undocumented) + name: string; + // (undocumented) + runInNewContext?: boolean; + // (undocumented) + source: string; + // (undocumented) + stats?: TCompilerStats; + // (undocumented) + testConfig: TTestConfig; +} + +// @public (undocumented) +export interface ICompareOptions { + // (undocumented) + bootstrap?: boolean; + // (undocumented) + detail?: boolean; + // (undocumented) + format: IFormatCodeOptions; + // (undocumented) + modules?: TCompareModules; + // (undocumented) + renameModule?: (name: string) => string; + // (undocumented) + runtimeModules?: TCompareModules; +} + +// @public (undocumented) +export interface IDefaultsConfigProcessorOptions { + // (undocumented) + cwd?: string; + // (undocumented) + diff: (diff: any, defaults: any) => Promise; + // (undocumented) + name: string; + // (undocumented) + options?: (context: ITestContext) => TCompilerOptions; +} + +// @public (undocumented) +export interface IDiffComparatorOptions { + // (undocumented) + bootstrap?: boolean; + // (undocumented) + files: string[]; + // (undocumented) + formatOptions?: IFormatCodeOptions; + // (undocumented) + modules?: TCompareModules; + // (undocumented) + reporters: ITestReporter[]; + // (undocumented) + rspackDist: string; + // (undocumented) + runtimeModules?: TCompareModules; + // (undocumented) + webpackDist: string; +} + +// @public (undocumented) +export interface IDiffHtmlReporterOptions { + // (undocumented) + dist: string; + // (undocumented) + ignore?: RegExp; +} + +// @public (undocumented) +export interface IDiffProcessorOptions extends IFormatCodeOptions { + // (undocumented) + bootstrap?: boolean; + // (undocumented) + detail?: boolean; + // (undocumented) + files?: string[]; + // (undocumented) + modules?: TCompareModules; + // (undocumented) + onCompareFile?: (file: string, result: TFileCompareResult) => void; + // (undocumented) + onCompareModules?: (file: string, results: TModuleCompareResult[]) => void; + // (undocumented) + onCompareRuntimeModules?: (file: string, results: TModuleCompareResult[]) => void; + // (undocumented) + rspackPath: string; + // (undocumented) + runtimeModules?: TCompareModules; + // (undocumented) + webpackPath: string; +} + +// @public (undocumented) +export interface IDiffStatsReporterOptions { + // (undocumented) + file: string; + // (undocumented) + footer?: string[]; + // (undocumented) + header?: string[]; + // (undocumented) + report?: boolean; +} + +// @public (undocumented) +export interface IFormatCodeOptions { + // (undocumented) + ignoreBlockOnlyStatement: boolean; + // (undocumented) + ignoreCssFilePath: boolean; + // (undocumented) + ignoreIfCertainCondition: boolean; + // (undocumented) + ignoreModuleArguments: boolean; + // (undocumented) + ignoreModuleId: boolean; + // (undocumented) + ignoreObjectPropertySequence: boolean; + // (undocumented) + ignorePropertyQuotationMark: boolean; + // (undocumented) + ignoreSwcHelpersPath: boolean; + // (undocumented) + replacements?: Record; +} + +// @public (undocumented) +export interface IMultiTaskProcessorOptions { + // (undocumented) + compilerType: ECompilerType.Rspack; + // (undocumented) + configFiles?: string[]; + // (undocumented) + defaultOptions?: (index: number, context: ITestContext) => TCompilerOptions; + // (undocumented) + findBundle?: (index: number, context: ITestContext, options: TCompilerOptions) => string[] | string | void; + // (undocumented) + name: string; + // (undocumented) + overrideOptions?: (index: number, context: ITestContext, options: TCompilerOptions) => void; + // (undocumented) + runable: boolean; +} + +// @public (undocumented) +export interface IRspackBuiltinProcessorOptions { + // (undocumented) + name: string; + // (undocumented) + snapshot: string; + // (undocumented) + snapshotFileFilter?: ISnapshotProcessorOptions["snapshotFileFilter"]; +} + +// @public (undocumented) +export interface IRspackConfigProcessorOptions { + // (undocumented) + name: string; + // (undocumented) + runable: boolean; +} + +// @public (undocumented) +export interface IRspackDiagnosticProcessorOptions { + // (undocumented) + name: string; + // (undocumented) + root: string; +} + +// @public (undocumented) +export interface IRspackHashProcessorOptions { + // (undocumented) + name: string; +} + +// @public (undocumented) +export interface IRspackHotProcessorOptions { + // (undocumented) + name: string; + // (undocumented) + target: TCompilerOptions["target"]; +} + +// @public (undocumented) +export interface IRspackHotStepProcessorOptions extends IRspackHotProcessorOptions { +} + +// @public (undocumented) +export interface IRspackStatsProcessorOptions { + // (undocumented) + name: string; +} + +// @public (undocumented) +export interface IRspackWatchProcessorOptions { + // Warning: (ae-forgotten-export) The symbol "TRspackExperiments" needs to be exported by the entry point index.d.ts + // + // (undocumented) + experiments?: TRspackExperiments; + // (undocumented) + name: string; + // Warning: (ae-forgotten-export) The symbol "TRspackOptimization" needs to be exported by the entry point index.d.ts + // + // (undocumented) + optimization?: TRspackOptimization; + // (undocumented) + runable: boolean; + // (undocumented) + stepName: string; + // (undocumented) + tempDir: string; +} + +// @public (undocumented) +export interface IRspackWatchStepProcessorOptions { + // (undocumented) + name: string; + // (undocumented) + runable: boolean; + // (undocumented) + stepName: string; + // (undocumented) + tempDir: string; +} + +// @public (undocumented) +export const isDirectory: (p: string) => boolean; + +// @public (undocumented) +export interface ISimpleProcessorOptions { + // (undocumented) + build?: (context: ITestContext, compiler: TCompiler) => Promise; + // (undocumented) + check?: (context: ITestContext, compiler: TCompiler, stats: TCompilerStats) => Promise; + // (undocumented) + compiler?: (context: ITestContext, compiler: TCompiler) => Promise; + // (undocumented) + compilerType: T; + // (undocumented) + name: string; + // (undocumented) + options?: (context: ITestContext) => TCompilerOptions; +} + +// @public (undocumented) +export interface ISnapshotProcessorOptions extends IBasicProcessorOptions { + // (undocumented) + snapshot: string; + // (undocumented) + snapshotFileFilter?: (file: string) => boolean; +} + +// @public (undocumented) +export interface IStatsAPITaskProcessorOptions { + // (undocumented) + build?: (context: ITestContext, compiler: TCompiler) => Promise; + // (undocumented) + check?: (stats: TCompilerStats, compiler: TCompiler) => Promise; + // (undocumented) + compilerType: T; + // (undocumented) + cwd?: string; + // (undocumented) + name: string; + // (undocumented) + options?: (context: ITestContext) => TCompilerOptions; +} + +// @public (undocumented) +export const isValidCaseDirectory: (name: string) => boolean; + +// @public (undocumented) +export interface ITestCompilerManager { + // (undocumented) + build(): Promise>; + // (undocumented) + close(): Promise; + // (undocumented) + createCompiler(): TCompiler; + // (undocumented) + getCompiler(): TCompiler | null; + // (undocumented) + getEmitter(): EventEmitter; + // (undocumented) + getOptions(): TCompilerOptions; + // (undocumented) + getStats(): TCompilerStats | null; + // (undocumented) + mergeOptions(newOptions: TCompilerOptions): TCompilerOptions; + // (undocumented) + setOptions(newOptions: TCompilerOptions): TCompilerOptions; + // (undocumented) + watch(timeout?: number): void; +} + +// @public (undocumented) +export interface ITestContext { + // (undocumented) + clearError(name?: string): void; + // (undocumented) + emitError(name: string, err: Error | string): void; + // (undocumented) + getCompiler(name: string, type: T | void): ITestCompilerManager; + // (undocumented) + getDist(sub?: string): string; + // (undocumented) + getError(name?: string): Error[]; + // (undocumented) + getNames(): string[]; + // (undocumented) + getRunner(key: string): ITestRunner | null; + // (undocumented) + getRunnerFactory(name: string): TRunnerFactory | null; + // (undocumented) + getSource(sub?: string): string; + // (undocumented) + getTemp(sub?: string): string | null; + // (undocumented) + getTestConfig(): TTestConfig; + // (undocumented) + getValue(name: string, key: string): T | void; + // (undocumented) + hasError(name?: string): boolean; + // (undocumented) + setRunner(key: string, runner: ITestRunner): void; + // (undocumented) + setValue(name: string, key: string, value: T): void; +} + +// @public (undocumented) +export interface ITestEnv { + // (undocumented) + afterEach: (...args: any[]) => void; + // (undocumented) + beforeEach: (...args: any[]) => void; + // (undocumented) + it: (...args: any[]) => void; +} + +// @public (undocumented) +export interface ITester { + // (undocumented) + check(env: ITestEnv): Promise; + // (undocumented) + compile(): Promise; + // (undocumented) + next(): boolean; + // (undocumented) + prepare(): Promise; + // (undocumented) + resume(): Promise; + // (undocumented) + step: number; + // (undocumented) + total: number; +} + +// @public (undocumented) +export interface ITesterConfig { + // (undocumented) + dist: string; + // (undocumented) + name: string; + // (undocumented) + runnerFactory?: new (name: string, context: ITestContext) => TRunnerFactory; + // (undocumented) + src: string; + // (undocumented) + steps?: ITestProcessor[]; + // (undocumented) + temp?: string; + // (undocumented) + testConfig?: TTestConfig; +} + +// @public (undocumented) +export interface ITestLoader { + // (undocumented) + walk(): Promise; +} + +// @public (undocumented) +export interface ITestProcessor { + // (undocumented) + after?(context: ITestContext): Promise; + // (undocumented) + afterAll?(context: ITestContext): Promise; + // (undocumented) + before?(context: ITestContext): Promise; + // (undocumented) + beforeAll?(context: ITestContext): Promise; + // (undocumented) + build?(context: ITestContext): Promise; + // (undocumented) + check?(env: ITestEnv, context: ITestContext): Promise; + // (undocumented) + compiler?(context: ITestContext): Promise; + // (undocumented) + config?(context: ITestContext): Promise; + // (undocumented) + run?(env: ITestEnv, context: ITestContext): Promise; +} + +// @public (undocumented) +export interface ITestReporter { + // (undocumented) + failure(id: string): Promise; + // (undocumented) + increment(id: string, data: T): Promise; + // (undocumented) + init(data?: T): Promise; + // (undocumented) + output(): Promise; +} + +// @public (undocumented) +export interface ITestRunner { + // (undocumented) + getRequire(): TRunnerRequirer; + // (undocumented) + run(file: string): Promise; +} + +// @public (undocumented) +export class MultipleRunnerFactory extends BasicRunnerFactory { + // (undocumented) + protected createRunner(file: string, compilerOptions: TCompilerOptions, env: ITestEnv): ITestRunner; + // (undocumented) + protected getFileIndexHandler(file: string): { + getIndex: () => number[]; + flagIndex: () => Set; + }; + // (undocumented) + protected getRunnerKey(file: string): string; + // (undocumented) + protected runned: Set; +} + +// @public (undocumented) +export class MultiTaskProcessor extends BasicTaskProcessor implements ITestProcessor { + constructor(_multiOptions: IMultiTaskProcessorOptions); + // (undocumented) + config(context: ITestContext): Promise; + // (undocumented) + protected multiCompilerOptions: TCompilerOptions[]; + // (undocumented) + protected _multiOptions: IMultiTaskProcessorOptions; +} + +// @public (undocumented) +export class NormalRunnerFactory extends BasicRunnerFactory { + // (undocumented) + protected createRunner(file: string, compilerOptions: TCompilerOptions, env: ITestEnv): ITestRunner; +} + +// @public (undocumented) +export function parseModules(content: string, options?: { + bootstrap?: boolean; +}): { + modules: Map; + runtimeModules: Map; +}; + +// @public (undocumented) +export function readConfigFile(files: string[]): TCompilerOptions[]; + +// @public (undocumented) +export function replaceModuleArgument(raw: string): string; + +// @public (undocumented) +export function replaceRuntimeModuleName(raw: string): string; + +// @public (undocumented) +export class RspackBuiltinProcessor extends SnapshotProcessor { + constructor(_builtinOptions: IRspackBuiltinProcessorOptions); + // (undocumented) + protected _builtinOptions: IRspackBuiltinProcessorOptions; + // (undocumented) + static defaultOptions(context: ITestContext): TCompilerOptions; +} + +// @public (undocumented) +export class RspackConfigProcessor extends MultiTaskProcessor { + constructor(options: IRspackConfigProcessorOptions); + // (undocumented) + static defaultOptions(index: number, context: ITestContext): TCompilerOptions; + // (undocumented) + static findBundle(index: number, context: ITestContext, options: TCompilerOptions): string | string[] | undefined; + // (undocumented) + static overrideOptions(index: number, context: ITestContext, options: TCompilerOptions): void; +} + +// @public (undocumented) +export class RspackDiagnosticProcessor extends BasicTaskProcessor { + constructor(_diagnosticOptions: IRspackDiagnosticProcessorOptions); + // (undocumented) + after(context: ITestContext): Promise; + // (undocumented) + before(context: ITestContext): Promise; + // (undocumented) + check(env: ITestEnv, context: ITestContext): Promise; + // (undocumented) + static defaultOptions(context: ITestContext): TCompilerOptions; + // (undocumented) + protected _diagnosticOptions: IRspackDiagnosticProcessorOptions; +} + +// @public (undocumented) +export class RspackDiffConfigPlugin implements RspackPluginInstance { + constructor(modifier?: ((options: RspackOptionsNormalized) => RspackOptionsNormalized) | undefined); + // (undocumented) + apply(compiler: Compiler): void; + // (undocumented) + name: string; +} + +// @public (undocumented) +export class RspackHashProcessor extends MultiTaskProcessor { + constructor(options: IRspackHashProcessorOptions); + // (undocumented) + check(env: ITestEnv, context: ITestContext): Promise; + // (undocumented) + static defaultOptions(index: number, context: ITestContext): TCompilerOptions; + // (undocumented) + static overrideOptions(index: number, context: ITestContext, options: TCompilerOptions): void; +} + +// @public (undocumented) +export class RspackHotProcessor extends BasicTaskProcessor { + constructor(_hotOptions: IRspackHotProcessorOptions); + // (undocumented) + static defaultOptions(hotOptions: IRspackHotProcessorOptions, updateOptions: TUpdateOptions): IBasicProcessorOptions["defaultOptions"]; + // (undocumented) + static findBundle(hotOptions: IRspackHotProcessorOptions): IBasicProcessorOptions["findBundle"]; + // (undocumented) + protected _hotOptions: IRspackHotProcessorOptions; + // (undocumented) + static overrideOptions(hotOptions: IRspackHotProcessorOptions, updateOptions: TUpdateOptions): IBasicProcessorOptions["overrideOptions"]; + // (undocumented) + run(env: ITestEnv, context: ITestContext): Promise; + // (undocumented) + protected runner: ITestRunner | null; + // (undocumented) + protected updateOptions: TUpdateOptions; +} + +// @public (undocumented) +export class RspackHotStepProcessor extends RspackHotProcessor { + constructor(_hotOptions: IRspackHotProcessorOptions); + // (undocumented) + check(env: ITestEnv, context: ITestContext): Promise; + // (undocumented) + protected _hotOptions: IRspackHotProcessorOptions; + // (undocumented) + protected matchStepSnapshot(context: ITestContext, step: number, stats: StatsCompilation): void; + // (undocumented) + run(env: ITestEnv, context: ITestContext): Promise; +} + +// @public (undocumented) +export class RspackStatsProcessor extends MultiTaskProcessor { + constructor(options: IRspackStatsProcessorOptions); + // (undocumented) + after(context: ITestContext): Promise; + // (undocumented) + before(context: ITestContext): Promise; + // (undocumented) + check(env: ITestEnv, context: ITestContext): Promise; + // (undocumented) + compiler(context: ITestContext): Promise; + // (undocumented) + static defaultOptions(index: number, context: ITestContext): TCompilerOptions; + // (undocumented) + static overrideOptions(index: number, context: ITestContext, options: TCompilerOptions): void; +} + +// @public (undocumented) +export class RspackWatchProcessor extends MultiTaskProcessor { + constructor(_watchOptions: IRspackWatchProcessorOptions); + // (undocumented) + build(context: ITestContext): Promise; + // (undocumented) + check(env: ITestEnv, context: ITestContext): Promise; + // (undocumented) + compiler(context: ITestContext): Promise; + // (undocumented) + protected currentTriggerFilename: string | null; + // (undocumented) + protected lastHash: string | null; + // (undocumented) + static overrideOptions({ tempDir, name, experiments, optimization }: IRspackWatchProcessorOptions): (index: number, context: ITestContext, options: TCompilerOptions) => void; + // (undocumented) + run(env: ITestEnv, context: ITestContext): Promise; + // (undocumented) + protected _watchOptions: IRspackWatchProcessorOptions; +} + +// @public (undocumented) +export class RspackWatchStepProcessor extends RspackWatchProcessor { + constructor(_watchOptions: IRspackWatchStepProcessorOptions); + // (undocumented) + build(context: ITestContext): Promise; + // (undocumented) + compiler(context: ITestContext): Promise; + // (undocumented) + protected _watchOptions: IRspackWatchStepProcessorOptions; +} + +// @public (undocumented) +export class SimpleTaskProcessor implements ITestProcessor { + constructor(_options: ISimpleProcessorOptions); + // (undocumented) + after(context: ITestContext): Promise; + // (undocumented) + afterAll(context: ITestContext): Promise; + // (undocumented) + before(context: ITestContext): Promise; + // (undocumented) + beforeAll(context: ITestContext): Promise; + // (undocumented) + build(context: ITestContext): Promise; + // (undocumented) + check(env: ITestEnv, context: ITestContext): Promise; + // (undocumented) + compiler(context: ITestContext): Promise; + // (undocumented) + config(context: ITestContext): Promise; + // (undocumented) + protected getCompiler(context: ITestContext): ITestCompilerManager_2; + // (undocumented) + protected _options: ISimpleProcessorOptions; + // (undocumented) + run(env: ITestEnv, context: ITestContext): Promise; +} + +// @public (undocumented) +export class SnapshotProcessor extends BasicTaskProcessor { + constructor(_snapshotOptions: ISnapshotProcessorOptions); + // (undocumented) + check(env: ITestEnv, context: ITestContext): Promise; + // (undocumented) + protected _snapshotOptions: ISnapshotProcessorOptions; +} + +// @public (undocumented) +export class StatsAPITaskProcessor extends SimpleTaskProcessor { + constructor(_statsAPIOptions: IStatsAPITaskProcessorOptions); + // (undocumented) + static addSnapshotSerializer(): void; + // (undocumented) + after(context: ITestContext): Promise; + // (undocumented) + before(context: ITestContext): Promise; + // (undocumented) + check(env: ITestEnv, context: ITestContext): Promise; + // (undocumented) + compiler(context: ITestContext): Promise; + // (undocumented) + run(env: ITestEnv, context: ITestContext): Promise; + // (undocumented) + protected _statsAPIOptions: IStatsAPITaskProcessorOptions; +} + +// @public (undocumented) +export type TBasicRunnerFile = { + path: string; + content: string; + subPath: string; +}; + +// @public (undocumented) +export type TCaseSummary = Record; + +// @public (undocumented) +export type TCaseSummaryId = `${TCompilerTypeId}|${TModuleTypeId}|${TDimenTypeId}`; + +// @public (undocumented) +export type TCompareModules = string[] | true; + +// @public (undocumented) +export type TCompareResult = { + type: ECompareResultType; + detail?: unknown; + source?: string; + dist?: string; + lines?: { + common: number; + source: number; + dist: number; + }; +}; + +// @public (undocumented) +export type TCompiler = T extends ECompilerType.Rspack ? Compiler : Compiler_2; + +// @public (undocumented) +export type TCompilerFactory = (options: TCompilerOptions | TCompilerOptions[]) => TCompiler; + +// @public (undocumented) +export type TCompilerOptions = T extends ECompilerType.Rspack ? RspackOptions : Configuration; + +// @public (undocumented) +export type TCompilerStats = T extends ECompilerType.Rspack ? Stats : Stats_2; + +// @public (undocumented) +export type TCompilerTypeId = ECompilerType.Rspack | ECompilerType.Webpack | "common"; + +// @public (undocumented) +export type TDiffStats = { + root: string; + data: Array; +}; + +// @public (undocumented) +export type TDiffStatsItem = { + name: string; + source: string; + dist: string; + type: ECompareResultType; +}; + +// @public (undocumented) +export type TDimenTypeId = "modules" | "lines" | "lines-in-common"; + +// @public (undocumented) +export class TestContext implements ITestContext { + constructor(config: TTestContextOptions); + // (undocumented) + clearError(name?: string): void; + // (undocumented) + protected compilers: Map>; + // (undocumented) + emitError(name: string, err: Error | string): void; + // (undocumented) + protected errors: Map; + // (undocumented) + getCompiler(name: string, type: T | void): ITestCompilerManager; + // (undocumented) + getDist(sub?: string): string; + // (undocumented) + getError(name?: string): Error[]; + // (undocumented) + getNames(): string[]; + // (undocumented) + getRunner(key: string): ITestRunner | null; + // (undocumented) + getRunnerFactory(name: string): TRunnerFactory | null; + // (undocumented) + getSource(sub?: string): string; + // (undocumented) + getTemp(sub?: string): string | null; + // (undocumented) + getTestConfig(): TTestConfig; + // (undocumented) + getValue(name: string, key: string): T | void; + // (undocumented) + hasError(name?: string): boolean; + // (undocumented) + protected runnerFactory: TRunnerFactory | null; + // (undocumented) + protected runners: Map; + // (undocumented) + setRunner(key: string, runner: ITestRunner): void; + // (undocumented) + setValue(name: string, key: string, value: T): void; + // (undocumented) + protected store: Map>; +} + +// @public (undocumented) +export class Tester implements ITester { + constructor(config: ITesterConfig); + // (undocumented) + check(env: ITestEnv): Promise; + // (undocumented) + compile(): Promise; + // (undocumented) + next(): boolean; + // (undocumented) + prepare(): Promise; + // (undocumented) + resume(): Promise; + // (undocumented) + step: number; + // (undocumented) + total: number; +} + +// @public (undocumented) +export type TFileCompareResult = TCompareResult & { + file: { + source: string; + dist: string; + }; + modules: Partial>; +}; + +// @public (undocumented) +export type TModuleCompareResult = TCompareResult & { + name: string; +}; + +// @public (undocumented) +export type TModuleTypeId = "normal" | "runtime"; + +// @public (undocumented) +export interface TRunnerFactory { + // (undocumented) + create(file: string, compilerOptions: TCompilerOptions, env: ITestEnv): ITestRunner; +} + +// @public (undocumented) +export type TRunnerRequirer = (currentDirectory: string, modulePath: string[] | string, context?: { + file?: TBasicRunnerFile; + esmMode?: EEsmMode; +}) => Object | Promise; + +// @public (undocumented) +export type TTestConfig = { + validate?: (stats: TCompilerStats, stderr?: string) => void; + noTest?: boolean; + beforeExecute?: () => void; + afterExecute?: () => void; + moduleScope?: (ms: IBasicModuleScope) => IBasicModuleScope; + findBundle?: (index: number, options: TCompilerOptions) => string | string[]; + bundlePath?: string[]; + nonEsmThis?: (p: string | string[]) => Object; + modules?: Record; + timeout?: number; +}; + +// @public (undocumented) +export type TTestContextOptions = Omit; + +// @public (undocumented) +export type TTestFilter = (creatorConfig: Record, testConfig: TTestConfig) => boolean | string; + +// @public (undocumented) +export type TTestRunResult = Record; + +// @public (undocumented) +export type TUpdateOptions = { + updateIndex: number; +}; + +// @public (undocumented) +export class WatchRunnerFactory extends BasicRunnerFactory { + // (undocumented) + protected createRunner(file: string, compilerOptions: TCompilerOptions, env: ITestEnv): ITestRunner; + // (undocumented) + protected getRunnerKey(file: string): string; +} + +// @public (undocumented) +export class WebpackDiffConfigPlugin { + constructor(modifier?: ((options: WebpackOptionsNormalized) => WebpackOptionsNormalized) | undefined); + // (undocumented) + apply(compiler: Compiler_2): void; + // (undocumented) + name: string; +} + +// @public (undocumented) +export class WebpackModulePlaceholderPlugin { + constructor(); + // (undocumented) + apply(compiler: any): void; +} + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/rspack/src/container/default.runtime.js b/packages/rspack/src/container/default.runtime.js index 0cb06ee4a52..86579f98f5b 100644 --- a/packages/rspack/src/container/default.runtime.js +++ b/packages/rspack/src/container/default.runtime.js @@ -91,10 +91,11 @@ module.exports = function () { for (let stage of stages) { if (typeof stage === "object" && stage !== null) { const { name, version, factory, eager } = stage; + const options = { version, scope, get: factory }; if (shared[name]) { - shared[name].scope.push(scope); + shared[name].push(options); } else { - shared[name] = { version, get: factory, scope: [scope] }; + shared[name] = [options]; } } } diff --git a/packages/rspack/temp/api.md b/packages/rspack/temp/api.md new file mode 100644 index 00000000000..81e6b814d61 --- /dev/null +++ b/packages/rspack/temp/api.md @@ -0,0 +1,5003 @@ +## API Report File for "@rspack/core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +/// + +import { AsyncSeriesBailHook as AsyncSeriesBailHook_2 } from 'tapable'; +import { AsyncSeriesHook as AsyncSeriesHook_2 } from 'tapable'; +import * as binding from '@rspack/binding'; +import { BuiltinPlugin } from '@rspack/binding'; +import { BuiltinPluginName } from '@rspack/binding'; +import Cache_2 = require('./lib/Cache'); +import CacheFacade = require('./lib/CacheFacade'); +import { Callback as Callback_2 } from 'tapable'; +import { Compiler as Compiler_2 } from '../Compiler'; +import { RawEvalDevToolModulePluginOptions as EvalDevToolModulePluginOptions } from '@rspack/binding'; +import { cleanupGlobalTrace as experimental_cleanupGlobalTrace } from '@rspack/binding'; +import { registerGlobalTrace as experimental_registerGlobalTrace } from '@rspack/binding'; +import { exports as exports_2 } from './exports'; +import type { ExternalObject } from '@rspack/binding'; +import { fs } from 'fs'; +import Hash = require('../util/hash'); +import { HookMap as HookMap_2 } from 'tapable'; +import { JsAssetInfo } from '@rspack/binding'; +import { JsChunk } from '@rspack/binding'; +import { JsChunkGroup } from '@rspack/binding'; +import { JsCodegenerationResult } from '@rspack/binding'; +import { JsCompilation } from '@rspack/binding'; +import { JsCreateData } from '@rspack/binding'; +import { JsLoaderContext } from '@rspack/binding'; +import { JsLoaderResult } from '@rspack/binding'; +import { JsModule } from '@rspack/binding'; +import { JsPathData } from '@rspack/binding'; +import type { JsRuntimeModule } from '@rspack/binding'; +import { JsStats } from '@rspack/binding'; +import type { JsStatsChunk } from '@rspack/binding'; +import { JsStatsError } from '@rspack/binding'; +import { JsStatsWarning } from '@rspack/binding'; +import { libCacheFacade } from './lib/CacheFacade'; +import { LoaderContext as LoaderContext_2 } from './config'; +import { Logger as Logger_2 } from './logging/Logger'; +import { MultiHook } from 'tapable'; +import { PathWithInfo } from '@rspack/binding'; +import { RawBannerPluginOptions } from '@rspack/binding'; +import { RawBuiltins } from '@rspack/binding'; +import { RawBundlerInfoPluginOptions } from '@rspack/binding'; +import { RawCopyPattern } from '@rspack/binding'; +import { RawCopyRspackPluginOptions } from '@rspack/binding'; +import type { RawCssExtractPluginOption } from '@rspack/binding'; +import { RawEntryPluginOptions } from '@rspack/binding'; +import { RawExternalsPluginOptions } from '@rspack/binding'; +import { RawFuncUseCtx } from '@rspack/binding'; +import { RawHtmlRspackPluginOptions } from '@rspack/binding'; +import { RawHttpExternalsRspackPluginOptions } from '@rspack/binding'; +import { RawIgnorePluginOptions } from '@rspack/binding'; +import type { RawLibraryOptions } from '@rspack/binding'; +import { RawLimitChunkCountPluginOptions } from '@rspack/binding'; +import type { RawOptions } from '@rspack/binding'; +import { RawProgressPluginOptions } from '@rspack/binding'; +import { RawSourceMapDevToolPluginOptions } from '@rspack/binding'; +import { RawSwcJsMinimizerRspackPluginOptions } from '@rspack/binding'; +import { ResolveRequest } from 'enhanced-resolve'; +import ResolverFactory = require('./ResolverFactory'); +import { rspack as rspack_3 } from './rspack'; +import { RspackOptionsNormalized as RspackOptionsNormalized_2 } from '.'; +import { Source } from 'webpack-sources'; +import { SyncBailHook as SyncBailHook_2 } from 'tapable'; +import { SyncHook as SyncHook_2 } from 'tapable'; +import { SyncWaterfallHook } from 'tapable'; +import * as tapable from 'tapable'; +import { UnsetAdditionalOptions as UnsetAdditionalOptions_2 } from 'tapable'; +import type { WatchOptions as WatchOptions_2 } from 'watchpack'; +import type * as webpackDevServer from 'webpack-dev-server'; +import { z } from 'zod'; + +// Warning: (ae-forgotten-export) The symbol "amdContainer" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type AmdContainer = z.infer; + +// @public (undocumented) +export const applyRspackOptionsBaseDefaults: (options: RspackOptionsNormalized) => void; + +// @public (undocumented) +export const applyRspackOptionsDefaults: (options: RspackOptionsNormalized) => void; + +// @public (undocumented) +export interface Asset { + // (undocumented) + info: JsAssetInfo; + // (undocumented) + name: string; + // (undocumented) + source: Source; +} + +// Warning: (ae-forgotten-export) The symbol "assetGeneratorDataUrl" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type AssetGeneratorDataUrl = z.infer; + +// Warning: (ae-forgotten-export) The symbol "assetGeneratorDataUrlFunction" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type AssetGeneratorDataUrlFunction = z.infer; + +// Warning: (ae-forgotten-export) The symbol "assetGeneratorDataUrlOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type AssetGeneratorDataUrlOptions = z.infer; + +// Warning: (ae-forgotten-export) The symbol "assetGeneratorOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type AssetGeneratorOptions = z.infer; + +// @public (undocumented) +export type AssetInfo = Partial & Record; + +// Warning: (ae-forgotten-export) The symbol "assetInlineGeneratorOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type AssetInlineGeneratorOptions = z.infer; + +// Warning: (ae-forgotten-export) The symbol "assetModuleFilename" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type AssetModuleFilename = z.infer; + +// Warning: (ae-forgotten-export) The symbol "assetParserDataUrl" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type AssetParserDataUrl = z.infer; + +// Warning: (ae-forgotten-export) The symbol "assetParserDataUrlOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type AssetParserDataUrlOptions = z.infer; + +// Warning: (ae-forgotten-export) The symbol "assetParserOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type AssetParserOptions = z.infer; + +// Warning: (ae-forgotten-export) The symbol "assetResourceGeneratorOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type AssetResourceGeneratorOptions = z.infer; + +// @public (undocumented) +export type Assets = Record; + +// Warning: (ae-forgotten-export) The symbol "asyncChunks" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type AsyncChunks = z.infer; + +// Warning: (ae-forgotten-export) The symbol "auxiliaryComment" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type AuxiliaryComment = z.infer; + +// Warning: (ae-forgotten-export) The symbol "bail" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Bail = z.infer; + +// @public (undocumented) +export const BannerPlugin: { + new (args: string | ((args_0: { + hash: string; + chunk: JsChunk; + filename: string; + }, ...args_1: unknown[]) => string) | { + banner: (string | ((args_0: { + hash: string; + chunk: JsChunk; + filename: string; + }, ...args_1: unknown[]) => string)) & (string | ((args_0: { + hash: string; + chunk: JsChunk; + filename: string; + }, ...args_1: unknown[]) => string) | undefined); + entryOnly?: boolean | undefined; + exclude?: string | RegExp | (string | RegExp)[] | undefined; + include?: string | RegExp | (string | RegExp)[] | undefined; + raw?: boolean | undefined; + footer?: boolean | undefined; + test?: string | RegExp | (string | RegExp)[] | undefined; + }): { + name: BuiltinPluginName; + _options: RawBannerPluginOptions; + affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined; + raw(): BuiltinPlugin; + apply(compiler: Compiler_2): void; + }; +}; + +// Warning: (ae-forgotten-export) The symbol "bannerPluginArgument" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type BannerPluginArgument = z.infer; + +// Warning: (ae-forgotten-export) The symbol "baseUri" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type BaseUri = z.infer; + +// Warning: (ae-forgotten-export) The symbol "builtins" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Builtins = z.infer; + +// Warning: (ae-forgotten-export) The symbol "cacheOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type CacheOptions = z.infer; + +// Warning: (ae-forgotten-export) The symbol "chunkFilename" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ChunkFilename = z.infer; + +// Warning: (ae-forgotten-export) The symbol "chunkFormat" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ChunkFormat = z.infer; + +// @public (undocumented) +export class ChunkGroup { + protected constructor(inner: JsChunkGroup, compilation: JsCompilation); + // (undocumented) + static __from_binding(chunk: JsChunkGroup, compilation: JsCompilation): ChunkGroup; + // (undocumented) + __internal_inner_compilation(): JsCompilation; + // (undocumented) + __internal_inner_ukey(): number; + // (undocumented) + getFiles(): string[]; + // (undocumented) + getParents(): ChunkGroup[]; + // (undocumented) + get index(): number | undefined; + // (undocumented) + get name(): string | undefined; +} + +// Warning: (ae-forgotten-export) The symbol "chunkLoading" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ChunkLoading = z.infer; + +// Warning: (ae-forgotten-export) The symbol "chunkLoadingGlobal" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ChunkLoadingGlobal = z.infer; + +// Warning: (ae-forgotten-export) The symbol "chunkLoadingType" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ChunkLoadingType = z.infer; + +// Warning: (ae-forgotten-export) The symbol "clean" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Clean = z.infer; + +// @public (undocumented) +export class Compilation { + constructor(compiler: Compiler, inner: JsCompilation); + // @internal + __internal__deleteAssetSource(filename: string): void; + // @internal + __internal__findJsModule(identifier: string, modules: Map): JsModule | undefined; + // @internal + __internal__getAssetFilenames(): string[]; + // @internal + __internal__getAssetSource(filename: string): Source | void; + // @internal + __internal__getAssociatedModules(chunk: JsStatsChunk): any[] | undefined; + // @internal + __internal__getChunks(): Chunk[]; + // @internal + __internal__getModules(): JsModule[]; + // @internal + __internal__hasAsset(name: string): boolean; + // (undocumented) + __internal__pushNativeDiagnostics(diagnostics: ExternalObject): void; + // @internal + __internal__setAssetSource(filename: string, source: Source): void; + // (undocumented) + __internal_getInner(): JsCompilation; + get assets(): Record; + // (undocumented) + buildDependencies: { + [Symbol.iterator](): Generator; + has(dep: string): boolean; + add: (dep: string) => void; + addAll: (deps: Iterable) => void; + }; + // (undocumented) + children: Compilation[]; + // (undocumented) + childrenCounters: Record; + // Warning: (ae-forgotten-export) The symbol "ChunkGraph" needs to be exported by the entry point index.d.ts + // + // (undocumented) + chunkGraph: ChunkGraph; + // (undocumented) + get chunks(): Chunk[]; + // (undocumented) + compiler: Compiler; + // (undocumented) + contextDependencies: { + [Symbol.iterator](): Generator; + has(dep: string): boolean; + add: (dep: string) => void; + addAll: (deps: Iterable) => void; + }; + // (undocumented) + createChildCompiler(name: string, outputOptions: OutputNormalized, plugins: RspackPluginInstance[]): Compiler; + // (undocumented) + createStatsFactory(options: StatsOptions): StatsFactory; + // Warning: (ae-forgotten-export) The symbol "CreateStatsOptionsContext" needs to be exported by the entry point index.d.ts + // + // (undocumented) + createStatsOptions(optionsOrPreset: StatsValue | undefined, context?: CreateStatsOptionsContext): StatsOptions; + // (undocumented) + createStatsPrinter(options: StatsOptions): StatsPrinter; + // (undocumented) + get currentNormalModuleHooks(): { + loader: tapable.SyncHook<[LoaderContext_2< {}>], void, tapable.UnsetAdditionalOptions>; + readResourceForScheme: any; + readResource: tapable.HookMap], string | Buffer, tapable.UnsetAdditionalOptions>>; + }; + // (undocumented) + deleteAsset(filename: string): void; + emitAsset(filename: string, source: Source, assetInfo?: AssetInfo): void; + // (undocumented) + endTime?: number; + // Warning: (ae-forgotten-export) The symbol "Entrypoint" needs to be exported by the entry point index.d.ts + get entrypoints(): ReadonlyMap; + // (undocumented) + get errors(): { + push: (...errs: (Error | JsStatsError | string)[]) => void; + readonly length: number; + [Symbol.iterator](): { + next(): { + done: boolean; + value?: undefined; + } | { + value: JsStatsError; + done: boolean; + }; + }; + }; + // (undocumented) + fileDependencies: { + [Symbol.iterator](): Generator; + has(dep: string): boolean; + add: (dep: string) => void; + addAll: (deps: Iterable) => void; + }; + // (undocumented) + fileSystemInfo: { + createSnapshot(): null; + }; + // (undocumented) + get fullHash(): string | null; + // (undocumented) + getAsset(name: string): Asset | void; + // (undocumented) + getAssetPath(filename: Filename, data?: PathData): string; + // (undocumented) + getAssetPathWithInfo(filename: Filename, data?: PathData): PathWithInfo; + getAssets(): Readonly[]; + // (undocumented) + getCache(name: string): libCacheFacade; + // Warning: (ae-forgotten-export) The symbol "Logger" needs to be exported by the entry point index.d.ts + // + // (undocumented) + getLogger(name: string | (() => string)): Logger; + // Warning: (ae-forgotten-export) The symbol "PathData" needs to be exported by the entry point index.d.ts + // + // (undocumented) + getPath(filename: Filename, data?: PathData): string; + // (undocumented) + getPathWithInfo(filename: Filename, data?: PathData): PathWithInfo; + // (undocumented) + getStats(): Stats; + // (undocumented) + get hash(): string | null; + // (undocumented) + hooks: { + processAssets: liteTapable.AsyncSeriesHook; + afterProcessAssets: liteTapable.SyncHook; + childCompiler: tapable.SyncHook<[Compiler, string, number]>; + log: tapable.SyncBailHook<[string, LogEntry], true>; + additionalAssets: any; + optimizeModules: liteTapable.SyncBailHook, void>; + afterOptimizeModules: liteTapable.SyncHook, void>; + optimizeTree: liteTapable.AsyncSeriesHook<[ + Iterable, + Iterable + ]>; + optimizeChunkModules: liteTapable.AsyncSeriesBailHook<[ + Iterable, + Iterable + ], void>; + finishModules: liteTapable.AsyncSeriesHook<[Iterable], void>; + chunkAsset: liteTapable.SyncHook<[Chunk, string], void>; + processWarnings: tapable.SyncWaterfallHook<[Error[]]>; + succeedModule: liteTapable.SyncHook<[Module], void>; + stillValidModule: liteTapable.SyncHook<[Module], void>; + statsFactory: tapable.SyncHook<[StatsFactory, StatsOptions], void>; + statsPrinter: tapable.SyncHook<[StatsPrinter, StatsOptions], void>; + buildModule: liteTapable.SyncHook<[Module]>; + executeModule: liteTapable.SyncHook<[ + ExecuteModuleArgument, + ExecuteModuleContext + ]>; + runtimeModule: liteTapable.SyncHook<[JsRuntimeModule, Chunk], void>; + afterSeal: liteTapable.AsyncSeriesHook<[], void>; + }; + // (undocumented) + inputFileSystem: any; + // (undocumented) + logging: Map; + // (undocumented) + missingDependencies: { + [Symbol.iterator](): Generator; + has(dep: string): boolean; + add: (dep: string) => void; + addAll: (deps: Iterable) => void; + }; + // (undocumented) + get modules(): Module[]; + // (undocumented) + name?: string; + get namedChunks(): Map>; + // (undocumented) + options: RspackOptionsNormalized; + // (undocumented) + outputOptions: OutputNormalized; + // (undocumented) + static PROCESS_ASSETS_STAGE_ADDITIONAL: number; + // (undocumented) + static PROCESS_ASSETS_STAGE_ADDITIONS: number; + // (undocumented) + static PROCESS_ASSETS_STAGE_ANALYSE: number; + // (undocumented) + static PROCESS_ASSETS_STAGE_DERIVED: number; + // (undocumented) + static PROCESS_ASSETS_STAGE_DEV_TOOLING: number; + // (undocumented) + static PROCESS_ASSETS_STAGE_NONE: number; + // (undocumented) + static PROCESS_ASSETS_STAGE_OPTIMIZE: number; + // (undocumented) + static PROCESS_ASSETS_STAGE_OPTIMIZE_COMPATIBILITY: number; + // (undocumented) + static PROCESS_ASSETS_STAGE_OPTIMIZE_COUNT: number; + // (undocumented) + static PROCESS_ASSETS_STAGE_OPTIMIZE_HASH: number; + // (undocumented) + static PROCESS_ASSETS_STAGE_OPTIMIZE_INLINE: number; + // (undocumented) + static PROCESS_ASSETS_STAGE_OPTIMIZE_SIZE: number; + // (undocumented) + static PROCESS_ASSETS_STAGE_OPTIMIZE_TRANSFER: number; + // (undocumented) + static PROCESS_ASSETS_STAGE_PRE_PROCESS: number; + // (undocumented) + static PROCESS_ASSETS_STAGE_REPORT: number; + // (undocumented) + static PROCESS_ASSETS_STAGE_SUMMARIZE: number; + // (undocumented) + pushDiagnostic(severity: "error" | "warning", title: string, message: string): void; + // (undocumented) + rebuildModule(m: Module, f: (err: Error, m: Module) => void): void; + // Warning: (ae-forgotten-export) The symbol "MergeCaller" needs to be exported by the entry point index.d.ts + // + // (undocumented) + _rebuildModuleCaller: MergeCaller<[string, (err: Error, m: Module) => void]>; + // (undocumented) + renameAsset(filename: string, newFilename: string): void; + // (undocumented) + resolverFactory: ResolverFactory; + // (undocumented) + seal(): void; + // (undocumented) + startTime?: number; + // (undocumented) + unseal(): void; + updateAsset(filename: string, newSourceOrFunction: Source | ((source: Source) => Source), assetInfoUpdateOrFunction?: AssetInfo | ((assetInfo: AssetInfo) => AssetInfo)): void; + // (undocumented) + get warnings(): { + push: (...warns: (Error | JsStatsError)[]) => void; + [Symbol.iterator](): { + next(): { + done: boolean; + value?: undefined; + } | { + value: JsStatsWarning[]; + done: boolean; + }; + }; + }; +} + +// @public (undocumented) +export interface CompilationParams { + // Warning: (ae-forgotten-export) The symbol "ContextModuleFactory" needs to be exported by the entry point index.d.ts + // + // (undocumented) + contextModuleFactory: ContextModuleFactory; + // (undocumented) + normalModuleFactory: NormalModuleFactory; +} + +// @public (undocumented) +export class Compiler { + constructor(context: string, options: RspackOptionsNormalized); + // (undocumented) + __internal__getModuleExecutionResult(id: number): any; + // @internal + __internal__rebuild(modifiedFiles?: ReadonlySet, removedFiles?: ReadonlySet, callback?: (error: Error | null) => void): void; + // (undocumented) + __internal__registerBuiltinPlugin(plugin: binding.BuiltinPlugin): void; + // (undocumented) + builtinPlugins: binding.BuiltinPlugin[]; + // (undocumented) + cache: Cache_2; + // (undocumented) + close(callback: (error?: Error | null) => void): void; + // (undocumented) + compilation?: Compilation; + // (undocumented) + compilationParams?: CompilationParams; + // (undocumented) + compile(callback: Callback_2): void; + // (undocumented) + compilerPath: string; + // (undocumented) + context: string; + // (undocumented) + contextTimestamps?: ReadonlyMap; + // (undocumented) + createChildCompiler(compilation: Compilation, compilerName: string, compilerIndex: number, outputOptions: OutputNormalized, plugins: RspackPluginInstance[]): Compiler; + // Warning: (ae-forgotten-export) The symbol "FileSystemInfoEntry_2" needs to be exported by the entry point index.d.ts + // + // (undocumented) + fileTimestamps?: ReadonlyMap; + // (undocumented) + getAsset(name: string): Buffer | null; + // (undocumented) + getCache(name: string): CacheFacade; + // (undocumented) + getInfrastructureLogger(name: string | Function): Logger; + // (undocumented) + hooks: { + done: tapable.AsyncSeriesHook; + afterDone: tapable.SyncHook; + thisCompilation: liteTapable.SyncHook<[Compilation, CompilationParams]>; + compilation: liteTapable.SyncHook<[Compilation, CompilationParams]>; + invalid: tapable.SyncHook<[string | null, number]>; + compile: tapable.SyncHook<[CompilationParams]>; + normalModuleFactory: tapable.SyncHook; + contextModuleFactory: tapable.SyncHook; + initialize: tapable.SyncHook<[]>; + shouldEmit: liteTapable.SyncBailHook<[Compilation], boolean>; + infrastructureLog: tapable.SyncBailHook<[string, string, any[]], true>; + beforeRun: tapable.AsyncSeriesHook<[Compiler]>; + run: tapable.AsyncSeriesHook<[Compiler]>; + emit: liteTapable.AsyncSeriesHook<[Compilation]>; + assetEmitted: liteTapable.AsyncSeriesHook<[string, AssetEmittedInfo]>; + afterEmit: liteTapable.AsyncSeriesHook<[Compilation]>; + failed: tapable.SyncHook<[Error]>; + shutdown: tapable.AsyncSeriesHook<[]>; + watchRun: tapable.AsyncSeriesHook<[Compiler]>; + watchClose: tapable.SyncHook<[]>; + environment: tapable.SyncHook<[]>; + afterEnvironment: tapable.SyncHook<[]>; + afterPlugins: tapable.SyncHook<[Compiler]>; + afterResolvers: tapable.SyncHook<[Compiler]>; + make: liteTapable.AsyncParallelHook<[Compilation]>; + beforeCompile: tapable.AsyncSeriesHook<[CompilationParams]>; + afterCompile: tapable.AsyncSeriesHook<[Compilation]>; + finishMake: liteTapable.AsyncSeriesHook<[Compilation]>; + entryOption: tapable.SyncBailHook<[string, EntryNormalized], any>; + }; + // (undocumented) + idle: boolean; + // (undocumented) + infrastructureLogger: any; + // (undocumented) + inputFileSystem: any; + // (undocumented) + intermediateFileSystem: any; + // (undocumented) + isChild(): boolean; + // (undocumented) + modifiedFiles?: ReadonlySet; + // (undocumented) + name?: string; + // (undocumented) + options: RspackOptionsNormalized; + // (undocumented) + outputFileSystem: fs; + // (undocumented) + outputPath: string; + // (undocumented) + parentCompilation?: Compilation; + // (undocumented) + purgeInputFileSystem(): void; + // (undocumented) + removedFiles?: ReadonlySet; + // (undocumented) + resolverFactory: ResolverFactory; + // (undocumented) + root: Compiler; + // Warning: (ae-forgotten-export) The symbol "RuleSetCompiler" needs to be exported by the entry point index.d.ts + // + // (undocumented) + ruleSet: RuleSetCompiler; + // (undocumented) + run(callback: Callback_2): void; + // (undocumented) + runAsChild(callback: any): void; + // (undocumented) + running: boolean; + // (undocumented) + watch(watchOptions: WatchOptions_2, handler: Callback_2): Watching; + // Warning: (ae-forgotten-export) The symbol "WatchFileSystem" needs to be exported by the entry point index.d.ts + // + // (undocumented) + watchFileSystem: WatchFileSystem; + // (undocumented) + watching?: Watching; + // (undocumented) + watchMode: boolean; + // (undocumented) + webpack: rspack_3 & exports_2 & { + rspack: rspack_3 & exports_2 & any; + webpack: rspack_3 & exports_2 & any; + }; +} + +// Warning: (ae-forgotten-export) The symbol "Config" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export const config: Config; + +// @public (undocumented) +export type Configuration = RspackOptions; + +// @public (undocumented) +export type Consumes = (ConsumesItem | ConsumesObject)[] | ConsumesObject; + +// @public (undocumented) +export type ConsumesConfig = { + eager?: boolean; + import?: false | ConsumesItem; + packageName?: string; + requiredVersion?: false | string; + shareKey?: string; + shareScope?: string; + singleton?: boolean; + strictVersion?: boolean; +}; + +// @public (undocumented) +export type ConsumeSharedPluginOptions = { + consumes: Consumes; + shareScope?: string; + enhanced?: boolean; +}; + +// @public (undocumented) +export type ConsumesItem = string; + +// @public (undocumented) +export type ConsumesObject = { + [k: string]: ConsumesConfig | ConsumesItem; +}; + +// @public (undocumented) +export const container: { + ContainerPlugin: typeof ContainerPlugin; + ContainerReferencePlugin: typeof ContainerReferencePlugin; + ModuleFederationPlugin: typeof ModuleFederationPlugin; + ModuleFederationPluginV1: typeof ModuleFederationPluginV1; +}; + +// @public (undocumented) +export type ContainerPluginOptions = { + exposes: Exposes; + filename?: FilenameTemplate; + library?: LibraryOptions; + name: string; + runtime?: EntryRuntime; + shareScope?: string; + enhanced?: boolean; +}; + +// @public (undocumented) +export type ContainerReferencePluginOptions = { + remoteType: ExternalsType; + remotes: Remotes; + shareScope?: string; + enhanced?: boolean; +}; + +// Warning: (ae-forgotten-export) The symbol "context" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Context = z.infer; + +// @public (undocumented) +export const CopyRspackPlugin: { + new (copy: CopyRspackPluginOptions): { + name: BuiltinPluginName; + _options: RawCopyRspackPluginOptions; + affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined; + raw(): BuiltinPlugin; + apply(compiler: Compiler_2): void; + }; +}; + +// @public (undocumented) +export type CopyRspackPluginOptions = { + patterns: (string | ({ + from: string; + } & Partial))[]; +}; + +// Warning: (ae-forgotten-export) The symbol "crossOriginLoading" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type CrossOriginLoading = z.infer; + +// Warning: (ae-forgotten-export) The symbol "cssAutoGeneratorOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type CssAutoGeneratorOptions = z.infer; + +// Warning: (ae-forgotten-export) The symbol "cssAutoParserOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type CssAutoParserOptions = z.infer; + +// Warning: (ae-forgotten-export) The symbol "cssChunkFilename" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type CssChunkFilename = z.infer; + +// @public (undocumented) +export class CssExtractRspackPlugin { + constructor(options?: PluginOptions); + // (undocumented) + apply(compiler: Compiler): void; + // (undocumented) + static loader: string; + // (undocumented) + normalizeOptions(options: PluginOptions): RawCssExtractPluginOption; + // Warning: (ae-forgotten-export) The symbol "PluginOptions" needs to be exported by the entry point index.d.ts + // + // (undocumented) + options: PluginOptions; + // (undocumented) + static pluginName: string; +} + +// Warning: (ae-forgotten-export) The symbol "cssFilename" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type CssFilename = z.infer; + +// Warning: (ae-forgotten-export) The symbol "cssGeneratorExportsConvention" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type CssGeneratorExportsConvention = z.infer; + +// Warning: (ae-forgotten-export) The symbol "cssGeneratorExportsOnly" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type CssGeneratorExportsOnly = z.infer; + +// Warning: (ae-forgotten-export) The symbol "cssGeneratorLocalIdentName" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type CssGeneratorLocalIdentName = z.infer; + +// Warning: (ae-forgotten-export) The symbol "cssGeneratorOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type CssGeneratorOptions = z.infer; + +// Warning: (ae-forgotten-export) The symbol "cssModuleGeneratorOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type CssModuleGeneratorOptions = z.infer; + +// Warning: (ae-forgotten-export) The symbol "cssModuleParserOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type CssModuleParserOptions = z.infer; + +// Warning: (ae-forgotten-export) The symbol "cssParserNamedExports" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type CssParserNamedExports = z.infer; + +// Warning: (ae-forgotten-export) The symbol "cssParserOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type CssParserOptions = z.infer; + +// @public (undocumented) +export const DefinePlugin: { + new (define: DefinePluginOptions): { + name: BuiltinPluginName; + _options: Record; + affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined; + raw(): BuiltinPlugin; + apply(compiler: Compiler_2): void; + }; +}; + +// @public (undocumented) +export type DefinePluginOptions = Record; + +// Warning: (ae-forgotten-export) The symbol "dependencies" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Dependencies = z.infer; + +// @public (undocumented) +export interface DevServer extends webpackDevServer.Configuration { +} + +// Warning: (ae-forgotten-export) The symbol "devTool" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type DevTool = z.infer; + +// Warning: (ae-forgotten-export) The symbol "devtoolFallbackModuleFilenameTemplate" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type DevtoolFallbackModuleFilenameTemplate = z.infer; + +// Warning: (ae-forgotten-export) The symbol "devtoolModuleFilenameTemplate" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type DevtoolModuleFilenameTemplate = z.infer; + +// Warning: (ae-forgotten-export) The symbol "devtoolNamespace" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type DevtoolNamespace = z.infer; + +// Warning: (ae-forgotten-export) The symbol "Electron" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export const electron: Electron; + +// Warning: (ae-forgotten-export) The symbol "enabledChunkLoadingTypes" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type EnabledChunkLoadingTypes = z.infer; + +// Warning: (ae-forgotten-export) The symbol "enabledLibraryTypes" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type EnabledLibraryTypes = z.infer; + +// Warning: (ae-forgotten-export) The symbol "enabledWasmLoadingTypes" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type EnabledWasmLoadingTypes = z.infer; + +// Warning: (ae-forgotten-export) The symbol "entry" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Entry = z.infer; + +// Warning: (ae-forgotten-export) The symbol "entryDependOn" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type EntryDependOn = z.infer; + +// Warning: (ae-forgotten-export) The symbol "entryDescription" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type EntryDescription = z.infer; + +// @public (undocumented) +export interface EntryDescriptionNormalized { + // (undocumented) + asyncChunks?: boolean; + // (undocumented) + baseUri?: string; + // (undocumented) + chunkLoading?: ChunkLoading; + // (undocumented) + dependOn?: string[]; + // (undocumented) + filename?: EntryFilename; + // (undocumented) + import?: string[]; + // (undocumented) + library?: LibraryOptions; + // (undocumented) + publicPath?: PublicPath; + // (undocumented) + runtime?: EntryRuntime; +} + +// Warning: (ae-forgotten-export) The symbol "entryFilename" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type EntryFilename = z.infer; + +// Warning: (ae-forgotten-export) The symbol "entryItem" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type EntryItem = z.infer; + +// @public (undocumented) +export type EntryNormalized = EntryStaticNormalized; + +// Warning: (ae-forgotten-export) The symbol "entryObject" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type EntryObject = z.infer; + +// @public (undocumented) +export class EntryOptionPlugin { + // (undocumented) + apply(compiler: Compiler): void; + // (undocumented) + static applyEntryOption(compiler: Compiler, context: string, entry: EntryNormalized): void; + // (undocumented) + static entryDescriptionToOptions(compiler: Compiler, name: string, desc: EntryDescriptionNormalized): EntryOptions; +} + +// @public (undocumented) +export type EntryOptions = { + name?: string; + runtime?: EntryRuntime; + chunkLoading?: ChunkLoading; + asyncChunks?: boolean; + publicPath?: PublicPath; + baseUri?: string; + filename?: FilenameTemplate; + library?: LibraryOptions; + dependOn?: string[]; +}; + +// @public (undocumented) +export const EntryPlugin: { + new (context: string, entry: string, options?: string | EntryOptions | undefined): { + name: BuiltinPluginName; + _options: RawEntryPluginOptions; + affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined; + raw(): BuiltinPlugin; + apply(compiler: Compiler_2): void; + }; +}; + +// Warning: (ae-forgotten-export) The symbol "entryRuntime" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type EntryRuntime = z.infer; + +// Warning: (ae-forgotten-export) The symbol "entryStatic" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type EntryStatic = z.infer; + +// @public (undocumented) +export interface EntryStaticNormalized { + // (undocumented) + [k: string]: EntryDescriptionNormalized; +} + +// Warning: (ae-forgotten-export) The symbol "entryUnnamed" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type EntryUnnamed = z.infer; + +// @public +export class EnvironmentPlugin { + constructor(...keys: any[]); + // Warning: (ae-forgotten-export) The symbol "Compiler_5" needs to be exported by the entry point index.d.ts + apply(compiler: Compiler_5): void; + // (undocumented) + defaultValues: any; + // (undocumented) + keys: any[]; +} + +// @public (undocumented) +export const EvalDevToolModulePlugin: { + new (options: EvalDevToolModulePluginOptions): { + name: BuiltinPluginName; + _options: EvalDevToolModulePluginOptions; + affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined; + raw(): BuiltinPlugin; + apply(compiler: Compiler_2): void; + }; +}; + +export { EvalDevToolModulePluginOptions } + +// @public (undocumented) +export const EvalSourceMapDevToolPlugin: { + new (options: SourceMapDevToolPluginOptions): { + name: BuiltinPluginName; + _options: RawSourceMapDevToolPluginOptions; + affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined; + raw(): BuiltinPlugin; + apply(compiler: Compiler_2): void; + }; +}; + +export { experimental_cleanupGlobalTrace } + +export { experimental_registerGlobalTrace } + +// Warning: (ae-forgotten-export) The symbol "experiments" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Experiments = z.infer; + +// @public (undocumented) +export interface ExperimentsNormalized { + // (undocumented) + asyncWebAssembly?: boolean; + // (undocumented) + css?: boolean; + // (undocumented) + futureDefaults?: boolean; + // (undocumented) + lazyCompilation?: boolean; + // (undocumented) + newSplitChunks?: boolean; + // (undocumented) + outputModule?: boolean; + // (undocumented) + rspackFuture?: RspackFutureOptions; + // (undocumented) + topLevelAwait?: boolean; +} + +// @public (undocumented) +export type Exposes = (ExposesItem | ExposesObject)[] | ExposesObject; + +// @public (undocumented) +export type ExposesConfig = { + import: ExposesItem | ExposesItems; + name?: string; +}; + +// @public (undocumented) +export type ExposesItem = string; + +// @public (undocumented) +export type ExposesItems = ExposesItem[]; + +// @public (undocumented) +export type ExposesObject = { + [k: string]: ExposesConfig | ExposesItem | ExposesItems; +}; + +// Warning: (ae-forgotten-export) The symbol "externalItem" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ExternalItem = z.infer; + +// Warning: (ae-forgotten-export) The symbol "externalItemFunctionData" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ExternalItemFunctionData = z.infer; + +// Warning: (ae-forgotten-export) The symbol "externalItemObjectUnknown" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ExternalItemObjectUnknown = z.infer; + +// Warning: (ae-forgotten-export) The symbol "externalItemValue" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ExternalItemValue = z.infer; + +// Warning: (ae-forgotten-export) The symbol "externals" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Externals = z.infer; + +// @public (undocumented) +export const ExternalsPlugin: { + new (type: string, externals: string | RegExp | Record> | ((args_0: { + context?: string | undefined; + dependencyType?: string | undefined; + request?: string | undefined; + }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record | undefined, args_2: "promise" | "jsonp" | "import" | "amd" | "commonjs" | "commonjs2" | "var" | "module" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: { + context?: string | undefined; + dependencyType?: string | undefined; + request?: string | undefined; + }, ...args_1: unknown[]) => Promise>) | (string | RegExp | Record> | ((args_0: { + context?: string | undefined; + dependencyType?: string | undefined; + request?: string | undefined; + }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record | undefined, args_2: "promise" | "jsonp" | "import" | "amd" | "commonjs" | "commonjs2" | "var" | "module" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: { + context?: string | undefined; + dependencyType?: string | undefined; + request?: string | undefined; + }, ...args_1: unknown[]) => Promise>))[]): { + name: BuiltinPluginName; + _options: RawExternalsPluginOptions; + affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined; + raw(): BuiltinPlugin; + apply(compiler: Compiler_2): void; + }; +}; + +// Warning: (ae-forgotten-export) The symbol "externalsPresets" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ExternalsPresets = z.infer; + +// @public (undocumented) +export type ExternalsType = z.infer; + +// @public (undocumented) +export const externalsType: z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "script", "node-commonjs"]>; + +// Warning: (ae-forgotten-export) The symbol "falsy" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Falsy = z.infer; + +// Warning: (ae-forgotten-export) The symbol "filename" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Filename = z.infer; + +// Warning: (ae-forgotten-export) The symbol "filenameTemplate" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type FilenameTemplate = z.infer; + +// Warning: (ae-forgotten-export) The symbol "filterItemTypes" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type FilterItemTypes = z.infer; + +// Warning: (ae-forgotten-export) The symbol "filterTypes" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type FilterTypes = z.infer; + +// Warning: (ae-forgotten-export) The symbol "generatorOptionsByModuleType" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type GeneratorOptionsByModuleType = z.infer; + +// Warning: (ae-forgotten-export) The symbol "generatorOptionsByModuleTypeKnown" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type GeneratorOptionsByModuleTypeKnown = z.infer; + +// Warning: (ae-forgotten-export) The symbol "generatorOptionsByModuleTypeUnknown" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type GeneratorOptionsByModuleTypeUnknown = z.infer; + +// @public (undocumented) +export const getNormalizedRspackOptions: (config: RspackOptions) => RspackOptionsNormalized; + +// @public (undocumented) +export function getRawChunkLoading(chunkLoading: ChunkLoading): string; + +// @public (undocumented) +export function getRawEntryRuntime(runtime: EntryRuntime): string | undefined; + +// @public (undocumented) +export function getRawLibrary(library: LibraryOptions): RawLibraryOptions; + +// @public (undocumented) +export const getRawOptions: (options: RspackOptionsNormalized, compiler: Compiler) => RawOptions; + +// Warning: (ae-forgotten-export) The symbol "globalObject" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type GlobalObject = z.infer; + +// Warning: (ae-forgotten-export) The symbol "hashDigest" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type HashDigest = z.infer; + +// Warning: (ae-forgotten-export) The symbol "hashDigestLength" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type HashDigestLength = z.infer; + +// Warning: (ae-forgotten-export) The symbol "hashFunction" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type HashFunction = z.infer; + +// Warning: (ae-forgotten-export) The symbol "hashSalt" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type HashSalt = z.infer; + +// Warning: (ae-forgotten-export) The symbol "RspackBuiltinPlugin" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export class HotModuleReplacementPlugin extends RspackBuiltinPlugin { + // (undocumented) + name: BuiltinPluginName; + // (undocumented) + raw(compiler: Compiler): BuiltinPlugin; +} + +// Warning: (ae-forgotten-export) The symbol "hotUpdateChunkFilename" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type HotUpdateChunkFilename = z.infer; + +// Warning: (ae-forgotten-export) The symbol "hotUpdateGlobal" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type HotUpdateGlobal = z.infer; + +// Warning: (ae-forgotten-export) The symbol "hotUpdateMainFilename" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type HotUpdateMainFilename = z.infer; + +// @public (undocumented) +export const HtmlRspackPlugin: { + new (c?: { + filename?: string | undefined; + template?: string | undefined; + templateContent?: string | undefined; + templateParameters?: Record | undefined; + inject?: boolean | "head" | "body" | undefined; + publicPath?: string | undefined; + scriptLoading?: "module" | "blocking" | "defer" | undefined; + chunks?: string[] | undefined; + excludedChunks?: string[] | undefined; + sri?: "sha256" | "sha384" | "sha512" | undefined; + minify?: boolean | undefined; + title?: string | undefined; + favicon?: string | undefined; + meta?: Record> | undefined; + } | undefined): { + name: BuiltinPluginName; + _options: RawHtmlRspackPluginOptions; + affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined; + raw(): BuiltinPlugin; + apply(compiler: Compiler_2): void; + }; +}; + +// Warning: (ae-forgotten-export) The symbol "htmlRspackPluginOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type HtmlRspackPluginOptions = z.infer; + +// @public (undocumented) +export const IgnorePlugin: { + new (options: RawIgnorePluginOptions): { + name: BuiltinPluginName; + _options: RawIgnorePluginOptions; + affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined; + raw(): BuiltinPlugin; + apply(compiler: Compiler_2): void; + }; +}; + +// @public (undocumented) +export type IgnorePluginOptions = RawIgnorePluginOptions; + +// Warning: (ae-forgotten-export) The symbol "ignoreWarnings" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type IgnoreWarnings = z.infer; + +// @public (undocumented) +export type IgnoreWarningsNormalized = ((warning: Error, compilation: Compilation) => boolean)[]; + +// Warning: (ae-forgotten-export) The symbol "iife" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Iife = z.infer; + +// Warning: (ae-forgotten-export) The symbol "importFunctionName" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ImportFunctionName = z.infer; + +// Warning: (ae-forgotten-export) The symbol "infrastructureLogging" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type InfrastructureLogging = z.infer; + +// Warning: (ae-forgotten-export) The symbol "JavaScript" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export const javascript: JavaScript; + +// Warning: (ae-forgotten-export) The symbol "javascriptParserOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type JavascriptParserOptions = z.infer; + +// Warning: (ae-forgotten-export) The symbol "library_2" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Library = z.infer; + +// Warning: (ae-forgotten-export) The symbol "Library_2" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export const library: Library_2; + +// Warning: (ae-forgotten-export) The symbol "libraryCustomUmdCommentObject" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type LibraryCustomUmdCommentObject = z.infer; + +// Warning: (ae-forgotten-export) The symbol "libraryCustomUmdObject" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type LibraryCustomUmdObject = z.infer; + +// Warning: (ae-forgotten-export) The symbol "libraryExport" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type LibraryExport = z.infer; + +// Warning: (ae-forgotten-export) The symbol "libraryName" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type LibraryName = z.infer; + +// Warning: (ae-forgotten-export) The symbol "libraryOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type LibraryOptions = z.infer; + +// Warning: (ae-forgotten-export) The symbol "libraryType" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type LibraryType = z.infer; + +// @public (undocumented) +export interface LoaderContext { + // @internal + __internal__context: JsLoaderContext; + // @internal + __internal__pushNativeDiagnostics: (diagnostics: any) => void; + // (undocumented) + addBuildDependency(file: string): void; + // (undocumented) + addContextDependency(context: string): void; + // (undocumented) + addDependency(file: string): void; + // (undocumented) + addMissingDependency(missing: string): void; + // Warning: (ae-forgotten-export) The symbol "SourceMap" needs to be exported by the entry point index.d.ts + // Warning: (ae-forgotten-export) The symbol "AdditionalData" needs to be exported by the entry point index.d.ts + // + // (undocumented) + async(): (err?: Error | null, content?: string | Buffer, sourceMap?: string | SourceMap, additionalData?: AdditionalData) => void; + // (undocumented) + cacheable(cacheable?: boolean): void; + // (undocumented) + callback(err?: Error | null, content?: string | Buffer, sourceMap?: string | SourceMap, additionalData?: AdditionalData): void; + // (undocumented) + clearDependencies(): void; + // (undocumented) + _compilation: Compiler["compilation"]; + // (undocumented) + _compiler: Compiler; + // (undocumented) + context: string | null; + // (undocumented) + currentRequest: string; + // (undocumented) + data: unknown; + // (undocumented) + dependency(file: string): void; + // (undocumented) + emitError(error: Error): void; + // (undocumented) + emitFile(name: string, content: string | Buffer, sourceMap?: string, assetInfo?: JsAssetInfo): void; + // (undocumented) + emitWarning(warning: Error): void; + // (undocumented) + fs: any; + // (undocumented) + getContextDependencies(): string[]; + // (undocumented) + getDependencies(): string[]; + // (undocumented) + getLogger(name: string): Logger; + // (undocumented) + getMissingDependencies(): string[]; + // (undocumented) + getOptions(schema?: any): OptionsType; + // (undocumented) + getResolve(options: Resolve): (context: any, request: any, callback: any) => Promise; + // (undocumented) + hot?: boolean; + // (undocumented) + importModule(request: string, options: { + publicPath?: string; + baseUri?: string; + }, callback: (err?: Error, res?: any) => void): void; + // (undocumented) + loaderIndex: number; + // Warning: (ae-forgotten-export) The symbol "LoaderObject" needs to be exported by the entry point index.d.ts + loaders: LoaderObject[]; + // (undocumented) + mode?: Mode; + // (undocumented) + previousRequest: string; + // (undocumented) + query: string | OptionsType; + // (undocumented) + remainingRequest: string; + // (undocumented) + request: string; + // (undocumented) + resolve(context: string, request: string, callback: (arg0: null | Error, arg1?: string | false, arg2?: ResolveRequest) => void): void; + // (undocumented) + resource: string; + // (undocumented) + resourceFragment: string; + // (undocumented) + resourcePath: string; + // (undocumented) + resourceQuery: string; + // (undocumented) + rootContext: string; + // (undocumented) + sourceMap: boolean; + // (undocumented) + utils: { + absolutify: (context: string, request: string) => string; + contextify: (context: string, request: string) => string; + createHash: (algorithm?: string) => Hash; + }; + // (undocumented) + version: 2; +} + +// @public (undocumented) +export type LoaderDefinition = LoaderDefinitionFunction & { + raw?: false; + pitch?: PitchLoaderDefinitionFunction; +}; + +// @public (undocumented) +export interface LoaderDefinitionFunction { + // (undocumented) + (this: LoaderContext & ContextAdditions, content: string, sourceMap?: string | SourceMap, additionalData?: AdditionalData): string | void | Buffer | Promise; +} + +// @public +export class LoaderOptionsPlugin { + // Warning: (ae-forgotten-export) The symbol "LoaderOptionsPluginOptions" needs to be exported by the entry point index.d.ts + constructor(options?: LoaderOptionsPluginOptions); + // Warning: (ae-forgotten-export) The symbol "Compiler_3" needs to be exported by the entry point index.d.ts + apply(compiler: Compiler_3): void; + // (undocumented) + options: any; +} + +// @public +export class LoaderTargetPlugin { + constructor(target: string); + // Warning: (ae-forgotten-export) The symbol "Compiler_4" needs to be exported by the entry point index.d.ts + apply(compiler: Compiler_4): void; + // (undocumented) + target: string; +} + +// @public (undocumented) +export interface LogEntry { + // (undocumented) + args: any[]; + // (undocumented) + time?: number; + // (undocumented) + trace?: string[]; + // (undocumented) + type: string; +} + +// Warning: (ae-forgotten-export) The symbol "mode" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Mode = z.infer; + +// @public (undocumented) +export interface ModuleFederationPluginOptions extends Omit { + // (undocumented) + implementation?: string; + // Warning: (ae-forgotten-export) The symbol "RuntimePlugins" needs to be exported by the entry point index.d.ts + // + // (undocumented) + runtimePlugins?: RuntimePlugins; +} + +// @public (undocumented) +export interface ModuleFederationPluginV1Options { + // (undocumented) + enhanced?: boolean; + // (undocumented) + exposes?: Exposes; + // (undocumented) + filename?: string; + // (undocumented) + library?: LibraryOptions; + // (undocumented) + name: string; + // (undocumented) + remotes?: Remotes; + // (undocumented) + remoteType?: ExternalsType; + // (undocumented) + runtime?: EntryRuntime; + // (undocumented) + shared?: Shared; + // (undocumented) + shareScope?: string; +} + +// @public (undocumented) +export const ModuleFilenameHelpers: any; + +// Warning: (ae-forgotten-export) The symbol "moduleOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ModuleOptions = z.infer; + +// @public (undocumented) +export interface ModuleOptionsNormalized { + // (undocumented) + defaultRules?: RuleSetRules; + // (undocumented) + generator: GeneratorOptionsByModuleType; + // (undocumented) + noParse?: NoParseOption; + // (undocumented) + parser: ParserOptionsByModuleType; + // (undocumented) + rules: RuleSetRules; +} + +// @public (undocumented) +export class MultiCompiler { + constructor(compilers: Compiler[] | Record, options?: MultiCompilerOptions); + // (undocumented) + close(callback: Callback_2): void; + // (undocumented) + compilers: Compiler[]; + // (undocumented) + context: string; + // (undocumented) + dependencies: WeakMap; + // (undocumented) + getInfrastructureLogger(name: string): Logger_2; + // (undocumented) + hooks: { + done: SyncHook_2; + invalid: MultiHook>; + run: MultiHook>; + watchClose: SyncHook_2; + watchRun: MultiHook; + infrastructureLog: MultiHook; + }; + // (undocumented) + infrastructureLogger: Any; + // (undocumented) + get inputFileSystem(): void; + set inputFileSystem(value: void); + // (undocumented) + get intermediateFileSystem(): any; + set intermediateFileSystem(value: any); + // (undocumented) + name: string; + // (undocumented) + get options(): RspackOptionsNormalized_2[] & { + parallelism?: number | undefined; + }; + // (undocumented) + _options: { + parallelism?: number; + }; + // (undocumented) + get outputFileSystem(): fs; + set outputFileSystem(value: fs); + // (undocumented) + get outputPath(): string; + // (undocumented) + purgeInputFileSystem(): void; + // (undocumented) + resolverFactory: ResolverFactory; + // (undocumented) + root: Compiler; + // (undocumented) + run(callback: Callback_2): void; + // (undocumented) + running: boolean; + // (undocumented) + setDependencies(compiler: Compiler, dependencies: string[]): void; + // (undocumented) + validateDependencies(callback: Callback_2): boolean; + // Warning: (ae-forgotten-export) The symbol "MultiWatching" needs to be exported by the entry point index.d.ts + // + // (undocumented) + watch(watchOptions: WatchOptions, handler: Callback_2): MultiWatching; + // (undocumented) + get watchFileSystem(): WatchFileSystem; + set watchFileSystem(value: WatchFileSystem); + // (undocumented) + watching: Watching; + // (undocumented) + watchMode: boolean; +} + +// @public (undocumented) +export interface MultiCompilerOptions { + parallelism?: number; +} + +// @public (undocumented) +export type MultiRspackOptions = ReadonlyArray & MultiCompilerOptions; + +// @public (undocumented) +export class MultiStats { + constructor(stats: Stats[]); + // (undocumented) + hasErrors(): boolean; + // (undocumented) + get hash(): string; + // (undocumented) + hasWarnings(): boolean; + // (undocumented) + stats: Stats[]; + // (undocumented) + toJson(options?: any): StatsCompilation; + // (undocumented) + toString(options: any): string; +} + +// Warning: (ae-forgotten-export) The symbol "name_2" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Name = z.infer; + +// Warning: (ae-forgotten-export) The symbol "Node_3" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export const node: Node_3; + +// Warning: (ae-forgotten-export) The symbol "node_2" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +type Node_2 = z.infer; +export { Node_2 as Node } + +// Warning: (ae-forgotten-export) The symbol "nodeOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type NodeOptions = z.infer; + +// Warning: (ae-forgotten-export) The symbol "noParseOption" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type NoParseOption = z.infer; + +// @public (undocumented) +export class NormalModule { + constructor(); + // (undocumented) + static getCompilationHooks(compilation: Compilation): { + loader: SyncHook_2<[LoaderContext<{}>], void, UnsetAdditionalOptions_2>; + readResourceForScheme: any; + readResource: HookMap_2], string | Buffer, UnsetAdditionalOptions_2>>; + }; +} + +// @public (undocumented) +export class NormalModuleFactory { + constructor(); + // (undocumented) + hooks: { + resolveForScheme: liteTapable.HookMap>; + beforeResolve: liteTapable.AsyncSeriesBailHook<[ResolveData], false | void>; + afterResolve: liteTapable.AsyncSeriesBailHook<[ResolveData], false | void>; + createModule: liteTapable.AsyncSeriesBailHook<[ + NormalModuleCreateData, + {} + ], void>; + }; +} + +// @public (undocumented) +export class NormalModuleReplacementPlugin { + constructor(resourceRegExp: RegExp, newResource: string | ModuleReplacer); + // (undocumented) + apply(compiler: Compiler): void; + // Warning: (ae-forgotten-export) The symbol "ModuleReplacer" needs to be exported by the entry point index.d.ts + // + // (undocumented) + readonly newResource: string | ModuleReplacer; + // (undocumented) + readonly resourceRegExp: RegExp; +} + +// Warning: (ae-forgotten-export) The symbol "optimization" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Optimization = z.infer; + +// Warning: (ae-forgotten-export) The symbol "optimizationRuntimeChunk" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type OptimizationRuntimeChunk = z.infer; + +// @public (undocumented) +export type OptimizationRuntimeChunkNormalized = false | { + name: (...args: any[]) => string | undefined; +}; + +// Warning: (ae-forgotten-export) The symbol "optimizationSplitChunksCacheGroup" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type OptimizationSplitChunksCacheGroup = z.infer; + +// Warning: (ae-forgotten-export) The symbol "optimizationSplitChunksNameFunction" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type OptimizationSplitChunksNameFunction = z.infer; + +// Warning: (ae-forgotten-export) The symbol "optimizationSplitChunksOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type OptimizationSplitChunksOptions = z.infer; + +// Warning: (ae-forgotten-export) The symbol "Optimize" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export const optimize: Optimize; + +// Warning: (ae-forgotten-export) The symbol "output" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Output = z.infer; + +// Warning: (ae-forgotten-export) The symbol "outputModule" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type OutputModule = z.infer; + +// @public (undocumented) +export interface OutputNormalized { + // (undocumented) + assetModuleFilename?: AssetModuleFilename; + // (undocumented) + asyncChunks?: boolean; + // (undocumented) + chunkFilename?: ChunkFilename; + // (undocumented) + chunkFormat?: string | false; + // (undocumented) + chunkLoading?: string | false; + // (undocumented) + chunkLoadingGlobal?: ChunkLoadingGlobal; + // (undocumented) + clean?: Clean; + // (undocumented) + crossOriginLoading?: CrossOriginLoading; + // (undocumented) + cssChunkFilename?: CssChunkFilename; + // (undocumented) + cssFilename?: CssFilename; + // (undocumented) + devtoolFallbackModuleFilenameTemplate?: DevtoolFallbackModuleFilenameTemplate; + // (undocumented) + devtoolModuleFilenameTemplate?: DevtoolModuleFilenameTemplate; + // (undocumented) + devtoolNamespace?: DevtoolNamespace; + // (undocumented) + enabledChunkLoadingTypes?: string[]; + // (undocumented) + enabledLibraryTypes?: EnabledLibraryTypes; + // (undocumented) + enabledWasmLoadingTypes?: EnabledWasmLoadingTypes; + // (undocumented) + filename?: Filename; + // (undocumented) + globalObject?: GlobalObject; + // (undocumented) + hashDigest?: HashDigest; + // (undocumented) + hashDigestLength?: HashDigestLength; + // (undocumented) + hashFunction?: HashFunction; + // (undocumented) + hashSalt?: HashSalt; + // (undocumented) + hotUpdateChunkFilename?: HotUpdateChunkFilename; + // (undocumented) + hotUpdateGlobal?: HotUpdateGlobal; + // (undocumented) + hotUpdateMainFilename?: HotUpdateMainFilename; + // (undocumented) + iife?: Iife; + // (undocumented) + importFunctionName?: ImportFunctionName; + // (undocumented) + library?: LibraryOptions; + // (undocumented) + module?: OutputModule; + // (undocumented) + path?: Path; + // (undocumented) + publicPath?: PublicPath; + // (undocumented) + scriptType?: ScriptType; + // (undocumented) + sourceMapFilename?: SourceMapFilename; + // (undocumented) + strictModuleErrorHandling?: StrictModuleErrorHandling; + // (undocumented) + trustedTypes?: TrustedTypes; + // (undocumented) + uniqueName?: UniqueName; + // (undocumented) + wasmLoading?: WasmLoading; + // (undocumented) + webassemblyModuleFilename?: WebassemblyModuleFilename; + // (undocumented) + workerChunkLoading?: ChunkLoading; + // (undocumented) + workerPublicPath?: WorkerPublicPath; + // (undocumented) + workerWasmLoading?: WasmLoading; +} + +// Warning: (ae-forgotten-export) The symbol "parserOptionsByModuleType" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ParserOptionsByModuleType = z.infer; + +// Warning: (ae-forgotten-export) The symbol "parserOptionsByModuleTypeKnown" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ParserOptionsByModuleTypeKnown = z.infer; + +// Warning: (ae-forgotten-export) The symbol "parserOptionsByModuleTypeUnknown" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ParserOptionsByModuleTypeUnknown = z.infer; + +// Warning: (ae-forgotten-export) The symbol "path" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Path = z.infer; + +// Warning: (ae-forgotten-export) The symbol "plugins" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Plugins = z.infer; + +// Warning: (ae-forgotten-export) The symbol "profile" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Profile = z.infer; + +// @public (undocumented) +export const ProgressPlugin: { + new (progress?: ProgressPluginArgument): { + name: BuiltinPluginName; + _options: RawProgressPluginOptions; + affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined; + raw(): BuiltinPlugin; + apply(compiler: Compiler_2): void; + }; +}; + +// @public (undocumented) +export type ProgressPluginArgument = Partial | undefined; + +// @public (undocumented) +export const ProvidePlugin: { + new (provide: ProvidePluginOptions): { + name: BuiltinPluginName; + _options: Record; + affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined; + raw(): BuiltinPlugin; + apply(compiler: Compiler_2): void; + }; +}; + +// @public (undocumented) +export type ProvidePluginOptions = Record; + +// @public (undocumented) +export type Provides = (ProvidesItem | ProvidesObject)[] | ProvidesObject; + +// @public (undocumented) +export type ProvidesConfig = { + eager?: boolean; + shareKey: string; + shareScope?: string; + version?: false | string; +}; + +// @public (undocumented) +export type ProvideSharedPluginOptions = { + provides: Provides; + shareScope?: string; + enhanced?: boolean; +}; + +// @public (undocumented) +export type ProvidesItem = string; + +// @public (undocumented) +export type ProvidesObject = { + [k: string]: ProvidesConfig | ProvidesItem; +}; + +// Warning: (ae-forgotten-export) The symbol "publicPath" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type PublicPath = z.infer; + +// Warning: (ae-forgotten-export) The symbol "rawPublicPath" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type RawPublicPath = z.infer; + +// @public (undocumented) +export type Remotes = (RemotesItem | RemotesObject)[] | RemotesObject; + +// @public (undocumented) +export type RemotesConfig = { + external: RemotesItem | RemotesItems; + shareScope?: string; +}; + +// @public (undocumented) +export type RemotesItem = string; + +// @public (undocumented) +export type RemotesItems = RemotesItem[]; + +// @public (undocumented) +export type RemotesObject = { + [k: string]: RemotesConfig | RemotesItem | RemotesItems; +}; + +// Warning: (ae-forgotten-export) The symbol "resolve" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Resolve = z.infer; + +// Warning: (ae-forgotten-export) The symbol "resolveAlias" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ResolveAlias = z.infer; + +// Warning: (ae-forgotten-export) The symbol "baseResolveOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ResolveOptions = z.infer & { + byDependency?: Record; +}; + +// Warning: (ae-forgotten-export) The symbol "resolveTsconfig" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ResolveTsconfig = z.infer; + +// Warning: (ae-forgotten-export) The symbol "Rspack" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export const rspack: Rspack; + +// Warning: (ae-forgotten-export) The symbol "rspackFutureOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type RspackFutureOptions = z.infer; + +// @public (undocumented) +export type RspackOptions = z.infer; + +// @public (undocumented) +export const rspackOptions: z.ZodObject<{ + name: z.ZodOptional; + dependencies: z.ZodOptional>; + entry: z.ZodOptional]>, z.ZodObject<{ + import: z.ZodUnion<[z.ZodString, z.ZodArray]>; + runtime: z.ZodOptional, z.ZodString]>>; + publicPath: z.ZodOptional, z.ZodString]>>; + baseUri: z.ZodOptional; + chunkLoading: z.ZodOptional, z.ZodUnion<[z.ZodEnum<["jsonp", "import-scripts", "require", "async-node", "import"]>, z.ZodString]>]>>; + asyncChunks: z.ZodOptional; + wasmLoading: z.ZodOptional, z.ZodUnion<[z.ZodEnum<["fetch-streaming", "fetch", "async-node"]>, z.ZodString]>]>>; + filename: z.ZodOptional; + library: z.ZodOptional; + auxiliaryComment: z.ZodOptional; + commonjs: z.ZodOptional; + commonjs2: z.ZodOptional; + root: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + }, { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + }>]>>; + export: z.ZodOptional]>>; + name: z.ZodOptional]>, z.ZodObject<{ + amd: z.ZodOptional; + commonjs: z.ZodOptional; + root: z.ZodOptional]>>; + }, "strict", z.ZodTypeAny, { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + }, { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + }>]>>; + type: z.ZodUnion<[z.ZodEnum<["var", "module", "assign", "assign-properties", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system"]>, z.ZodString]>; + umdNamedDefine: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + type: string; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + } | undefined; + export?: string | string[] | undefined; + name?: string | string[] | { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + } | undefined; + umdNamedDefine?: boolean | undefined; + }, { + type: string; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + } | undefined; + export?: string | string[] | undefined; + name?: string | string[] | { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + } | undefined; + umdNamedDefine?: boolean | undefined; + }>>; + dependOn: z.ZodOptional]>>; + }, "strict", z.ZodTypeAny, { + import: (string | string[]) & (string | string[] | undefined); + runtime?: string | false | undefined; + publicPath?: string | undefined; + baseUri?: string | undefined; + chunkLoading?: string | false | undefined; + asyncChunks?: boolean | undefined; + wasmLoading?: string | false | undefined; + filename?: string | undefined; + library?: { + type: string; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + } | undefined; + export?: string | string[] | undefined; + name?: string | string[] | { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + } | undefined; + umdNamedDefine?: boolean | undefined; + } | undefined; + dependOn?: string | string[] | undefined; + }, { + import: (string | string[]) & (string | string[] | undefined); + runtime?: string | false | undefined; + publicPath?: string | undefined; + baseUri?: string | undefined; + chunkLoading?: string | false | undefined; + asyncChunks?: boolean | undefined; + wasmLoading?: string | false | undefined; + filename?: string | undefined; + library?: { + type: string; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + } | undefined; + export?: string | string[] | undefined; + name?: string | string[] | { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + } | undefined; + umdNamedDefine?: boolean | undefined; + } | undefined; + dependOn?: string | string[] | undefined; + }>]>>, z.ZodUnion<[z.ZodString, z.ZodArray]>]>, z.ZodFunction, z.ZodUnion<[z.ZodRecord]>, z.ZodObject<{ + import: z.ZodUnion<[z.ZodString, z.ZodArray]>; + runtime: z.ZodOptional, z.ZodString]>>; + publicPath: z.ZodOptional, z.ZodString]>>; + baseUri: z.ZodOptional; + chunkLoading: z.ZodOptional, z.ZodUnion<[z.ZodEnum<["jsonp", "import-scripts", "require", "async-node", "import"]>, z.ZodString]>]>>; + asyncChunks: z.ZodOptional; + wasmLoading: z.ZodOptional, z.ZodUnion<[z.ZodEnum<["fetch-streaming", "fetch", "async-node"]>, z.ZodString]>]>>; + filename: z.ZodOptional; + library: z.ZodOptional; + auxiliaryComment: z.ZodOptional; + commonjs: z.ZodOptional; + commonjs2: z.ZodOptional; + root: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + }, { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + }>]>>; + export: z.ZodOptional]>>; + name: z.ZodOptional]>, z.ZodObject<{ + amd: z.ZodOptional; + commonjs: z.ZodOptional; + root: z.ZodOptional]>>; + }, "strict", z.ZodTypeAny, { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + }, { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + }>]>>; + type: z.ZodUnion<[z.ZodEnum<["var", "module", "assign", "assign-properties", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system"]>, z.ZodString]>; + umdNamedDefine: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + type: string; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + } | undefined; + export?: string | string[] | undefined; + name?: string | string[] | { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + } | undefined; + umdNamedDefine?: boolean | undefined; + }, { + type: string; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + } | undefined; + export?: string | string[] | undefined; + name?: string | string[] | { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + } | undefined; + umdNamedDefine?: boolean | undefined; + }>>; + dependOn: z.ZodOptional]>>; + }, "strict", z.ZodTypeAny, { + import: (string | string[]) & (string | string[] | undefined); + runtime?: string | false | undefined; + publicPath?: string | undefined; + baseUri?: string | undefined; + chunkLoading?: string | false | undefined; + asyncChunks?: boolean | undefined; + wasmLoading?: string | false | undefined; + filename?: string | undefined; + library?: { + type: string; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + } | undefined; + export?: string | string[] | undefined; + name?: string | string[] | { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + } | undefined; + umdNamedDefine?: boolean | undefined; + } | undefined; + dependOn?: string | string[] | undefined; + }, { + import: (string | string[]) & (string | string[] | undefined); + runtime?: string | false | undefined; + publicPath?: string | undefined; + baseUri?: string | undefined; + chunkLoading?: string | false | undefined; + asyncChunks?: boolean | undefined; + wasmLoading?: string | false | undefined; + filename?: string | undefined; + library?: { + type: string; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + } | undefined; + export?: string | string[] | undefined; + name?: string | string[] | { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + } | undefined; + umdNamedDefine?: boolean | undefined; + } | undefined; + dependOn?: string | string[] | undefined; + }>]>>, z.ZodUnion<[z.ZodString, z.ZodArray]>]>>]>>; + output: z.ZodOptional; + clean: z.ZodOptional; + publicPath: z.ZodOptional, z.ZodString]>>; + filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + chunkFilename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + crossOriginLoading: z.ZodOptional, z.ZodEnum<["anonymous", "use-credentials"]>]>>; + cssFilename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + cssChunkFilename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + hotUpdateMainFilename: z.ZodOptional; + hotUpdateChunkFilename: z.ZodOptional; + hotUpdateGlobal: z.ZodOptional; + assetModuleFilename: z.ZodOptional; + uniqueName: z.ZodOptional; + chunkLoadingGlobal: z.ZodOptional; + enabledLibraryTypes: z.ZodOptional, z.ZodString]>, "many">>; + library: z.ZodOptional]>, z.ZodObject<{ + amd: z.ZodOptional; + commonjs: z.ZodOptional; + root: z.ZodOptional]>>; + }, "strict", z.ZodTypeAny, { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + }, { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + }>]>, z.ZodObject<{ + amdContainer: z.ZodOptional; + auxiliaryComment: z.ZodOptional; + commonjs: z.ZodOptional; + commonjs2: z.ZodOptional; + root: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + }, { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + }>]>>; + export: z.ZodOptional]>>; + name: z.ZodOptional]>, z.ZodObject<{ + amd: z.ZodOptional; + commonjs: z.ZodOptional; + root: z.ZodOptional]>>; + }, "strict", z.ZodTypeAny, { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + }, { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + }>]>>; + type: z.ZodUnion<[z.ZodEnum<["var", "module", "assign", "assign-properties", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system"]>, z.ZodString]>; + umdNamedDefine: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + type: string; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + } | undefined; + export?: string | string[] | undefined; + name?: string | string[] | { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + } | undefined; + umdNamedDefine?: boolean | undefined; + }, { + type: string; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + } | undefined; + export?: string | string[] | undefined; + name?: string | string[] | { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + } | undefined; + umdNamedDefine?: boolean | undefined; + }>]>>>; + libraryExport: z.ZodOptional]>>; + libraryTarget: z.ZodOptional, z.ZodString]>>; + umdNamedDefine: z.ZodOptional; + amdContainer: z.ZodOptional; + auxiliaryComment: z.ZodOptional; + commonjs: z.ZodOptional; + commonjs2: z.ZodOptional; + root: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + }, { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + }>]>>; + module: z.ZodOptional; + strictModuleExceptionHandling: z.ZodOptional; + strictModuleErrorHandling: z.ZodOptional; + globalObject: z.ZodOptional; + importFunctionName: z.ZodOptional; + iife: z.ZodOptional; + wasmLoading: z.ZodOptional, z.ZodUnion<[z.ZodEnum<["fetch-streaming", "fetch", "async-node"]>, z.ZodString]>]>>; + enabledWasmLoadingTypes: z.ZodOptional, z.ZodString]>, "many">>; + webassemblyModuleFilename: z.ZodOptional; + chunkFormat: z.ZodOptional, z.ZodString]>>; + chunkLoading: z.ZodOptional, z.ZodUnion<[z.ZodEnum<["jsonp", "import-scripts", "require", "async-node", "import"]>, z.ZodString]>]>>; + enabledChunkLoadingTypes: z.ZodOptional, z.ZodString]>, "many">>; + trustedTypes: z.ZodOptional, z.ZodString]>, z.ZodObject<{ + policyName: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + policyName?: string | undefined; + }, { + policyName?: string | undefined; + }>]>>; + sourceMapFilename: z.ZodOptional; + hashDigest: z.ZodOptional; + hashDigestLength: z.ZodOptional; + hashFunction: z.ZodOptional>; + hashSalt: z.ZodOptional; + asyncChunks: z.ZodOptional; + workerChunkLoading: z.ZodOptional, z.ZodUnion<[z.ZodEnum<["jsonp", "import-scripts", "require", "async-node", "import"]>, z.ZodString]>]>>; + workerWasmLoading: z.ZodOptional, z.ZodUnion<[z.ZodEnum<["fetch-streaming", "fetch", "async-node"]>, z.ZodString]>]>>; + workerPublicPath: z.ZodOptional; + scriptType: z.ZodOptional, z.ZodLiteral]>>; + devtoolNamespace: z.ZodOptional; + devtoolModuleFilenameTemplate: z.ZodOptional, z.ZodAny>]>>; + devtoolFallbackModuleFilenameTemplate: z.ZodOptional, z.ZodAny>]>>; + }, "strict", z.ZodTypeAny, { + path?: string | undefined; + clean?: boolean | undefined; + publicPath?: string | undefined; + filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + chunkFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined; + cssFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + cssChunkFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + hotUpdateMainFilename?: string | undefined; + hotUpdateChunkFilename?: string | undefined; + hotUpdateGlobal?: string | undefined; + assetModuleFilename?: string | undefined; + uniqueName?: string | undefined; + chunkLoadingGlobal?: string | undefined; + enabledLibraryTypes?: string[] | undefined; + library?: string | string[] | { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + } | { + type: string; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + } | undefined; + export?: string | string[] | undefined; + name?: string | string[] | { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + } | undefined; + umdNamedDefine?: boolean | undefined; + } | undefined; + libraryExport?: string | string[] | undefined; + libraryTarget?: string | undefined; + umdNamedDefine?: boolean | undefined; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + } | undefined; + module?: boolean | undefined; + strictModuleExceptionHandling?: boolean | undefined; + strictModuleErrorHandling?: boolean | undefined; + globalObject?: string | undefined; + importFunctionName?: string | undefined; + iife?: boolean | undefined; + wasmLoading?: string | false | undefined; + enabledWasmLoadingTypes?: string[] | undefined; + webassemblyModuleFilename?: string | undefined; + chunkFormat?: string | false | undefined; + chunkLoading?: string | false | undefined; + enabledChunkLoadingTypes?: string[] | undefined; + trustedTypes?: string | true | { + policyName?: string | undefined; + } | undefined; + sourceMapFilename?: string | undefined; + hashDigest?: string | undefined; + hashDigestLength?: number | undefined; + hashFunction?: "md4" | "xxhash64" | undefined; + hashSalt?: string | undefined; + asyncChunks?: boolean | undefined; + workerChunkLoading?: string | false | undefined; + workerWasmLoading?: string | false | undefined; + workerPublicPath?: string | undefined; + scriptType?: false | "module" | "text/javascript" | undefined; + devtoolNamespace?: string | undefined; + devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined; + devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined; + }, { + path?: string | undefined; + clean?: boolean | undefined; + publicPath?: string | undefined; + filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + chunkFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined; + cssFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + cssChunkFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + hotUpdateMainFilename?: string | undefined; + hotUpdateChunkFilename?: string | undefined; + hotUpdateGlobal?: string | undefined; + assetModuleFilename?: string | undefined; + uniqueName?: string | undefined; + chunkLoadingGlobal?: string | undefined; + enabledLibraryTypes?: string[] | undefined; + library?: string | string[] | { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + } | { + type: string; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + } | undefined; + export?: string | string[] | undefined; + name?: string | string[] | { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + } | undefined; + umdNamedDefine?: boolean | undefined; + } | undefined; + libraryExport?: string | string[] | undefined; + libraryTarget?: string | undefined; + umdNamedDefine?: boolean | undefined; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + } | undefined; + module?: boolean | undefined; + strictModuleExceptionHandling?: boolean | undefined; + strictModuleErrorHandling?: boolean | undefined; + globalObject?: string | undefined; + importFunctionName?: string | undefined; + iife?: boolean | undefined; + wasmLoading?: string | false | undefined; + enabledWasmLoadingTypes?: string[] | undefined; + webassemblyModuleFilename?: string | undefined; + chunkFormat?: string | false | undefined; + chunkLoading?: string | false | undefined; + enabledChunkLoadingTypes?: string[] | undefined; + trustedTypes?: string | true | { + policyName?: string | undefined; + } | undefined; + sourceMapFilename?: string | undefined; + hashDigest?: string | undefined; + hashDigestLength?: number | undefined; + hashFunction?: "md4" | "xxhash64" | undefined; + hashSalt?: string | undefined; + asyncChunks?: boolean | undefined; + workerChunkLoading?: string | false | undefined; + workerWasmLoading?: string | false | undefined; + workerPublicPath?: string | undefined; + scriptType?: false | "module" | "text/javascript" | undefined; + devtoolNamespace?: string | undefined; + devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined; + devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined; + }>>; + target: z.ZodOptional, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["web", "webworker", "es3", "es5", "es2015", "es2016", "es2017", "es2018", "es2019", "es2020", "es2021", "es2022", "browserslist"]>, z.ZodLiteral<"node">]>, z.ZodLiteral<"async-node">]>, z.ZodType<`node${number}`, z.ZodTypeDef, `node${number}`>]>, z.ZodType<`async-node${number}`, z.ZodTypeDef, `async-node${number}`>]>, z.ZodType<`node${number}.${number}`, z.ZodTypeDef, `node${number}.${number}`>]>, z.ZodType<`async-node${number}.${number}`, z.ZodTypeDef, `async-node${number}.${number}`>]>, z.ZodLiteral<"electron-main">]>, z.ZodType<`electron${number}-main`, z.ZodTypeDef, `electron${number}-main`>]>, z.ZodType<`electron${number}.${number}-main`, z.ZodTypeDef, `electron${number}.${number}-main`>]>, z.ZodLiteral<"electron-renderer">]>, z.ZodType<`electron${number}-renderer`, z.ZodTypeDef, `electron${number}-renderer`>]>, z.ZodType<`electron${number}.${number}-renderer`, z.ZodTypeDef, `electron${number}.${number}-renderer`>]>, z.ZodLiteral<"electron-preload">]>, z.ZodType<`electron${number}-preload`, z.ZodTypeDef, `electron${number}-preload`>]>, z.ZodType<`electron${number}.${number}-preload`, z.ZodTypeDef, `electron${number}.${number}-preload`>]>]>, z.ZodArray, z.ZodLiteral<"node">]>, z.ZodLiteral<"async-node">]>, z.ZodType<`node${number}`, z.ZodTypeDef, `node${number}`>]>, z.ZodType<`async-node${number}`, z.ZodTypeDef, `async-node${number}`>]>, z.ZodType<`node${number}.${number}`, z.ZodTypeDef, `node${number}.${number}`>]>, z.ZodType<`async-node${number}.${number}`, z.ZodTypeDef, `async-node${number}.${number}`>]>, z.ZodLiteral<"electron-main">]>, z.ZodType<`electron${number}-main`, z.ZodTypeDef, `electron${number}-main`>]>, z.ZodType<`electron${number}.${number}-main`, z.ZodTypeDef, `electron${number}.${number}-main`>]>, z.ZodLiteral<"electron-renderer">]>, z.ZodType<`electron${number}-renderer`, z.ZodTypeDef, `electron${number}-renderer`>]>, z.ZodType<`electron${number}.${number}-renderer`, z.ZodTypeDef, `electron${number}.${number}-renderer`>]>, z.ZodLiteral<"electron-preload">]>, z.ZodType<`electron${number}-preload`, z.ZodTypeDef, `electron${number}-preload`>]>, z.ZodType<`electron${number}.${number}-preload`, z.ZodTypeDef, `electron${number}.${number}-preload`>]>, "many">]>>; + mode: z.ZodOptional>; + experiments: z.ZodOptional; + asyncWebAssembly: z.ZodOptional; + outputModule: z.ZodOptional; + topLevelAwait: z.ZodOptional; + newSplitChunks: z.ZodEffects, boolean | undefined, boolean | undefined>; + css: z.ZodOptional; + futureDefaults: z.ZodOptional; + rspackFuture: z.ZodOptional; + bundlerInfo: z.ZodOptional; + force: z.ZodOptional, "many">]>>; + }, "strict", z.ZodTypeAny, { + version?: string | undefined; + force?: boolean | "version"[] | undefined; + }, { + version?: string | undefined; + force?: boolean | "version"[] | undefined; + }>>; + }, "strict", z.ZodTypeAny, { + newTreeshaking?: boolean | undefined; + bundlerInfo?: { + version?: string | undefined; + force?: boolean | "version"[] | undefined; + } | undefined; + }, { + newTreeshaking?: boolean | undefined; + bundlerInfo?: { + version?: string | undefined; + force?: boolean | "version"[] | undefined; + } | undefined; + }>>; + }, "strict", z.ZodTypeAny, { + lazyCompilation?: boolean | undefined; + asyncWebAssembly?: boolean | undefined; + outputModule?: boolean | undefined; + topLevelAwait?: boolean | undefined; + newSplitChunks?: boolean | undefined; + css?: boolean | undefined; + futureDefaults?: boolean | undefined; + rspackFuture?: { + newTreeshaking?: boolean | undefined; + bundlerInfo?: { + version?: string | undefined; + force?: boolean | "version"[] | undefined; + } | undefined; + } | undefined; + }, { + lazyCompilation?: boolean | undefined; + asyncWebAssembly?: boolean | undefined; + outputModule?: boolean | undefined; + topLevelAwait?: boolean | undefined; + newSplitChunks?: boolean | undefined; + css?: boolean | undefined; + futureDefaults?: boolean | undefined; + rspackFuture?: { + newTreeshaking?: boolean | undefined; + bundlerInfo?: { + version?: string | undefined; + force?: boolean | "version"[] | undefined; + } | undefined; + } | undefined; + }>>; + externals: z.ZodOptional]>, z.ZodRecord, z.ZodArray]>, z.ZodRecord]>>]>>]>, z.ZodFunction; + dependencyType: z.ZodOptional; + request: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + context?: string | undefined; + dependencyType?: string | undefined; + request?: string | undefined; + }, { + context?: string | undefined; + dependencyType?: string | undefined; + request?: string | undefined; + }>, z.ZodFunction>, z.ZodOptional, z.ZodArray]>, z.ZodRecord]>>]>>, z.ZodOptional>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction; + dependencyType: z.ZodOptional; + request: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + context?: string | undefined; + dependencyType?: string | undefined; + request?: string | undefined; + }, { + context?: string | undefined; + dependencyType?: string | undefined; + request?: string | undefined; + }>], z.ZodUnknown>, z.ZodPromise, z.ZodArray]>, z.ZodRecord]>>]>>>]>, "many">, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType]>, z.ZodRecord, z.ZodArray]>, z.ZodRecord]>>]>>]>, z.ZodFunction; + dependencyType: z.ZodOptional; + request: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + context?: string | undefined; + dependencyType?: string | undefined; + request?: string | undefined; + }, { + context?: string | undefined; + dependencyType?: string | undefined; + request?: string | undefined; + }>, z.ZodFunction>, z.ZodOptional, z.ZodArray]>, z.ZodRecord]>>]>>, z.ZodOptional>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction; + dependencyType: z.ZodOptional; + request: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + context?: string | undefined; + dependencyType?: string | undefined; + request?: string | undefined; + }, { + context?: string | undefined; + dependencyType?: string | undefined; + request?: string | undefined; + }>], z.ZodUnknown>, z.ZodPromise, z.ZodArray]>, z.ZodRecord]>>]>>>]>]>>; + externalsType: z.ZodOptional>; + externalsPresets: z.ZodOptional; + web: z.ZodOptional; + webAsync: z.ZodOptional; + electron: z.ZodOptional; + electronMain: z.ZodOptional; + electronPreload: z.ZodOptional; + electronRenderer: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + node?: boolean | undefined; + web?: boolean | undefined; + webAsync?: boolean | undefined; + electron?: boolean | undefined; + electronMain?: boolean | undefined; + electronPreload?: boolean | undefined; + electronRenderer?: boolean | undefined; + }, { + node?: boolean | undefined; + web?: boolean | undefined; + webAsync?: boolean | undefined; + electron?: boolean | undefined; + electronMain?: boolean | undefined; + electronPreload?: boolean | undefined; + electronRenderer?: boolean | undefined; + }>>; + infrastructureLogging: z.ZodOptional; + colors: z.ZodOptional; + console: z.ZodOptional>; + debug: z.ZodOptional, z.ZodString]>, z.ZodFunction, z.ZodBoolean>]>, "many">, z.ZodUnion<[z.ZodUnion<[z.ZodType, z.ZodString]>, z.ZodFunction, z.ZodBoolean>]>]>]>>; + level: z.ZodOptional>; + stream: z.ZodOptional>; + }, "strict", z.ZodTypeAny, { + appendOnly?: boolean | undefined; + colors?: boolean | undefined; + console?: Console | undefined; + debug?: string | boolean | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined; + level?: "none" | "verbose" | "error" | "warn" | "info" | "log" | undefined; + stream?: NodeJS.WritableStream | undefined; + }, { + appendOnly?: boolean | undefined; + colors?: boolean | undefined; + console?: Console | undefined; + debug?: string | boolean | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined; + level?: "none" | "verbose" | "error" | "warn" | "info" | "log" | undefined; + stream?: NodeJS.WritableStream | undefined; + }>>; + cache: z.ZodOptional; + context: z.ZodOptional; + devtool: z.ZodOptional, z.ZodEnum<["eval", "cheap-source-map", "cheap-module-source-map", "source-map", "inline-cheap-source-map", "inline-cheap-module-source-map", "inline-source-map", "inline-nosources-cheap-source-map", "inline-nosources-cheap-module-source-map", "inline-nosources-source-map", "nosources-cheap-source-map", "nosources-cheap-module-source-map", "nosources-source-map", "hidden-nosources-cheap-source-map", "hidden-nosources-cheap-module-source-map", "hidden-nosources-source-map", "hidden-cheap-source-map", "hidden-cheap-module-source-map", "hidden-source-map", "eval-cheap-source-map", "eval-cheap-module-source-map", "eval-source-map", "eval-nosources-cheap-source-map", "eval-nosources-cheap-module-source-map", "eval-nosources-source-map"]>]>>; + node: z.ZodOptional, z.ZodObject<{ + __dirname: z.ZodOptional]>>; + __filename: z.ZodOptional]>>; + global: z.ZodOptional]>>; + }, "strict", z.ZodTypeAny, { + __dirname?: boolean | "warn-mock" | "mock" | "eval-only" | undefined; + __filename?: boolean | "warn-mock" | "mock" | "eval-only" | undefined; + global?: boolean | "warn" | undefined; + }, { + __dirname?: boolean | "warn-mock" | "mock" | "eval-only" | undefined; + __filename?: boolean | "warn-mock" | "mock" | "eval-only" | undefined; + global?: boolean | "warn" | undefined; + }>]>>; + ignoreWarnings: z.ZodOptional, z.ZodFunction, z.ZodType], z.ZodUnknown>, z.ZodBoolean>]>, "many">>; + watchOptions: z.ZodOptional; + followSymlinks: z.ZodOptional; + ignored: z.ZodOptional, z.ZodType]>, z.ZodString]>>; + poll: z.ZodOptional>; + stdin: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + aggregateTimeout?: number | undefined; + followSymlinks?: boolean | undefined; + ignored?: string | RegExp | string[] | undefined; + poll?: number | boolean | undefined; + stdin?: boolean | undefined; + }, { + aggregateTimeout?: number | undefined; + followSymlinks?: boolean | undefined; + ignored?: string | RegExp | string[] | undefined; + poll?: number | boolean | undefined; + stdin?: boolean | undefined; + }>>; + watch: z.ZodOptional; + stats: z.ZodOptional, z.ZodBoolean]>, z.ZodObject<{ + all: z.ZodOptional; + preset: z.ZodOptional>; + assets: z.ZodOptional; + chunks: z.ZodOptional; + modules: z.ZodOptional; + entrypoints: z.ZodOptional; + chunkGroups: z.ZodOptional; + warnings: z.ZodOptional; + warningsCount: z.ZodOptional; + errors: z.ZodOptional; + errorsCount: z.ZodOptional; + colors: z.ZodOptional; + hash: z.ZodOptional; + version: z.ZodOptional; + reasons: z.ZodOptional; + publicPath: z.ZodOptional; + outputPath: z.ZodOptional; + chunkModules: z.ZodOptional; + chunkRelations: z.ZodOptional; + ids: z.ZodOptional; + timings: z.ZodOptional; + builtAt: z.ZodOptional; + moduleAssets: z.ZodOptional; + modulesSpace: z.ZodOptional; + nestedModules: z.ZodOptional; + source: z.ZodOptional; + logging: z.ZodOptional, z.ZodBoolean]>>; + loggingDebug: z.ZodOptional, z.ZodString]>, z.ZodFunction, z.ZodBoolean>]>, "many">, z.ZodUnion<[z.ZodUnion<[z.ZodType, z.ZodString]>, z.ZodFunction, z.ZodBoolean>]>]>]>>; + loggingTrace: z.ZodOptional; + runtimeModules: z.ZodOptional; + children: z.ZodOptional; + usedExports: z.ZodOptional; + providedExports: z.ZodOptional; + optimizationBailout: z.ZodOptional; + orphanModules: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + all?: boolean | undefined; + preset?: "normal" | "none" | "verbose" | "errors-only" | "errors-warnings" | undefined; + assets?: boolean | undefined; + chunks?: boolean | undefined; + modules?: boolean | undefined; + entrypoints?: boolean | undefined; + chunkGroups?: boolean | undefined; + warnings?: boolean | undefined; + warningsCount?: boolean | undefined; + errors?: boolean | undefined; + errorsCount?: boolean | undefined; + colors?: boolean | undefined; + hash?: boolean | undefined; + version?: boolean | undefined; + reasons?: boolean | undefined; + publicPath?: boolean | undefined; + outputPath?: boolean | undefined; + chunkModules?: boolean | undefined; + chunkRelations?: boolean | undefined; + ids?: boolean | undefined; + timings?: boolean | undefined; + builtAt?: boolean | undefined; + moduleAssets?: boolean | undefined; + modulesSpace?: number | undefined; + nestedModules?: boolean | undefined; + source?: boolean | undefined; + logging?: boolean | "none" | "verbose" | "error" | "warn" | "info" | "log" | undefined; + loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined; + loggingTrace?: boolean | undefined; + runtimeModules?: boolean | undefined; + children?: boolean | undefined; + usedExports?: boolean | undefined; + providedExports?: boolean | undefined; + optimizationBailout?: boolean | undefined; + orphanModules?: boolean | undefined; + }, { + all?: boolean | undefined; + preset?: "normal" | "none" | "verbose" | "errors-only" | "errors-warnings" | undefined; + assets?: boolean | undefined; + chunks?: boolean | undefined; + modules?: boolean | undefined; + entrypoints?: boolean | undefined; + chunkGroups?: boolean | undefined; + warnings?: boolean | undefined; + warningsCount?: boolean | undefined; + errors?: boolean | undefined; + errorsCount?: boolean | undefined; + colors?: boolean | undefined; + hash?: boolean | undefined; + version?: boolean | undefined; + reasons?: boolean | undefined; + publicPath?: boolean | undefined; + outputPath?: boolean | undefined; + chunkModules?: boolean | undefined; + chunkRelations?: boolean | undefined; + ids?: boolean | undefined; + timings?: boolean | undefined; + builtAt?: boolean | undefined; + moduleAssets?: boolean | undefined; + modulesSpace?: number | undefined; + nestedModules?: boolean | undefined; + source?: boolean | undefined; + logging?: boolean | "none" | "verbose" | "error" | "warn" | "info" | "log" | undefined; + loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined; + loggingTrace?: boolean | undefined; + runtimeModules?: boolean | undefined; + children?: boolean | undefined; + usedExports?: boolean | undefined; + providedExports?: boolean | undefined; + optimizationBailout?: boolean | undefined; + orphanModules?: boolean | undefined; + }>]>>; + snapshot: z.ZodOptional; + timestamp: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + hash?: boolean | undefined; + timestamp?: boolean | undefined; + }, { + hash?: boolean | undefined; + timestamp?: boolean | undefined; + }>>; + resolve: z.ZodOptional; + timestamp: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + hash?: boolean | undefined; + timestamp?: boolean | undefined; + }, { + hash?: boolean | undefined; + timestamp?: boolean | undefined; + }>>; + }, "strict", z.ZodTypeAny, { + module?: { + hash?: boolean | undefined; + timestamp?: boolean | undefined; + } | undefined; + resolve?: { + hash?: boolean | undefined; + timestamp?: boolean | undefined; + } | undefined; + }, { + module?: { + hash?: boolean | undefined; + timestamp?: boolean | undefined; + } | undefined; + resolve?: { + hash?: boolean | undefined; + timestamp?: boolean | undefined; + } | undefined; + }>>; + optimization: z.ZodOptional>; + chunkIds: z.ZodOptional>; + minimize: z.ZodOptional; + minimizer: z.ZodOptional, z.ZodUnion<[z.ZodType, z.ZodType, z.ZodUnion<[z.ZodLiteral, z.ZodLiteral<0>, z.ZodLiteral<"">, z.ZodNull, z.ZodUndefined]>]>]>, "many">>; + mergeDuplicateChunks: z.ZodOptional; + splitChunks: z.ZodOptional, z.ZodObject<{ + chunks: z.ZodOptional, z.ZodType]>, z.ZodFunction], z.ZodUnknown>, z.ZodBoolean>]>>; + defaultSizeTypes: z.ZodOptional>; + minChunks: z.ZodOptional; + name: z.ZodOptional]>, z.ZodFunction>], z.ZodUnknown>, z.ZodUnknown>]>>; + minSize: z.ZodOptional; + maxSize: z.ZodOptional; + maxAsyncSize: z.ZodOptional; + maxInitialSize: z.ZodOptional; + automaticNameDelimiter: z.ZodOptional; + cacheGroups: z.ZodOptional, z.ZodObject<{ + chunks: z.ZodOptional, z.ZodType]>, z.ZodFunction], z.ZodUnknown>, z.ZodBoolean>]>>; + defaultSizeTypes: z.ZodOptional>; + minChunks: z.ZodOptional; + name: z.ZodOptional]>, z.ZodFunction>], z.ZodUnknown>, z.ZodUnknown>]>>; + minSize: z.ZodOptional; + maxSize: z.ZodOptional; + maxAsyncSize: z.ZodOptional; + maxInitialSize: z.ZodOptional; + automaticNameDelimiter: z.ZodOptional; + test: z.ZodOptional]>, z.ZodFunction], z.ZodUnknown>, z.ZodUnknown>]>>; + priority: z.ZodOptional; + enforce: z.ZodOptional; + filename: z.ZodOptional; + reuseExistingChunk: z.ZodOptional; + type: z.ZodOptional]>>; + idHint: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + chunks?: RegExp | "async" | "all" | "initial" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined; + defaultSizeTypes?: string[] | undefined; + minChunks?: number | undefined; + name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + test?: string | RegExp | ((args_0: Module, ...args_1: unknown[]) => unknown) | undefined; + priority?: number | undefined; + enforce?: boolean | undefined; + filename?: string | undefined; + reuseExistingChunk?: boolean | undefined; + type?: string | RegExp | undefined; + idHint?: string | undefined; + }, { + chunks?: RegExp | "async" | "all" | "initial" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined; + defaultSizeTypes?: string[] | undefined; + minChunks?: number | undefined; + name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + test?: string | RegExp | ((args_0: Module, ...args_1: unknown[]) => unknown) | undefined; + priority?: number | undefined; + enforce?: boolean | undefined; + filename?: string | undefined; + reuseExistingChunk?: boolean | undefined; + type?: string | RegExp | undefined; + idHint?: string | undefined; + }>]>>>; + maxAsyncRequests: z.ZodOptional; + maxInitialRequests: z.ZodOptional; + fallbackCacheGroup: z.ZodOptional, z.ZodType]>, z.ZodFunction], z.ZodUnknown>, z.ZodBoolean>]>>; + minSize: z.ZodOptional; + maxSize: z.ZodOptional; + maxAsyncSize: z.ZodOptional; + maxInitialSize: z.ZodOptional; + automaticNameDelimiter: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + chunks?: RegExp | "async" | "all" | "initial" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + }, { + chunks?: RegExp | "async" | "all" | "initial" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + }>>; + hidePathInfo: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + chunks?: RegExp | "async" | "all" | "initial" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined; + defaultSizeTypes?: string[] | undefined; + minChunks?: number | undefined; + name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + cacheGroups?: Record boolean) | undefined; + defaultSizeTypes?: string[] | undefined; + minChunks?: number | undefined; + name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + test?: string | RegExp | ((args_0: Module, ...args_1: unknown[]) => unknown) | undefined; + priority?: number | undefined; + enforce?: boolean | undefined; + filename?: string | undefined; + reuseExistingChunk?: boolean | undefined; + type?: string | RegExp | undefined; + idHint?: string | undefined; + }> | undefined; + maxAsyncRequests?: number | undefined; + maxInitialRequests?: number | undefined; + fallbackCacheGroup?: { + chunks?: RegExp | "async" | "all" | "initial" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + } | undefined; + hidePathInfo?: boolean | undefined; + }, { + chunks?: RegExp | "async" | "all" | "initial" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined; + defaultSizeTypes?: string[] | undefined; + minChunks?: number | undefined; + name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + cacheGroups?: Record boolean) | undefined; + defaultSizeTypes?: string[] | undefined; + minChunks?: number | undefined; + name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + test?: string | RegExp | ((args_0: Module, ...args_1: unknown[]) => unknown) | undefined; + priority?: number | undefined; + enforce?: boolean | undefined; + filename?: string | undefined; + reuseExistingChunk?: boolean | undefined; + type?: string | RegExp | undefined; + idHint?: string | undefined; + }> | undefined; + maxAsyncRequests?: number | undefined; + maxInitialRequests?: number | undefined; + fallbackCacheGroup?: { + chunks?: RegExp | "async" | "all" | "initial" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + } | undefined; + hidePathInfo?: boolean | undefined; + }>]>>; + runtimeChunk: z.ZodOptional, z.ZodBoolean]>, z.ZodObject<{ + name: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodUndefined]>>]>>; + }, "strict", z.ZodTypeAny, { + name?: string | ((...args: unknown[]) => string | undefined) | undefined; + }, { + name?: string | ((...args: unknown[]) => string | undefined) | undefined; + }>]>>; + removeAvailableModules: z.ZodOptional; + removeEmptyChunks: z.ZodOptional; + realContentHash: z.ZodOptional; + sideEffects: z.ZodOptional, z.ZodBoolean]>>; + providedExports: z.ZodOptional; + concatenateModules: z.ZodOptional; + innerGraph: z.ZodOptional; + usedExports: z.ZodOptional, z.ZodBoolean]>>; + mangleExports: z.ZodOptional, z.ZodBoolean]>>; + nodeEnv: z.ZodOptional]>>; + }, "strict", z.ZodTypeAny, { + moduleIds?: "named" | "deterministic" | undefined; + chunkIds?: "named" | "deterministic" | undefined; + minimize?: boolean | undefined; + minimizer?: (false | "" | 0 | "..." | RspackPluginInstance | RspackPluginFunction | null | undefined)[] | undefined; + mergeDuplicateChunks?: boolean | undefined; + splitChunks?: false | { + chunks?: RegExp | "async" | "all" | "initial" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined; + defaultSizeTypes?: string[] | undefined; + minChunks?: number | undefined; + name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + cacheGroups?: Record boolean) | undefined; + defaultSizeTypes?: string[] | undefined; + minChunks?: number | undefined; + name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + test?: string | RegExp | ((args_0: Module, ...args_1: unknown[]) => unknown) | undefined; + priority?: number | undefined; + enforce?: boolean | undefined; + filename?: string | undefined; + reuseExistingChunk?: boolean | undefined; + type?: string | RegExp | undefined; + idHint?: string | undefined; + }> | undefined; + maxAsyncRequests?: number | undefined; + maxInitialRequests?: number | undefined; + fallbackCacheGroup?: { + chunks?: RegExp | "async" | "all" | "initial" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + } | undefined; + hidePathInfo?: boolean | undefined; + } | undefined; + runtimeChunk?: boolean | "single" | "multiple" | { + name?: string | ((...args: unknown[]) => string | undefined) | undefined; + } | undefined; + removeAvailableModules?: boolean | undefined; + removeEmptyChunks?: boolean | undefined; + realContentHash?: boolean | undefined; + sideEffects?: boolean | "flag" | undefined; + providedExports?: boolean | undefined; + concatenateModules?: boolean | undefined; + innerGraph?: boolean | undefined; + usedExports?: boolean | "global" | undefined; + mangleExports?: boolean | "size" | "deterministic" | undefined; + nodeEnv?: string | false | undefined; + }, { + moduleIds?: "named" | "deterministic" | undefined; + chunkIds?: "named" | "deterministic" | undefined; + minimize?: boolean | undefined; + minimizer?: (false | "" | 0 | "..." | RspackPluginInstance | RspackPluginFunction | null | undefined)[] | undefined; + mergeDuplicateChunks?: boolean | undefined; + splitChunks?: false | { + chunks?: RegExp | "async" | "all" | "initial" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined; + defaultSizeTypes?: string[] | undefined; + minChunks?: number | undefined; + name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + cacheGroups?: Record boolean) | undefined; + defaultSizeTypes?: string[] | undefined; + minChunks?: number | undefined; + name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + test?: string | RegExp | ((args_0: Module, ...args_1: unknown[]) => unknown) | undefined; + priority?: number | undefined; + enforce?: boolean | undefined; + filename?: string | undefined; + reuseExistingChunk?: boolean | undefined; + type?: string | RegExp | undefined; + idHint?: string | undefined; + }> | undefined; + maxAsyncRequests?: number | undefined; + maxInitialRequests?: number | undefined; + fallbackCacheGroup?: { + chunks?: RegExp | "async" | "all" | "initial" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + } | undefined; + hidePathInfo?: boolean | undefined; + } | undefined; + runtimeChunk?: boolean | "single" | "multiple" | { + name?: string | ((...args: unknown[]) => string | undefined) | undefined; + } | undefined; + removeAvailableModules?: boolean | undefined; + removeEmptyChunks?: boolean | undefined; + realContentHash?: boolean | undefined; + sideEffects?: boolean | "flag" | undefined; + providedExports?: boolean | undefined; + concatenateModules?: boolean | undefined; + innerGraph?: boolean | undefined; + usedExports?: boolean | "global" | undefined; + mangleExports?: boolean | "size" | "deterministic" | undefined; + nodeEnv?: string | false | undefined; + }>>; + resolve: z.ZodOptional>; + resolveLoader: z.ZodOptional>; + plugins: z.ZodOptional, z.ZodType, z.ZodUnion<[z.ZodLiteral, z.ZodLiteral<0>, z.ZodLiteral<"">, z.ZodNull, z.ZodUndefined]>]>, "many">>; + devServer: z.ZodOptional>; + builtins: z.ZodOptional>; + module: z.ZodOptional, z.ZodType]>, z.ZodUnion<[z.ZodLiteral, z.ZodLiteral<0>, z.ZodLiteral<"">, z.ZodNull, z.ZodUndefined]>]>, "many">>; + rules: z.ZodOptional, z.ZodType]>, z.ZodUnion<[z.ZodLiteral, z.ZodLiteral<0>, z.ZodLiteral<"">, z.ZodNull, z.ZodUndefined]>]>, "many">>; + parser: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + maxSize?: number | undefined; + }, { + maxSize?: number | undefined; + }>>; + }, "strict", z.ZodTypeAny, { + dataUrlCondition?: { + maxSize?: number | undefined; + } | undefined; + }, { + dataUrlCondition?: { + maxSize?: number | undefined; + } | undefined; + }>>; + css: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + namedExports?: boolean | undefined; + }, { + namedExports?: boolean | undefined; + }>>; + "css/auto": z.ZodOptional; + }, "strict", z.ZodTypeAny, { + namedExports?: boolean | undefined; + }, { + namedExports?: boolean | undefined; + }>>; + "css/module": z.ZodOptional; + }, "strict", z.ZodTypeAny, { + namedExports?: boolean | undefined; + }, { + namedExports?: boolean | undefined; + }>>; + javascript: z.ZodOptional>; + dynamicImportPreload: z.ZodOptional>; + dynamicImportPrefetch: z.ZodOptional>; + url: z.ZodOptional, z.ZodBoolean]>>; + }, "strict", z.ZodTypeAny, { + dynamicImportMode?: "eager" | "lazy" | undefined; + dynamicImportPreload?: number | boolean | undefined; + dynamicImportPrefetch?: number | boolean | undefined; + url?: boolean | "relative" | undefined; + }, { + dynamicImportMode?: "eager" | "lazy" | undefined; + dynamicImportPreload?: number | boolean | undefined; + dynamicImportPrefetch?: number | boolean | undefined; + url?: boolean | "relative" | undefined; + }>>; + }, "strict", z.ZodTypeAny, { + asset?: { + dataUrlCondition?: { + maxSize?: number | undefined; + } | undefined; + } | undefined; + css?: { + namedExports?: boolean | undefined; + } | undefined; + "css/auto"?: { + namedExports?: boolean | undefined; + } | undefined; + "css/module"?: { + namedExports?: boolean | undefined; + } | undefined; + javascript?: { + dynamicImportMode?: "eager" | "lazy" | undefined; + dynamicImportPreload?: number | boolean | undefined; + dynamicImportPrefetch?: number | boolean | undefined; + url?: boolean | "relative" | undefined; + } | undefined; + }, { + asset?: { + dataUrlCondition?: { + maxSize?: number | undefined; + } | undefined; + } | undefined; + css?: { + namedExports?: boolean | undefined; + } | undefined; + "css/auto"?: { + namedExports?: boolean | undefined; + } | undefined; + "css/module"?: { + namedExports?: boolean | undefined; + } | undefined; + javascript?: { + dynamicImportMode?: "eager" | "lazy" | undefined; + dynamicImportPreload?: number | boolean | undefined; + dynamicImportPrefetch?: number | boolean | undefined; + url?: boolean | "relative" | undefined; + } | undefined; + }>, z.ZodRecord>]>>; + generator: z.ZodOptional, z.ZodLiteral<"base64">]>>; + mimetype: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + encoding?: false | "base64" | undefined; + mimetype?: string | undefined; + }, { + encoding?: false | "base64" | undefined; + mimetype?: string | undefined; + }>, z.ZodFunction], z.ZodUnknown>, z.ZodString>]>>; + filename: z.ZodOptional; + publicPath: z.ZodOptional, z.ZodString]>>; + }, "strict", z.ZodTypeAny, { + dataUrl?: { + encoding?: false | "base64" | undefined; + mimetype?: string | undefined; + } | ((args_0: { + filename: string; + content: string; + }, ...args_1: unknown[]) => string) | undefined; + filename?: string | undefined; + publicPath?: string | undefined; + }, { + dataUrl?: { + encoding?: false | "base64" | undefined; + mimetype?: string | undefined; + } | ((args_0: { + filename: string; + content: string; + }, ...args_1: unknown[]) => string) | undefined; + filename?: string | undefined; + publicPath?: string | undefined; + }>>; + "asset/inline": z.ZodOptional, z.ZodLiteral<"base64">]>>; + mimetype: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + encoding?: false | "base64" | undefined; + mimetype?: string | undefined; + }, { + encoding?: false | "base64" | undefined; + mimetype?: string | undefined; + }>, z.ZodFunction], z.ZodUnknown>, z.ZodString>]>>; + }, "strict", z.ZodTypeAny, { + dataUrl?: { + encoding?: false | "base64" | undefined; + mimetype?: string | undefined; + } | ((args_0: { + filename: string; + content: string; + }, ...args_1: unknown[]) => string) | undefined; + }, { + dataUrl?: { + encoding?: false | "base64" | undefined; + mimetype?: string | undefined; + } | ((args_0: { + filename: string; + content: string; + }, ...args_1: unknown[]) => string) | undefined; + }>>; + "asset/resource": z.ZodOptional; + publicPath: z.ZodOptional, z.ZodString]>>; + }, "strict", z.ZodTypeAny, { + filename?: string | undefined; + publicPath?: string | undefined; + }, { + filename?: string | undefined; + publicPath?: string | undefined; + }>>; + css: z.ZodOptional>; + exportsOnly: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + }, { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + }>>; + "css/auto": z.ZodOptional>; + exportsOnly: z.ZodOptional; + localIdentName: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + localIdentName?: string | undefined; + }, { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + localIdentName?: string | undefined; + }>>; + "css/module": z.ZodOptional>; + exportsOnly: z.ZodOptional; + localIdentName: z.ZodOptional; + }, "strict", z.ZodTypeAny, { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + localIdentName?: string | undefined; + }, { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + localIdentName?: string | undefined; + }>>; + }, "strict", z.ZodTypeAny, { + asset?: { + dataUrl?: { + encoding?: false | "base64" | undefined; + mimetype?: string | undefined; + } | ((args_0: { + filename: string; + content: string; + }, ...args_1: unknown[]) => string) | undefined; + filename?: string | undefined; + publicPath?: string | undefined; + } | undefined; + "asset/inline"?: { + dataUrl?: { + encoding?: false | "base64" | undefined; + mimetype?: string | undefined; + } | ((args_0: { + filename: string; + content: string; + }, ...args_1: unknown[]) => string) | undefined; + } | undefined; + "asset/resource"?: { + filename?: string | undefined; + publicPath?: string | undefined; + } | undefined; + css?: { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + } | undefined; + "css/auto"?: { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + localIdentName?: string | undefined; + } | undefined; + "css/module"?: { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + localIdentName?: string | undefined; + } | undefined; + }, { + asset?: { + dataUrl?: { + encoding?: false | "base64" | undefined; + mimetype?: string | undefined; + } | ((args_0: { + filename: string; + content: string; + }, ...args_1: unknown[]) => string) | undefined; + filename?: string | undefined; + publicPath?: string | undefined; + } | undefined; + "asset/inline"?: { + dataUrl?: { + encoding?: false | "base64" | undefined; + mimetype?: string | undefined; + } | ((args_0: { + filename: string; + content: string; + }, ...args_1: unknown[]) => string) | undefined; + } | undefined; + "asset/resource"?: { + filename?: string | undefined; + publicPath?: string | undefined; + } | undefined; + css?: { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + } | undefined; + "css/auto"?: { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + localIdentName?: string | undefined; + } | undefined; + "css/module"?: { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + localIdentName?: string | undefined; + } | undefined; + }>, z.ZodRecord>]>>; + noParse: z.ZodOptional]>, z.ZodFunction, z.ZodBoolean>]>, z.ZodArray]>, z.ZodFunction, z.ZodBoolean>]>, "many">]>>; + }, "strict", z.ZodTypeAny, { + defaultRules?: (false | "" | 0 | "..." | RuleSetRule | null | undefined)[] | undefined; + rules?: (false | "" | 0 | "..." | RuleSetRule | null | undefined)[] | undefined; + parser?: { + asset?: { + dataUrlCondition?: { + maxSize?: number | undefined; + } | undefined; + } | undefined; + css?: { + namedExports?: boolean | undefined; + } | undefined; + "css/auto"?: { + namedExports?: boolean | undefined; + } | undefined; + "css/module"?: { + namedExports?: boolean | undefined; + } | undefined; + javascript?: { + dynamicImportMode?: "eager" | "lazy" | undefined; + dynamicImportPreload?: number | boolean | undefined; + dynamicImportPrefetch?: number | boolean | undefined; + url?: boolean | "relative" | undefined; + } | undefined; + } | Record> | undefined; + generator?: Record> | { + asset?: { + dataUrl?: { + encoding?: false | "base64" | undefined; + mimetype?: string | undefined; + } | ((args_0: { + filename: string; + content: string; + }, ...args_1: unknown[]) => string) | undefined; + filename?: string | undefined; + publicPath?: string | undefined; + } | undefined; + "asset/inline"?: { + dataUrl?: { + encoding?: false | "base64" | undefined; + mimetype?: string | undefined; + } | ((args_0: { + filename: string; + content: string; + }, ...args_1: unknown[]) => string) | undefined; + } | undefined; + "asset/resource"?: { + filename?: string | undefined; + publicPath?: string | undefined; + } | undefined; + css?: { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + } | undefined; + "css/auto"?: { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + localIdentName?: string | undefined; + } | undefined; + "css/module"?: { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + localIdentName?: string | undefined; + } | undefined; + } | undefined; + noParse?: string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined; + }, { + defaultRules?: (false | "" | 0 | "..." | RuleSetRule | null | undefined)[] | undefined; + rules?: (false | "" | 0 | "..." | RuleSetRule | null | undefined)[] | undefined; + parser?: { + asset?: { + dataUrlCondition?: { + maxSize?: number | undefined; + } | undefined; + } | undefined; + css?: { + namedExports?: boolean | undefined; + } | undefined; + "css/auto"?: { + namedExports?: boolean | undefined; + } | undefined; + "css/module"?: { + namedExports?: boolean | undefined; + } | undefined; + javascript?: { + dynamicImportMode?: "eager" | "lazy" | undefined; + dynamicImportPreload?: number | boolean | undefined; + dynamicImportPrefetch?: number | boolean | undefined; + url?: boolean | "relative" | undefined; + } | undefined; + } | Record> | undefined; + generator?: Record> | { + asset?: { + dataUrl?: { + encoding?: false | "base64" | undefined; + mimetype?: string | undefined; + } | ((args_0: { + filename: string; + content: string; + }, ...args_1: unknown[]) => string) | undefined; + filename?: string | undefined; + publicPath?: string | undefined; + } | undefined; + "asset/inline"?: { + dataUrl?: { + encoding?: false | "base64" | undefined; + mimetype?: string | undefined; + } | ((args_0: { + filename: string; + content: string; + }, ...args_1: unknown[]) => string) | undefined; + } | undefined; + "asset/resource"?: { + filename?: string | undefined; + publicPath?: string | undefined; + } | undefined; + css?: { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + } | undefined; + "css/auto"?: { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + localIdentName?: string | undefined; + } | undefined; + "css/module"?: { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + localIdentName?: string | undefined; + } | undefined; + } | undefined; + noParse?: string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined; + }>>; + profile: z.ZodOptional; + bail: z.ZodOptional; +}, "strict", z.ZodTypeAny, { + name?: string | undefined; + dependencies?: string[] | undefined; + entry?: string | string[] | Record | ((...args: unknown[]) => string | string[] | Record) | undefined; + output?: { + path?: string | undefined; + clean?: boolean | undefined; + publicPath?: string | undefined; + filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + chunkFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined; + cssFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + cssChunkFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + hotUpdateMainFilename?: string | undefined; + hotUpdateChunkFilename?: string | undefined; + hotUpdateGlobal?: string | undefined; + assetModuleFilename?: string | undefined; + uniqueName?: string | undefined; + chunkLoadingGlobal?: string | undefined; + enabledLibraryTypes?: string[] | undefined; + library?: string | string[] | { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + } | { + type: string; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + } | undefined; + export?: string | string[] | undefined; + name?: string | string[] | { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + } | undefined; + umdNamedDefine?: boolean | undefined; + } | undefined; + libraryExport?: string | string[] | undefined; + libraryTarget?: string | undefined; + umdNamedDefine?: boolean | undefined; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + } | undefined; + module?: boolean | undefined; + strictModuleExceptionHandling?: boolean | undefined; + strictModuleErrorHandling?: boolean | undefined; + globalObject?: string | undefined; + importFunctionName?: string | undefined; + iife?: boolean | undefined; + wasmLoading?: string | false | undefined; + enabledWasmLoadingTypes?: string[] | undefined; + webassemblyModuleFilename?: string | undefined; + chunkFormat?: string | false | undefined; + chunkLoading?: string | false | undefined; + enabledChunkLoadingTypes?: string[] | undefined; + trustedTypes?: string | true | { + policyName?: string | undefined; + } | undefined; + sourceMapFilename?: string | undefined; + hashDigest?: string | undefined; + hashDigestLength?: number | undefined; + hashFunction?: "md4" | "xxhash64" | undefined; + hashSalt?: string | undefined; + asyncChunks?: boolean | undefined; + workerChunkLoading?: string | false | undefined; + workerWasmLoading?: string | false | undefined; + workerPublicPath?: string | undefined; + scriptType?: false | "module" | "text/javascript" | undefined; + devtoolNamespace?: string | undefined; + devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined; + devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined; + } | undefined; + target?: false | "async-node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | "node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload` | ("async-node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | "node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload`)[] | undefined; + mode?: "none" | "development" | "production" | undefined; + experiments?: { + lazyCompilation?: boolean | undefined; + asyncWebAssembly?: boolean | undefined; + outputModule?: boolean | undefined; + topLevelAwait?: boolean | undefined; + newSplitChunks?: boolean | undefined; + css?: boolean | undefined; + futureDefaults?: boolean | undefined; + rspackFuture?: { + newTreeshaking?: boolean | undefined; + bundlerInfo?: { + version?: string | undefined; + force?: boolean | "version"[] | undefined; + } | undefined; + } | undefined; + } | undefined; + externals?: string | RegExp | Record> | ((args_0: { + context?: string | undefined; + dependencyType?: string | undefined; + request?: string | undefined; + }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record | undefined, args_2: "promise" | "jsonp" | "import" | "amd" | "commonjs" | "commonjs2" | "var" | "module" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: { + context?: string | undefined; + dependencyType?: string | undefined; + request?: string | undefined; + }, ...args_1: unknown[]) => Promise>) | (string | RegExp | Record> | ((args_0: { + context?: string | undefined; + dependencyType?: string | undefined; + request?: string | undefined; + }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record | undefined, args_2: "promise" | "jsonp" | "import" | "amd" | "commonjs" | "commonjs2" | "var" | "module" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: { + context?: string | undefined; + dependencyType?: string | undefined; + request?: string | undefined; + }, ...args_1: unknown[]) => Promise>))[] | undefined; + externalsType?: "promise" | "jsonp" | "import" | "amd" | "commonjs" | "commonjs2" | "var" | "module" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "system" | "script" | "node-commonjs" | undefined; + externalsPresets?: { + node?: boolean | undefined; + web?: boolean | undefined; + webAsync?: boolean | undefined; + electron?: boolean | undefined; + electronMain?: boolean | undefined; + electronPreload?: boolean | undefined; + electronRenderer?: boolean | undefined; + } | undefined; + infrastructureLogging?: { + appendOnly?: boolean | undefined; + colors?: boolean | undefined; + console?: Console | undefined; + debug?: string | boolean | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined; + level?: "none" | "verbose" | "error" | "warn" | "info" | "log" | undefined; + stream?: NodeJS.WritableStream | undefined; + } | undefined; + cache?: boolean | undefined; + context?: string | undefined; + devtool?: false | "eval" | "cheap-source-map" | "cheap-module-source-map" | "source-map" | "inline-cheap-source-map" | "inline-cheap-module-source-map" | "inline-source-map" | "inline-nosources-cheap-source-map" | "inline-nosources-cheap-module-source-map" | "inline-nosources-source-map" | "nosources-cheap-source-map" | "nosources-cheap-module-source-map" | "nosources-source-map" | "hidden-nosources-cheap-source-map" | "hidden-nosources-cheap-module-source-map" | "hidden-nosources-source-map" | "hidden-cheap-source-map" | "hidden-cheap-module-source-map" | "hidden-source-map" | "eval-cheap-source-map" | "eval-cheap-module-source-map" | "eval-source-map" | "eval-nosources-cheap-source-map" | "eval-nosources-cheap-module-source-map" | "eval-nosources-source-map" | undefined; + node?: false | { + __dirname?: boolean | "warn-mock" | "mock" | "eval-only" | undefined; + __filename?: boolean | "warn-mock" | "mock" | "eval-only" | undefined; + global?: boolean | "warn" | undefined; + } | undefined; + ignoreWarnings?: (RegExp | ((args_0: Error, args_1: Compilation, ...args_2: unknown[]) => boolean))[] | undefined; + watchOptions?: { + aggregateTimeout?: number | undefined; + followSymlinks?: boolean | undefined; + ignored?: string | RegExp | string[] | undefined; + poll?: number | boolean | undefined; + stdin?: boolean | undefined; + } | undefined; + watch?: boolean | undefined; + stats?: boolean | "normal" | "none" | "verbose" | "errors-only" | "errors-warnings" | { + all?: boolean | undefined; + preset?: "normal" | "none" | "verbose" | "errors-only" | "errors-warnings" | undefined; + assets?: boolean | undefined; + chunks?: boolean | undefined; + modules?: boolean | undefined; + entrypoints?: boolean | undefined; + chunkGroups?: boolean | undefined; + warnings?: boolean | undefined; + warningsCount?: boolean | undefined; + errors?: boolean | undefined; + errorsCount?: boolean | undefined; + colors?: boolean | undefined; + hash?: boolean | undefined; + version?: boolean | undefined; + reasons?: boolean | undefined; + publicPath?: boolean | undefined; + outputPath?: boolean | undefined; + chunkModules?: boolean | undefined; + chunkRelations?: boolean | undefined; + ids?: boolean | undefined; + timings?: boolean | undefined; + builtAt?: boolean | undefined; + moduleAssets?: boolean | undefined; + modulesSpace?: number | undefined; + nestedModules?: boolean | undefined; + source?: boolean | undefined; + logging?: boolean | "none" | "verbose" | "error" | "warn" | "info" | "log" | undefined; + loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined; + loggingTrace?: boolean | undefined; + runtimeModules?: boolean | undefined; + children?: boolean | undefined; + usedExports?: boolean | undefined; + providedExports?: boolean | undefined; + optimizationBailout?: boolean | undefined; + orphanModules?: boolean | undefined; + } | undefined; + snapshot?: { + module?: { + hash?: boolean | undefined; + timestamp?: boolean | undefined; + } | undefined; + resolve?: { + hash?: boolean | undefined; + timestamp?: boolean | undefined; + } | undefined; + } | undefined; + optimization?: { + moduleIds?: "named" | "deterministic" | undefined; + chunkIds?: "named" | "deterministic" | undefined; + minimize?: boolean | undefined; + minimizer?: (false | "" | 0 | "..." | RspackPluginInstance | RspackPluginFunction | null | undefined)[] | undefined; + mergeDuplicateChunks?: boolean | undefined; + splitChunks?: false | { + chunks?: RegExp | "async" | "all" | "initial" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined; + defaultSizeTypes?: string[] | undefined; + minChunks?: number | undefined; + name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + cacheGroups?: Record boolean) | undefined; + defaultSizeTypes?: string[] | undefined; + minChunks?: number | undefined; + name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + test?: string | RegExp | ((args_0: Module, ...args_1: unknown[]) => unknown) | undefined; + priority?: number | undefined; + enforce?: boolean | undefined; + filename?: string | undefined; + reuseExistingChunk?: boolean | undefined; + type?: string | RegExp | undefined; + idHint?: string | undefined; + }> | undefined; + maxAsyncRequests?: number | undefined; + maxInitialRequests?: number | undefined; + fallbackCacheGroup?: { + chunks?: RegExp | "async" | "all" | "initial" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + } | undefined; + hidePathInfo?: boolean | undefined; + } | undefined; + runtimeChunk?: boolean | "single" | "multiple" | { + name?: string | ((...args: unknown[]) => string | undefined) | undefined; + } | undefined; + removeAvailableModules?: boolean | undefined; + removeEmptyChunks?: boolean | undefined; + realContentHash?: boolean | undefined; + sideEffects?: boolean | "flag" | undefined; + providedExports?: boolean | undefined; + concatenateModules?: boolean | undefined; + innerGraph?: boolean | undefined; + usedExports?: boolean | "global" | undefined; + mangleExports?: boolean | "size" | "deterministic" | undefined; + nodeEnv?: string | false | undefined; + } | undefined; + resolve?: ResolveOptions | undefined; + resolveLoader?: ResolveOptions | undefined; + plugins?: (false | "" | 0 | RspackPluginInstance | RspackPluginFunction | null | undefined)[] | undefined; + devServer?: DevServer | undefined; + builtins?: oldBuiltins.Builtins | undefined; + module?: { + defaultRules?: (false | "" | 0 | "..." | RuleSetRule | null | undefined)[] | undefined; + rules?: (false | "" | 0 | "..." | RuleSetRule | null | undefined)[] | undefined; + parser?: { + asset?: { + dataUrlCondition?: { + maxSize?: number | undefined; + } | undefined; + } | undefined; + css?: { + namedExports?: boolean | undefined; + } | undefined; + "css/auto"?: { + namedExports?: boolean | undefined; + } | undefined; + "css/module"?: { + namedExports?: boolean | undefined; + } | undefined; + javascript?: { + dynamicImportMode?: "eager" | "lazy" | undefined; + dynamicImportPreload?: number | boolean | undefined; + dynamicImportPrefetch?: number | boolean | undefined; + url?: boolean | "relative" | undefined; + } | undefined; + } | Record> | undefined; + generator?: Record> | { + asset?: { + dataUrl?: { + encoding?: false | "base64" | undefined; + mimetype?: string | undefined; + } | ((args_0: { + filename: string; + content: string; + }, ...args_1: unknown[]) => string) | undefined; + filename?: string | undefined; + publicPath?: string | undefined; + } | undefined; + "asset/inline"?: { + dataUrl?: { + encoding?: false | "base64" | undefined; + mimetype?: string | undefined; + } | ((args_0: { + filename: string; + content: string; + }, ...args_1: unknown[]) => string) | undefined; + } | undefined; + "asset/resource"?: { + filename?: string | undefined; + publicPath?: string | undefined; + } | undefined; + css?: { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + } | undefined; + "css/auto"?: { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + localIdentName?: string | undefined; + } | undefined; + "css/module"?: { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + localIdentName?: string | undefined; + } | undefined; + } | undefined; + noParse?: string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined; + } | undefined; + profile?: boolean | undefined; + bail?: boolean | undefined; +}, { + name?: string | undefined; + dependencies?: string[] | undefined; + entry?: string | string[] | Record | ((...args: unknown[]) => string | string[] | Record) | undefined; + output?: { + path?: string | undefined; + clean?: boolean | undefined; + publicPath?: string | undefined; + filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + chunkFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined; + cssFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + cssChunkFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + hotUpdateMainFilename?: string | undefined; + hotUpdateChunkFilename?: string | undefined; + hotUpdateGlobal?: string | undefined; + assetModuleFilename?: string | undefined; + uniqueName?: string | undefined; + chunkLoadingGlobal?: string | undefined; + enabledLibraryTypes?: string[] | undefined; + library?: string | string[] | { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + } | { + type: string; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + } | undefined; + export?: string | string[] | undefined; + name?: string | string[] | { + amd?: string | undefined; + commonjs?: string | undefined; + root?: string | string[] | undefined; + } | undefined; + umdNamedDefine?: boolean | undefined; + } | undefined; + libraryExport?: string | string[] | undefined; + libraryTarget?: string | undefined; + umdNamedDefine?: boolean | undefined; + amdContainer?: string | undefined; + auxiliaryComment?: string | { + amd?: string | undefined; + commonjs?: string | undefined; + commonjs2?: string | undefined; + root?: string | undefined; + } | undefined; + module?: boolean | undefined; + strictModuleExceptionHandling?: boolean | undefined; + strictModuleErrorHandling?: boolean | undefined; + globalObject?: string | undefined; + importFunctionName?: string | undefined; + iife?: boolean | undefined; + wasmLoading?: string | false | undefined; + enabledWasmLoadingTypes?: string[] | undefined; + webassemblyModuleFilename?: string | undefined; + chunkFormat?: string | false | undefined; + chunkLoading?: string | false | undefined; + enabledChunkLoadingTypes?: string[] | undefined; + trustedTypes?: string | true | { + policyName?: string | undefined; + } | undefined; + sourceMapFilename?: string | undefined; + hashDigest?: string | undefined; + hashDigestLength?: number | undefined; + hashFunction?: "md4" | "xxhash64" | undefined; + hashSalt?: string | undefined; + asyncChunks?: boolean | undefined; + workerChunkLoading?: string | false | undefined; + workerWasmLoading?: string | false | undefined; + workerPublicPath?: string | undefined; + scriptType?: false | "module" | "text/javascript" | undefined; + devtoolNamespace?: string | undefined; + devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined; + devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined; + } | undefined; + target?: false | "async-node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | "node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload` | ("async-node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | "node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload`)[] | undefined; + mode?: "none" | "development" | "production" | undefined; + experiments?: { + lazyCompilation?: boolean | undefined; + asyncWebAssembly?: boolean | undefined; + outputModule?: boolean | undefined; + topLevelAwait?: boolean | undefined; + newSplitChunks?: boolean | undefined; + css?: boolean | undefined; + futureDefaults?: boolean | undefined; + rspackFuture?: { + newTreeshaking?: boolean | undefined; + bundlerInfo?: { + version?: string | undefined; + force?: boolean | "version"[] | undefined; + } | undefined; + } | undefined; + } | undefined; + externals?: string | RegExp | Record> | ((args_0: { + context?: string | undefined; + dependencyType?: string | undefined; + request?: string | undefined; + }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record | undefined, args_2: "promise" | "jsonp" | "import" | "amd" | "commonjs" | "commonjs2" | "var" | "module" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: { + context?: string | undefined; + dependencyType?: string | undefined; + request?: string | undefined; + }, ...args_1: unknown[]) => Promise>) | (string | RegExp | Record> | ((args_0: { + context?: string | undefined; + dependencyType?: string | undefined; + request?: string | undefined; + }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record | undefined, args_2: "promise" | "jsonp" | "import" | "amd" | "commonjs" | "commonjs2" | "var" | "module" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: { + context?: string | undefined; + dependencyType?: string | undefined; + request?: string | undefined; + }, ...args_1: unknown[]) => Promise>))[] | undefined; + externalsType?: "promise" | "jsonp" | "import" | "amd" | "commonjs" | "commonjs2" | "var" | "module" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "system" | "script" | "node-commonjs" | undefined; + externalsPresets?: { + node?: boolean | undefined; + web?: boolean | undefined; + webAsync?: boolean | undefined; + electron?: boolean | undefined; + electronMain?: boolean | undefined; + electronPreload?: boolean | undefined; + electronRenderer?: boolean | undefined; + } | undefined; + infrastructureLogging?: { + appendOnly?: boolean | undefined; + colors?: boolean | undefined; + console?: Console | undefined; + debug?: string | boolean | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined; + level?: "none" | "verbose" | "error" | "warn" | "info" | "log" | undefined; + stream?: NodeJS.WritableStream | undefined; + } | undefined; + cache?: boolean | undefined; + context?: string | undefined; + devtool?: false | "eval" | "cheap-source-map" | "cheap-module-source-map" | "source-map" | "inline-cheap-source-map" | "inline-cheap-module-source-map" | "inline-source-map" | "inline-nosources-cheap-source-map" | "inline-nosources-cheap-module-source-map" | "inline-nosources-source-map" | "nosources-cheap-source-map" | "nosources-cheap-module-source-map" | "nosources-source-map" | "hidden-nosources-cheap-source-map" | "hidden-nosources-cheap-module-source-map" | "hidden-nosources-source-map" | "hidden-cheap-source-map" | "hidden-cheap-module-source-map" | "hidden-source-map" | "eval-cheap-source-map" | "eval-cheap-module-source-map" | "eval-source-map" | "eval-nosources-cheap-source-map" | "eval-nosources-cheap-module-source-map" | "eval-nosources-source-map" | undefined; + node?: false | { + __dirname?: boolean | "warn-mock" | "mock" | "eval-only" | undefined; + __filename?: boolean | "warn-mock" | "mock" | "eval-only" | undefined; + global?: boolean | "warn" | undefined; + } | undefined; + ignoreWarnings?: (RegExp | ((args_0: Error, args_1: Compilation, ...args_2: unknown[]) => boolean))[] | undefined; + watchOptions?: { + aggregateTimeout?: number | undefined; + followSymlinks?: boolean | undefined; + ignored?: string | RegExp | string[] | undefined; + poll?: number | boolean | undefined; + stdin?: boolean | undefined; + } | undefined; + watch?: boolean | undefined; + stats?: boolean | "normal" | "none" | "verbose" | "errors-only" | "errors-warnings" | { + all?: boolean | undefined; + preset?: "normal" | "none" | "verbose" | "errors-only" | "errors-warnings" | undefined; + assets?: boolean | undefined; + chunks?: boolean | undefined; + modules?: boolean | undefined; + entrypoints?: boolean | undefined; + chunkGroups?: boolean | undefined; + warnings?: boolean | undefined; + warningsCount?: boolean | undefined; + errors?: boolean | undefined; + errorsCount?: boolean | undefined; + colors?: boolean | undefined; + hash?: boolean | undefined; + version?: boolean | undefined; + reasons?: boolean | undefined; + publicPath?: boolean | undefined; + outputPath?: boolean | undefined; + chunkModules?: boolean | undefined; + chunkRelations?: boolean | undefined; + ids?: boolean | undefined; + timings?: boolean | undefined; + builtAt?: boolean | undefined; + moduleAssets?: boolean | undefined; + modulesSpace?: number | undefined; + nestedModules?: boolean | undefined; + source?: boolean | undefined; + logging?: boolean | "none" | "verbose" | "error" | "warn" | "info" | "log" | undefined; + loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined; + loggingTrace?: boolean | undefined; + runtimeModules?: boolean | undefined; + children?: boolean | undefined; + usedExports?: boolean | undefined; + providedExports?: boolean | undefined; + optimizationBailout?: boolean | undefined; + orphanModules?: boolean | undefined; + } | undefined; + snapshot?: { + module?: { + hash?: boolean | undefined; + timestamp?: boolean | undefined; + } | undefined; + resolve?: { + hash?: boolean | undefined; + timestamp?: boolean | undefined; + } | undefined; + } | undefined; + optimization?: { + moduleIds?: "named" | "deterministic" | undefined; + chunkIds?: "named" | "deterministic" | undefined; + minimize?: boolean | undefined; + minimizer?: (false | "" | 0 | "..." | RspackPluginInstance | RspackPluginFunction | null | undefined)[] | undefined; + mergeDuplicateChunks?: boolean | undefined; + splitChunks?: false | { + chunks?: RegExp | "async" | "all" | "initial" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined; + defaultSizeTypes?: string[] | undefined; + minChunks?: number | undefined; + name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + cacheGroups?: Record boolean) | undefined; + defaultSizeTypes?: string[] | undefined; + minChunks?: number | undefined; + name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + test?: string | RegExp | ((args_0: Module, ...args_1: unknown[]) => unknown) | undefined; + priority?: number | undefined; + enforce?: boolean | undefined; + filename?: string | undefined; + reuseExistingChunk?: boolean | undefined; + type?: string | RegExp | undefined; + idHint?: string | undefined; + }> | undefined; + maxAsyncRequests?: number | undefined; + maxInitialRequests?: number | undefined; + fallbackCacheGroup?: { + chunks?: RegExp | "async" | "all" | "initial" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined; + minSize?: number | undefined; + maxSize?: number | undefined; + maxAsyncSize?: number | undefined; + maxInitialSize?: number | undefined; + automaticNameDelimiter?: string | undefined; + } | undefined; + hidePathInfo?: boolean | undefined; + } | undefined; + runtimeChunk?: boolean | "single" | "multiple" | { + name?: string | ((...args: unknown[]) => string | undefined) | undefined; + } | undefined; + removeAvailableModules?: boolean | undefined; + removeEmptyChunks?: boolean | undefined; + realContentHash?: boolean | undefined; + sideEffects?: boolean | "flag" | undefined; + providedExports?: boolean | undefined; + concatenateModules?: boolean | undefined; + innerGraph?: boolean | undefined; + usedExports?: boolean | "global" | undefined; + mangleExports?: boolean | "size" | "deterministic" | undefined; + nodeEnv?: string | false | undefined; + } | undefined; + resolve?: ResolveOptions | undefined; + resolveLoader?: ResolveOptions | undefined; + plugins?: (false | "" | 0 | RspackPluginInstance | RspackPluginFunction | null | undefined)[] | undefined; + devServer?: DevServer | undefined; + builtins?: oldBuiltins.Builtins | undefined; + module?: { + defaultRules?: (false | "" | 0 | "..." | RuleSetRule | null | undefined)[] | undefined; + rules?: (false | "" | 0 | "..." | RuleSetRule | null | undefined)[] | undefined; + parser?: { + asset?: { + dataUrlCondition?: { + maxSize?: number | undefined; + } | undefined; + } | undefined; + css?: { + namedExports?: boolean | undefined; + } | undefined; + "css/auto"?: { + namedExports?: boolean | undefined; + } | undefined; + "css/module"?: { + namedExports?: boolean | undefined; + } | undefined; + javascript?: { + dynamicImportMode?: "eager" | "lazy" | undefined; + dynamicImportPreload?: number | boolean | undefined; + dynamicImportPrefetch?: number | boolean | undefined; + url?: boolean | "relative" | undefined; + } | undefined; + } | Record> | undefined; + generator?: Record> | { + asset?: { + dataUrl?: { + encoding?: false | "base64" | undefined; + mimetype?: string | undefined; + } | ((args_0: { + filename: string; + content: string; + }, ...args_1: unknown[]) => string) | undefined; + filename?: string | undefined; + publicPath?: string | undefined; + } | undefined; + "asset/inline"?: { + dataUrl?: { + encoding?: false | "base64" | undefined; + mimetype?: string | undefined; + } | ((args_0: { + filename: string; + content: string; + }, ...args_1: unknown[]) => string) | undefined; + } | undefined; + "asset/resource"?: { + filename?: string | undefined; + publicPath?: string | undefined; + } | undefined; + css?: { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + } | undefined; + "css/auto"?: { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + localIdentName?: string | undefined; + } | undefined; + "css/module"?: { + exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined; + exportsOnly?: boolean | undefined; + localIdentName?: string | undefined; + } | undefined; + } | undefined; + noParse?: string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined; + } | undefined; + profile?: boolean | undefined; + bail?: boolean | undefined; +}>; + +// @public (undocumented) +class RspackOptionsApply { + constructor(); + // (undocumented) + process(options: RspackOptionsNormalized, compiler: Compiler): void; +} +export { RspackOptionsApply } +export { RspackOptionsApply as WebpackOptionsApply } + +// @public (undocumented) +export interface RspackOptionsNormalized { + // (undocumented) + bail?: Bail; + // (undocumented) + builtins: Builtins; + // (undocumented) + cache?: CacheOptions; + // (undocumented) + context?: Context; + // (undocumented) + dependencies?: Dependencies; + // (undocumented) + devServer?: DevServer; + // (undocumented) + devtool?: DevTool; + // (undocumented) + entry: EntryNormalized; + // (undocumented) + experiments: ExperimentsNormalized; + // (undocumented) + externals?: Externals; + // (undocumented) + externalsPresets: ExternalsPresets; + // (undocumented) + externalsType?: ExternalsType; + // (undocumented) + ignoreWarnings?: IgnoreWarningsNormalized; + // (undocumented) + infrastructureLogging: InfrastructureLogging; + // (undocumented) + mode?: Mode; + // (undocumented) + module: ModuleOptionsNormalized; + // (undocumented) + name?: Name; + // (undocumented) + node: Node_2; + // (undocumented) + optimization: Optimization; + // (undocumented) + output: OutputNormalized; + // (undocumented) + plugins: Plugins; + // (undocumented) + profile?: Profile; + // (undocumented) + resolve: Resolve; + // (undocumented) + resolveLoader: Resolve; + // (undocumented) + snapshot: SnapshotOptions; + // (undocumented) + stats: StatsValue; + // (undocumented) + target?: Target; + // (undocumented) + watch?: Watch; + // (undocumented) + watchOptions: WatchOptions; +} + +// @public (undocumented) +export type RspackPluginFunction = (this: Compiler, compiler: Compiler) => void; + +// @public (undocumented) +export interface RspackPluginInstance { + // (undocumented) + [k: string]: any; + // (undocumented) + apply: (compiler: Compiler) => void; +} + +// @public (undocumented) +export const rspackVersion: any; + +// Warning: (ae-forgotten-export) The symbol "baseRuleSetCondition" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type RuleSetCondition = z.infer | RuleSetConditions | RuleSetLogicalConditions; + +// @public (undocumented) +export type RuleSetConditions = RuleSetCondition[]; + +// Warning: (ae-forgotten-export) The symbol "ruleSetLoader" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type RuleSetLoader = z.infer; + +// Warning: (ae-forgotten-export) The symbol "ruleSetLoaderOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type RuleSetLoaderOptions = z.infer; + +// Warning: (ae-forgotten-export) The symbol "ruleSetLoaderWithOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type RuleSetLoaderWithOptions = z.infer; + +// @public (undocumented) +export type RuleSetLogicalConditions = { + and?: RuleSetConditions; + or?: RuleSetConditions; + not?: RuleSetCondition; +}; + +// Warning: (ae-forgotten-export) The symbol "baseRuleSetRule" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type RuleSetRule = z.infer & { + oneOf?: RuleSetRule[]; + rules?: RuleSetRule[]; +}; + +// Warning: (ae-forgotten-export) The symbol "ruleSetRules" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type RuleSetRules = z.infer; + +// Warning: (ae-forgotten-export) The symbol "ruleSetUse" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type RuleSetUse = z.infer; + +// Warning: (ae-forgotten-export) The symbol "ruleSetUseItem" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type RuleSetUseItem = z.infer; + +// @public +export const RuntimeGlobals: { + readonly require: "__webpack_require__"; + readonly requireScope: "__webpack_require__.*"; + readonly exports: "__webpack_exports__"; + readonly thisAsExports: "top-level-this-exports"; + readonly returnExportsFromRuntime: "return-exports-from-runtime"; + readonly module: "module"; + readonly moduleId: "module.id"; + readonly moduleLoaded: "module.loaded"; + readonly publicPath: "__webpack_require__.p"; + readonly entryModuleId: "__webpack_require__.s"; + readonly moduleCache: "__webpack_require__.c"; + readonly moduleFactories: "__webpack_require__.m"; + readonly moduleFactoriesAddOnly: "__webpack_require__.m (add only)"; + readonly ensureChunk: "__webpack_require__.e"; + readonly ensureChunkHandlers: "__webpack_require__.f"; + readonly ensureChunkIncludeEntries: "__webpack_require__.f (include entries)"; + readonly prefetchChunk: "__webpack_require__.E"; + readonly prefetchChunkHandlers: "__webpack_require__.F"; + readonly preloadChunk: "__webpack_require__.G"; + readonly preloadChunkHandlers: "__webpack_require__.H"; + readonly definePropertyGetters: "__webpack_require__.d"; + readonly makeNamespaceObject: "__webpack_require__.r"; + readonly createFakeNamespaceObject: "__webpack_require__.t"; + readonly compatGetDefaultExport: "__webpack_require__.n"; + readonly harmonyModuleDecorator: "__webpack_require__.hmd"; + readonly nodeModuleDecorator: "__webpack_require__.nmd"; + readonly getFullHash: "__webpack_require__.h"; + readonly wasmInstances: "__webpack_require__.w"; + readonly instantiateWasm: "__webpack_require__.v"; + readonly uncaughtErrorHandler: "__webpack_require__.oe"; + readonly scriptNonce: "__webpack_require__.nc"; + readonly loadScript: "__webpack_require__.l"; + readonly createScript: "__webpack_require__.ts"; + readonly createScriptUrl: "__webpack_require__.tu"; + readonly getTrustedTypesPolicy: "__webpack_require__.tt"; + readonly hasFetchPriority: "has fetch priority"; + readonly chunkName: "__webpack_require__.cn"; + readonly runtimeId: "__webpack_require__.j"; + readonly getChunkScriptFilename: "__webpack_require__.u"; + readonly getChunkCssFilename: "__webpack_require__.k"; + readonly hasCssModules: "has css modules"; + readonly getChunkUpdateScriptFilename: "__webpack_require__.hu"; + readonly getChunkUpdateCssFilename: "__webpack_require__.hk"; + readonly startup: "__webpack_require__.x"; + readonly startupNoDefault: "__webpack_require__.x (no default handler)"; + readonly startupOnlyAfter: "__webpack_require__.x (only after)"; + readonly startupOnlyBefore: "__webpack_require__.x (only before)"; + readonly chunkCallback: "webpackChunk"; + readonly startupEntrypoint: "__webpack_require__.X"; + readonly onChunksLoaded: "__webpack_require__.O"; + readonly externalInstallChunk: "__webpack_require__.C"; + readonly interceptModuleExecution: "__webpack_require__.i"; + readonly global: "__webpack_require__.g"; + readonly shareScopeMap: "__webpack_require__.S"; + readonly initializeSharing: "__webpack_require__.I"; + readonly currentRemoteGetScope: "__webpack_require__.R"; + readonly getUpdateManifestFilename: "__webpack_require__.hmrF"; + readonly hmrDownloadManifest: "__webpack_require__.hmrM"; + readonly hmrDownloadUpdateHandlers: "__webpack_require__.hmrC"; + readonly hmrModuleData: "__webpack_require__.hmrD"; + readonly hmrInvalidateModuleHandlers: "__webpack_require__.hmrI"; + readonly hmrRuntimeStatePrefix: "__webpack_require__.hmrS"; + readonly amdDefine: "__webpack_require__.amdD"; + readonly amdOptions: "__webpack_require__.amdO"; + readonly system: "__webpack_require__.System"; + readonly hasOwnProperty: "__webpack_require__.o"; + readonly systemContext: "__webpack_require__.y"; + readonly baseURI: "__webpack_require__.b"; + readonly relativeUrl: "__webpack_require__.U"; + readonly asyncModule: "__webpack_require__.a"; +}; + +// Warning: (ae-forgotten-export) The symbol "scriptType" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ScriptType = z.infer; + +// @public (undocumented) +export type Shared = (SharedItem | SharedObject)[] | SharedObject; + +// @public (undocumented) +export type SharedConfig = { + eager?: boolean; + import?: false | SharedItem; + packageName?: string; + requiredVersion?: false | string; + shareKey?: string; + shareScope?: string; + singleton?: boolean; + strictVersion?: boolean; + version?: false | string; +}; + +// @public (undocumented) +export type SharedItem = string; + +// @public (undocumented) +export type SharedObject = { + [k: string]: SharedConfig | SharedItem; +}; + +// @public (undocumented) +export type SharePluginOptions = { + shareScope?: string; + shared: Shared; + enhanced: boolean; +}; + +// @public (undocumented) +export const sharing: { + ProvideSharedPlugin: typeof ProvideSharedPlugin; + ConsumeSharedPlugin: typeof ConsumeSharedPlugin; + SharePlugin: typeof SharePlugin; +}; + +// Warning: (ae-forgotten-export) The symbol "snapshotOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type SnapshotOptions = z.infer; + +// @public (undocumented) +export const SourceMapDevToolPlugin: { + new (options: SourceMapDevToolPluginOptions): { + name: BuiltinPluginName; + _options: RawSourceMapDevToolPluginOptions; + affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined; + raw(): BuiltinPlugin; + apply(compiler: Compiler_2): void; + }; +}; + +// @public (undocumented) +export interface SourceMapDevToolPluginOptions extends Omit { + // Warning: (ae-forgotten-export) The symbol "Rules_2" needs to be exported by the entry point index.d.ts + // + // (undocumented) + exclude?: Rules_2; + // (undocumented) + include?: Rules_2; + // (undocumented) + test?: Rules_2; +} + +// Warning: (ae-forgotten-export) The symbol "sourceMapFilename" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type SourceMapFilename = z.infer; + +// @public (undocumented) +export const sources: any; + +// @public (undocumented) +export class Stats { + constructor(compilation: Compilation); + // (undocumented) + compilation: Compilation; + // (undocumented) + hasErrors(): boolean; + // (undocumented) + get hash(): string | null; + // (undocumented) + hasWarnings(): boolean; + // (undocumented) + toJson(opts?: StatsValue, forToString?: boolean): StatsCompilation; + // (undocumented) + toString(opts?: StatsValue): string; +} + +// Warning: (ae-forgotten-export) The symbol "KnownStatsAsset" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type StatsAsset = KnownStatsAsset & Record; + +// Warning: (ae-forgotten-export) The symbol "KnownStatsChunk" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type StatsChunk = KnownStatsChunk & Record; + +// Warning: (ae-forgotten-export) The symbol "KnownStatsCompilation" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type StatsCompilation = KnownStatsCompilation & Record; + +// @public (undocumented) +export type StatsError = binding.JsStatsError & Record; + +// Warning: (ae-forgotten-export) The symbol "KnownStatsModule" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type StatsModule = KnownStatsModule & Record; + +// Warning: (ae-forgotten-export) The symbol "statsOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type StatsOptions = z.infer; + +// Warning: (ae-forgotten-export) The symbol "statsValue" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type StatsValue = z.infer; + +// @public (undocumented) +export type StatsWarnings = binding.JsStatsWarning & Record; + +// Warning: (ae-forgotten-export) The symbol "strictModuleErrorHandling" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type StrictModuleErrorHandling = z.infer; + +// Warning: (ae-forgotten-export) The symbol "strictModuleExceptionHandling" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type StrictModuleExceptionHandling = z.infer; + +// @public (undocumented) +export const SwcCssMinimizerRspackPlugin: { + new (options?: any): { + name: BuiltinPluginName; + _options: undefined; + affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined; + raw(): BuiltinPlugin; + apply(compiler: Compiler_2): void; + }; +}; + +// @public (undocumented) +export const SwcJsMinimizerRspackPlugin: { + new (options?: SwcJsMinimizerRspackPluginOptions | undefined): { + name: BuiltinPluginName; + _options: RawSwcJsMinimizerRspackPluginOptions; + affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined; + raw(): BuiltinPlugin; + apply(compiler: Compiler_2): void; + }; +}; + +// @public (undocumented) +export type SwcJsMinimizerRspackPluginOptions = { + passes?: number; + dropConsole?: boolean; + pureFuncs?: Array; + keepClassNames?: boolean; + keepFnNames?: boolean; + comments?: false | "all" | "some"; + asciiOnly?: boolean; + extractComments?: ExtractCommentsOptions | undefined; + compress?: TerserCompressOptions | boolean; + mangle?: TerserMangleOptions | boolean; + format?: JsFormatOptions & ToSnakeCaseProperties; + module?: boolean; + test?: MinifyConditions; + exclude?: MinifyConditions; + include?: MinifyConditions; +}; + +// Warning: (ae-forgotten-export) The symbol "target" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Target = z.infer; + +// @public (undocumented) +export const Template: any; + +// Warning: (ae-forgotten-export) The symbol "trustedTypes" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type TrustedTypes = z.infer; + +// Warning: (ae-forgotten-export) The symbol "umdNamedDefine" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type UmdNamedDefine = z.infer; + +// Warning: (ae-forgotten-export) The symbol "uniqueName" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type UniqueName = z.infer; + +// @public (undocumented) +export const util: { + createHash: (algorithm: any) => any; + cleverMerge: (first: T, second: O) => T | O | (T & O); +}; + +// @public (undocumented) +export const version: any; + +// Warning: (ae-forgotten-export) The symbol "Wasm" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export const wasm: Wasm; + +// Warning: (ae-forgotten-export) The symbol "wasmLoading" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type WasmLoading = z.infer; + +// Warning: (ae-forgotten-export) The symbol "wasmLoadingType" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type WasmLoadingType = z.infer; + +// Warning: (ae-forgotten-export) The symbol "watch" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type Watch = z.infer; + +// @public (undocumented) +export class Watching { + constructor(compiler: Compiler, watchOptions: WatchOptions, handler: (error?: Error, stats?: Stats) => void); + // (undocumented) + blocked: boolean; + // (undocumented) + callbacks: Callback_2[]; + // (undocumented) + close(callback?: () => void): void; + // (undocumented) + compiler: Compiler; + // (undocumented) + handler: (error?: Error, stats?: Stats) => void; + // (undocumented) + invalid: boolean; + // (undocumented) + invalidate(callback?: Callback_2): void; + // (undocumented) + isBlocked?: () => boolean; + // (undocumented) + lastWatcherStartTime: number; + // (undocumented) + onChange?: () => void; + // (undocumented) + onInvalid?: () => void; + // (undocumented) + pausedWatcher?: Watcher; + // (undocumented) + resume(): void; + // (undocumented) + running: boolean; + // (undocumented) + startTime?: number; + // (undocumented) + suspend(): void; + // (undocumented) + suspended: boolean; + // (undocumented) + watch(files: Iterable, dirs: Iterable, missing: Iterable): void; + // Warning: (ae-forgotten-export) The symbol "Watcher" needs to be exported by the entry point index.d.ts + // + // (undocumented) + watcher?: Watcher; + // (undocumented) + watchOptions: WatchOptions; +} + +// Warning: (ae-forgotten-export) The symbol "watchOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type WatchOptions = z.infer; + +// Warning: (ae-forgotten-export) The symbol "webassemblyModuleFilename" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type WebassemblyModuleFilename = z.infer; + +// @public (undocumented) +export const WebpackError: ErrorConstructor; + +// Warning: (ae-forgotten-export) The symbol "Webworker" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export const webworker: Webworker; + +// Warning: (ae-forgotten-export) The symbol "workerPublicPath" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type WorkerPublicPath = z.infer; + +// Warnings were encountered during analysis: +// +// dist/Compilation.d.ts:66:9 - (ae-forgotten-export) The symbol "liteTapable" needs to be exported by the entry point index.d.ts +// dist/Compilation.d.ts:71:9 - (ae-forgotten-export) The symbol "Module" needs to be exported by the entry point index.d.ts +// dist/Compilation.d.ts:73:9 - (ae-forgotten-export) The symbol "Chunk" needs to be exported by the entry point index.d.ts +// dist/Compilation.d.ts:86:9 - (ae-forgotten-export) The symbol "StatsFactory" needs to be exported by the entry point index.d.ts +// dist/Compilation.d.ts:87:9 - (ae-forgotten-export) The symbol "StatsPrinter" needs to be exported by the entry point index.d.ts +// dist/Compilation.d.ts:89:9 - (ae-forgotten-export) The symbol "ExecuteModuleArgument" needs to be exported by the entry point index.d.ts +// dist/Compilation.d.ts:89:9 - (ae-forgotten-export) The symbol "ExecuteModuleContext" needs to be exported by the entry point index.d.ts +// dist/Compiler.d.ts:82:9 - (ae-forgotten-export) The symbol "AssetEmittedInfo" needs to be exported by the entry point index.d.ts +// dist/MultiCompiler.d.ts:35:9 - (ae-forgotten-export) The symbol "Any" needs to be exported by the entry point index.d.ts +// dist/NormalModuleFactory.d.ts:9:9 - (ae-forgotten-export) The symbol "ResourceDataWithData" needs to be exported by the entry point index.d.ts +// dist/NormalModuleFactory.d.ts:10:9 - (ae-forgotten-export) The symbol "ResolveData" needs to be exported by the entry point index.d.ts +// dist/NormalModuleFactory.d.ts:12:9 - (ae-forgotten-export) The symbol "NormalModuleCreateData" needs to be exported by the entry point index.d.ts +// dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts:40:5 - (ae-forgotten-export) The symbol "ExtractCommentsOptions" needs to be exported by the entry point index.d.ts +// dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts:41:5 - (ae-forgotten-export) The symbol "TerserCompressOptions" needs to be exported by the entry point index.d.ts +// dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts:42:5 - (ae-forgotten-export) The symbol "TerserMangleOptions" needs to be exported by the entry point index.d.ts +// dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts:43:5 - (ae-forgotten-export) The symbol "JsFormatOptions" needs to be exported by the entry point index.d.ts +// dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts:43:5 - (ae-forgotten-export) The symbol "ToSnakeCaseProperties" needs to be exported by the entry point index.d.ts +// dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts:45:5 - (ae-forgotten-export) The symbol "MinifyConditions" needs to be exported by the entry point index.d.ts +// dist/config/adapterRuleUse.d.ts:145:5 - (ae-forgotten-export) The symbol "PitchLoaderDefinitionFunction" needs to be exported by the entry point index.d.ts +// dist/config/zod.d.ts:5264:5 - (ae-forgotten-export) The symbol "oldBuiltins" needs to be exported by the entry point index.d.ts +// dist/exports.d.ts:103:5 - (ae-forgotten-export) The symbol "ContainerPlugin" needs to be exported by the entry point index.d.ts +// dist/exports.d.ts:104:5 - (ae-forgotten-export) The symbol "ContainerReferencePlugin" needs to be exported by the entry point index.d.ts +// dist/exports.d.ts:105:5 - (ae-forgotten-export) The symbol "ModuleFederationPlugin" needs to be exported by the entry point index.d.ts +// dist/exports.d.ts:106:5 - (ae-forgotten-export) The symbol "ModuleFederationPluginV1" needs to be exported by the entry point index.d.ts +// dist/exports.d.ts:115:5 - (ae-forgotten-export) The symbol "ProvideSharedPlugin" needs to be exported by the entry point index.d.ts +// dist/exports.d.ts:116:5 - (ae-forgotten-export) The symbol "ConsumeSharedPlugin" needs to be exported by the entry point index.d.ts +// dist/exports.d.ts:117:5 - (ae-forgotten-export) The symbol "SharePlugin" needs to be exported by the entry point index.d.ts + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/rspack/tests/configCases/container-1-5/2-container-full/index.js b/packages/rspack/tests/configCases/container-1-5/2-container-full/index.js index 9e3bcaf5e14..e9d00676e5b 100644 --- a/packages/rspack/tests/configCases/container-1-5/2-container-full/index.js +++ b/packages/rspack/tests/configCases/container-1-5/2-container-full/index.js @@ -1,6 +1,3 @@ -let warnings = []; -let oldWarn; - // clean federation globals from previous executions if (globalThis.__FEDERATION__) { globalThis.__GLOBAL_LOADING_REMOTE_ENTRY__ = {}; @@ -14,6 +11,9 @@ if (globalThis.__FEDERATION__) { globalThis.__FEDERATION__.__INSTANCES__ = []; } +let warnings = []; +let oldWarn; + beforeEach(done => { oldWarn = console.warn; console.warn = m => warnings.push(m);