export = MiniCssExtractPlugin; declare class MiniCssExtractPlugin { /** * @param {Compiler["webpack"]} webpack * @returns {CssModuleConstructor} */ static getCssModule(webpack: Compiler["webpack"]): CssModuleConstructor; /** * @param {Compiler["webpack"]} webpack * @returns {CssDependencyConstructor} */ static getCssDependency( webpack: Compiler["webpack"] ): CssDependencyConstructor; /** * Returns all hooks for the given compilation * @param {Compilation} compilation */ static getCompilationHooks( compilation: Compilation ): MiniCssExtractPluginCompilationHooks; /** * @param {PluginOptions} [options] */ constructor(options?: PluginOptions | undefined); /** * @private * @type {WeakMap>} * @private */ private _sortedModulesCache; /** * @private * @type {NormalizedPluginOptions} */ private options; /** * @private * @type {RuntimeOptions} */ private runtimeOptions; /** * @param {Compiler} compiler */ apply(compiler: Compiler): void; /** * @private * @param {Chunk} chunk * @param {ChunkGraph} chunkGraph * @returns {Iterable} */ private getChunkModules; /** * @private * @param {Compilation} compilation * @param {Chunk} chunk * @param {CssModule[]} modules * @param {Compilation["requestShortener"]} requestShortener * @returns {Set} */ private sortModules; /** * @private * @param {Compiler} compiler * @param {Compilation} compilation * @param {Chunk} chunk * @param {CssModule[]} modules * @param {Compiler["requestShortener"]} requestShortener * @param {string} filenameTemplate * @param {Parameters['output']['filename'], string | undefined>>[0]} pathData * @returns {Source} */ private renderContentAsset; } declare namespace MiniCssExtractPlugin { export { pluginName, pluginSymbol, loader, Schema, Compiler, Compilation, ChunkGraph, Chunk, ChunkGroup, Module, Dependency, Source, Configuration, WebpackError, AssetInfo, LoaderDependency, LoaderOptions, PluginOptions, NormalizedPluginOptions, RuntimeOptions, TODO, CssModule, CssModuleDependency, CssModuleConstructor, CssDependency, CssDependencyOptions, CssDependencyConstructor, VarNames, MiniCssExtractPluginCompilationHooks, }; } type Compiler = import("webpack").Compiler; type CssModuleConstructor = new (dependency: CssModuleDependency) => CssModule; type CssDependencyConstructor = new ( loaderDependency: CssDependencyOptions, context: string | null, identifierIndex: number ) => CssDependency; type Compilation = import("webpack").Compilation; type MiniCssExtractPluginCompilationHooks = { beforeTagInsert: import("tapable").SyncWaterfallHook< [string, VarNames], string >; }; type PluginOptions = { filename?: Required["output"]["filename"]; chunkFilename?: Required["output"]["chunkFilename"]; ignoreOrder?: boolean | undefined; insert?: string | ((linkTag: HTMLLinkElement) => void) | undefined; attributes?: Record | undefined; linkType?: string | false | undefined; runtime?: boolean | undefined; experimentalUseImportModule?: boolean | undefined; }; /** @typedef {import("schema-utils/declarations/validate").Schema} Schema */ /** @typedef {import("webpack").Compiler} Compiler */ /** @typedef {import("webpack").Compilation} Compilation */ /** @typedef {import("webpack").ChunkGraph} ChunkGraph */ /** @typedef {import("webpack").Chunk} Chunk */ /** @typedef {Parameters[0]} ChunkGroup */ /** @typedef {import("webpack").Module} Module */ /** @typedef {import("webpack").Dependency} Dependency */ /** @typedef {import("webpack").sources.Source} Source */ /** @typedef {import("webpack").Configuration} Configuration */ /** @typedef {import("webpack").WebpackError} WebpackError */ /** @typedef {import("webpack").AssetInfo} AssetInfo */ /** @typedef {import("./loader.js").Dependency} LoaderDependency */ /** * @typedef {Object} LoaderOptions * @property {string | ((resourcePath: string, rootContext: string) => string)} [publicPath] * @property {boolean} [emit] * @property {boolean} [esModule] * @property {string} [layer] */ /** * @typedef {Object} PluginOptions * @property {Required['output']['filename']} [filename] * @property {Required['output']['chunkFilename']} [chunkFilename] * @property {boolean} [ignoreOrder] * @property {string | ((linkTag: HTMLLinkElement) => void)} [insert] * @property {Record} [attributes] * @property {string | false | 'text/css'} [linkType] * @property {boolean} [runtime] * @property {boolean} [experimentalUseImportModule] */ /** * @typedef {Object} NormalizedPluginOptions * @property {Required['output']['filename']} filename * @property {Required['output']['chunkFilename']} [chunkFilename] * @property {boolean} ignoreOrder * @property {string | ((linkTag: HTMLLinkElement) => void)} [insert] * @property {Record} [attributes] * @property {string | false | 'text/css'} [linkType] * @property {boolean} runtime * @property {boolean} [experimentalUseImportModule] */ /** * @typedef {Object} RuntimeOptions * @property {string | ((linkTag: HTMLLinkElement) => void) | undefined} insert * @property {string | false | 'text/css'} linkType * @property {Record | undefined} attributes */ /** @typedef {any} TODO */ declare const pluginName: "mini-css-extract-plugin"; declare const pluginSymbol: unique symbol; declare var loader: string; type Schema = import("schema-utils/declarations/validate").Schema; type ChunkGraph = import("webpack").ChunkGraph; type Chunk = import("webpack").Chunk; type ChunkGroup = Parameters[0]; type Module = import("webpack").Module; type Dependency = import("webpack").Dependency; type Source = import("webpack").sources.Source; type Configuration = import("webpack").Configuration; type WebpackError = import("webpack").WebpackError; type AssetInfo = import("webpack").AssetInfo; type LoaderDependency = import("./loader.js").Dependency; type LoaderOptions = { publicPath?: | string | ((resourcePath: string, rootContext: string) => string) | undefined; emit?: boolean | undefined; esModule?: boolean | undefined; layer?: string | undefined; }; type NormalizedPluginOptions = { filename: Required["output"]["filename"]; chunkFilename?: Required["output"]["chunkFilename"]; ignoreOrder: boolean; insert?: string | ((linkTag: HTMLLinkElement) => void) | undefined; attributes?: Record | undefined; linkType?: string | false | undefined; runtime: boolean; experimentalUseImportModule?: boolean | undefined; }; type RuntimeOptions = { insert: string | ((linkTag: HTMLLinkElement) => void) | undefined; linkType: string | false | "text/css"; attributes: Record | undefined; }; type TODO = any; type CssModule = import("webpack").Module & { content: Buffer; media?: string | undefined; sourceMap?: Buffer | undefined; supports?: string | undefined; layer?: string | undefined; assets?: | { [key: string]: any; } | undefined; assetsInfo?: Map | undefined; }; type CssModuleDependency = { context: string | null; identifier: string; identifierIndex: number; content: Buffer; sourceMap?: Buffer | undefined; media?: string | undefined; supports?: string | undefined; layer?: TODO; assetsInfo?: Map | undefined; assets?: | { [key: string]: any; } | undefined; }; type CssDependency = Dependency & CssModuleDependency; type CssDependencyOptions = Omit; type VarNames = { tag: string; chunkId: string; href: string; resolve: string; reject: string; };