import type { Compiler, RspackPluginInstance, Compilation } from '@rspack/core'; import { FileDescriptor } from './helpers'; import { getCompilerHooks } from './hooks'; export type { FileDescriptor }; export type Manifest = Record; export interface InternalOptions { [key: string]: any; assetHookStage: number; basePath: string; fileName: string; filter: (file: FileDescriptor) => boolean; generate: (seed: Record, files: FileDescriptor[], entries: Record, context: { compilation: Compilation; }) => Manifest; map: (file: FileDescriptor) => FileDescriptor; publicPath: string; removeKeyHash: RegExp | false; seed: Record; serialize: (manifest: Manifest) => string; sort: (fileA: FileDescriptor, fileB: FileDescriptor) => Number; transformExtensions: RegExp; useEntryKeys: boolean; useLegacyEmit: boolean; writeToFileEmit: boolean; } export type ManifestPluginOptions = Partial; export type EmitCountMap = Map; declare class WebpackManifestPlugin implements RspackPluginInstance { private options; constructor(opts: ManifestPluginOptions); apply(compiler: Compiler): void; } export { getCompilerHooks, WebpackManifestPlugin }; export declare const RspackManifestPlugin: typeof WebpackManifestPlugin;