declare const rspackVersion: string; declare const version: string; export type { Asset, AssetInfo, Assets, ChunkPathData, CompilationParams, LogEntry, PathData, } from './Compilation.js'; export { Compilation } from './Compilation.js'; export { Compiler, type CompilerHooks } from './Compiler.js'; export type { MultiCompilerOptions, MultiRspackOptions } from './MultiCompiler.js'; export { MultiCompiler } from './MultiCompiler.js'; export { rspackVersion, version }; import { RspackOptionsApply } from './rspackOptionsApply.js'; export type { ChunkGroup } from '@rspack/binding'; export { AsyncDependenciesBlock, Dependency, EntryDependency, } from '@rspack/binding'; export type { Chunk } from './Chunk.js'; export { ConcatenatedModule } from './ConcatenatedModule.js'; export { ContextModule } from './ContextModule.js'; export { ExternalModule } from './ExternalModule.js'; export type { ResolveData, ResourceDataWithData } from './Module.js'; export { Module } from './Module.js'; export type { default as ModuleGraph } from './ModuleGraph.js'; export { ModuleGraphConnection, type ConnectionState, } from './ModuleGraphConnection.js'; export { MultiStats } from './MultiStats.js'; export { NormalModule } from './NormalModule.js'; export type { NormalModuleFactory } from './NormalModuleFactory.js'; export { type RspackError, type RspackSeverity, ValidationError, } from './RspackError.js'; export { RuntimeGlobals } from './RuntimeGlobals.js'; export { RuntimeModule } from './RuntimeModule.js'; export type { StatsAsset, StatsChunk, StatsCompilation, StatsError, StatsModule, } from './Stats.js'; export { Stats } from './Stats.js'; export { StatsErrorCode } from './stats/statsFactoryUtils.js'; export { RspackOptionsApply, RspackOptionsApply as WebpackOptionsApply }; import * as ModuleFilenameHelpers from './lib/ModuleFilenameHelpers.js'; export { Template } from './Template.js'; export { ModuleFilenameHelpers }; export declare const WebpackError: ErrorConstructor; export type { Watching } from './Watching.js'; import * as sources from '../compiled/webpack-sources/types.js'; export { sources }; import { applyRspackOptionsDefaults, getNormalizedRspackOptions } from './config/index.js'; type Config = { getNormalizedRspackOptions: typeof getNormalizedRspackOptions; applyRspackOptionsDefaults: typeof applyRspackOptionsDefaults; getNormalizedWebpackOptions: typeof getNormalizedRspackOptions; applyWebpackOptionsDefaults: typeof applyRspackOptionsDefaults; }; export declare const config: Config; export type * from './config/index.js'; export declare const util: { createHash: (algorithm: 'xxhash64' | 'md4' | 'native-md4' | (string & {}) | (new () => import("./util/hash/index.js").default)) => import("./util/hash/index.js").default; cleverMerge: (first: First, second: Second) => First | Second | (First & Second); }; export type { BannerPluginArgument, DefinePluginOptions, EntryOptions, ProgressPluginHandlerInfo, ProgressPluginOptions, ProvidePluginOptions, } from './builtin-plugin/index.js'; export { BannerPlugin, CaseSensitivePlugin, DefinePlugin, DynamicEntryPlugin, EntryPlugin, ExternalsPlugin, HotModuleReplacementPlugin, IgnorePlugin, type IgnorePluginOptions, NoEmitOnErrorsPlugin, ProgressPlugin, ProvidePlugin, RuntimePlugin, } from './builtin-plugin/index.js'; export { DllPlugin, type DllPluginOptions } from './lib/DllPlugin.js'; export { DllReferencePlugin, type DllReferencePluginOptions, type DllReferencePluginOptionsContent, type DllReferencePluginOptionsManifest, type DllReferencePluginOptionsSourceType, } from './lib/DllReferencePlugin.js'; export { default as EntryOptionPlugin } from './lib/EntryOptionPlugin.js'; export { EnvironmentPlugin } from './lib/EnvironmentPlugin.js'; export { LoaderOptionsPlugin } from './lib/LoaderOptionsPlugin.js'; export { LoaderTargetPlugin } from './lib/LoaderTargetPlugin.js'; export type { OutputFileSystem, WatchFileSystem } from './util/fs.js'; import { FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, rsc, SubresourceIntegrityPlugin } from './builtin-plugin/index.js'; import JsonpTemplatePlugin from './web/JsonpTemplatePlugin.js'; export { SubresourceIntegrityPlugin }; interface Web { FetchCompileAsyncWasmPlugin: typeof FetchCompileAsyncWasmPlugin; JsonpTemplatePlugin: typeof JsonpTemplatePlugin; } export declare const web: Web; import { NodeTargetPlugin } from './builtin-plugin/index.js'; import NodeEnvironmentPlugin from './node/NodeEnvironmentPlugin.js'; import NodeTemplatePlugin from './node/NodeTemplatePlugin.js'; interface Node { NodeTargetPlugin: typeof NodeTargetPlugin; NodeTemplatePlugin: typeof NodeTemplatePlugin; NodeEnvironmentPlugin: typeof NodeEnvironmentPlugin; } export { lazyCompilationMiddleware }; export declare const node: Node; import { ElectronTargetPlugin } from './builtin-plugin/index.js'; interface Electron { ElectronTargetPlugin: typeof ElectronTargetPlugin; } export declare const electron: Electron; import { HashedModuleIdsPlugin } from './builtin-plugin/index.js'; interface Ids { HashedModuleIdsPlugin: typeof HashedModuleIdsPlugin; } export declare const ids: Ids; import { EnableLibraryPlugin } from './builtin-plugin/index.js'; interface Library { EnableLibraryPlugin: typeof EnableLibraryPlugin; } export declare const library: Library; import { EnableWasmLoadingPlugin } from './builtin-plugin/index.js'; interface Wasm { EnableWasmLoadingPlugin: typeof EnableWasmLoadingPlugin; } export declare const wasm: Wasm; import { EnableChunkLoadingPlugin, JavascriptModulesPlugin } from './builtin-plugin/index.js'; interface JavaScript { EnableChunkLoadingPlugin: typeof EnableChunkLoadingPlugin; JavascriptModulesPlugin: typeof JavascriptModulesPlugin; } export declare const javascript: JavaScript; import WebWorkerTemplatePlugin from './webworker/WebWorkerTemplatePlugin.js'; interface Webworker { WebWorkerTemplatePlugin: typeof WebWorkerTemplatePlugin; } export declare const webworker: Webworker; import { CssChunkingPlugin, LimitChunkCountPlugin, RemoveDuplicateModulesPlugin, RsdoctorPlugin, RslibPlugin, RstestPlugin, RuntimeChunkPlugin, SplitChunksPlugin } from './builtin-plugin/index.js'; interface Optimize { LimitChunkCountPlugin: typeof LimitChunkCountPlugin; RuntimeChunkPlugin: typeof RuntimeChunkPlugin; SplitChunksPlugin: typeof SplitChunksPlugin; } export declare const optimize: Optimize; import { ModuleFederationPlugin } from './container/ModuleFederationPlugin.js'; export type { ModuleFederationPluginOptions } from './container/ModuleFederationPlugin.js'; import { ModuleFederationPluginV1 } from './container/ModuleFederationPluginV1.js'; export type { ModuleFederationPluginV1Options } from './container/ModuleFederationPluginV1.js'; import { ContainerPlugin } from './container/ContainerPlugin.js'; import { ContainerReferencePlugin } from './container/ContainerReferencePlugin.js'; export type { ContainerPluginOptions, Exposes, ExposesConfig, ExposesItem, ExposesItems, ExposesObject, } from './container/ContainerPlugin.js'; export type { ContainerReferencePluginOptions, Remotes, RemotesConfig, RemotesItem, RemotesItems, RemotesObject, } from './container/ContainerReferencePlugin.js'; export declare const container: { ContainerPlugin: typeof ContainerPlugin; ContainerReferencePlugin: typeof ContainerReferencePlugin; ModuleFederationPlugin: typeof ModuleFederationPlugin; ModuleFederationPluginV1: typeof ModuleFederationPluginV1; }; import { ConsumeSharedPlugin } from './sharing/ConsumeSharedPlugin.js'; import { ProvideSharedPlugin } from './sharing/ProvideSharedPlugin.js'; import { SharePlugin } from './sharing/SharePlugin.js'; import { TreeShakingSharedPlugin } from './sharing/TreeShakingSharedPlugin.js'; export type { ConsumeSharedPluginOptions, Consumes, ConsumesConfig, ConsumesItem, ConsumesObject, } from './sharing/ConsumeSharedPlugin.js'; export type { ProvideSharedPluginOptions, Provides, ProvidesConfig, ProvidesItem, ProvidesObject, } from './sharing/ProvideSharedPlugin.js'; export type { Shared, SharedConfig, SharedItem, SharedObject, SharePluginOptions, } from './sharing/SharePlugin.js'; export type { TreeshakingSharedPluginOptions } from './sharing/TreeShakingSharedPlugin.js'; export declare const sharing: { ProvideSharedPlugin: typeof ProvideSharedPlugin; TreeShakingSharedPlugin: typeof TreeShakingSharedPlugin; ConsumeSharedPlugin: typeof ConsumeSharedPlugin; SharePlugin: typeof SharePlugin; }; export type { FeatureOptions as LightningcssFeatureOptions, LoaderOptions as LightningcssLoaderOptions, } from './builtin-loader/lightningcss/index.js'; export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig, } from './builtin-loader/swc/index.js'; export type { CircularDependencyRspackPluginOptions, CopyRspackPluginOptions, CssExtractRspackLoaderOptions, CssExtractRspackPluginOptions, EvalDevToolModulePluginOptions, HtmlRspackPluginOptions, LightningCssMinimizerRspackPluginOptions, RsdoctorPluginData, RsdoctorPluginHooks, SourceMapDevToolPluginOptions, SubresourceIntegrityPluginOptions, SwcJsMinimizerRspackPluginOptions, } from './builtin-plugin/index.js'; export { CircularDependencyRspackPlugin, ContextReplacementPlugin, CopyRspackPlugin, CssExtractRspackPlugin, EvalDevToolModulePlugin, EvalSourceMapDevToolPlugin, HtmlRspackPlugin, LightningCssMinimizerRspackPlugin, NormalModuleReplacementPlugin, SourceMapDevToolPlugin, SwcJsMinimizerRspackPlugin, } from './builtin-plugin/index.js'; import { EnforceExtension, ResolverFactory, async as resolveAsync, sync as resolveSync } from '@rspack/binding'; import { createNativePlugin } from './builtin-plugin/index.js'; import { minify, minifySync, transform, transformSync } from './swc.js'; import { VirtualModulesPlugin } from './VirtualModulesPlugin.js'; interface Experiments { globalTrace: { register: (filter: string, layer: 'logger' | 'perfetto', output: string) => Promise; cleanup: () => Promise; }; RemoveDuplicateModulesPlugin: typeof RemoveDuplicateModulesPlugin; RsdoctorPlugin: typeof RsdoctorPlugin; RstestPlugin: typeof RstestPlugin; RslibPlugin: typeof RslibPlugin; swc: { transform: typeof transform; minify: typeof minify; transformSync: typeof transformSync; minifySync: typeof minifySync; }; resolver: { ResolverFactory: typeof ResolverFactory; EnforceExtension: typeof EnforceExtension; async: typeof resolveAsync; sync: typeof resolveSync; }; CssChunkingPlugin: typeof CssChunkingPlugin; createNativePlugin: typeof createNativePlugin; VirtualModulesPlugin: typeof VirtualModulesPlugin; rsc: typeof rsc; } export declare const experiments: Experiments;