import { Compilation, sources } from 'webpack'; import { IXhsCompiler } from 'xhs-mp-pack'; import { IPresetOptions } from '../../../../types'; type SourceMapSourceType = sources.SourceMapSource; type RawSourceType = sources.RawSource; type ConcatSourceType = sources.ConcatSource; type GeneratedSource = SourceMapSourceType | RawSourceType | ConcatSourceType; declare class ServiceChunkPlugin { options: IPresetOptions; constructor(options: IPresetOptions); apply(compiler: IXhsCompiler): void; updateMainService(compilation: Compilation, wrappedRuntimeSource: GeneratedSource, packSetting: any, project: any, assetName: string, commonSourceName: string): void; updateIndependentService(compilation: Compilation, wrappedRuntimeSource: GeneratedSource, type: 'v1' | 'v2'): void; updateNonIndependentService(compilation: Compilation, type: 'v1' | 'v2'): void; } export default ServiceChunkPlugin;