import { Compilation, RawSource, CopyPatterns, Config, ConcatSource, MPPackSetting } from 'xhs-mp-pack'; import { Configuration, WebpackError, library, LoaderContext, EntryOptionPlugin, EntryPlugin } from 'webpack'; import type { Project } from 'xhs-mp-project'; import { IStart } from '../types'; import { FeatureReporter } from 'xhs-mp-shared'; export type ICompilation = any; export type ICompiler = any; export type ILoaderContext = LoaderContext & { _compiler: { project: Project; packSetting: MPPackSetting; reporter: FeatureReporter.IReporter; }; }; export { Compilation, RawSource, ConcatSource, CopyPatterns, Config, Configuration, WebpackError, library, LoaderContext, EntryOptionPlugin, EntryPlugin }; export declare function createPacker(startConfig: IStart): ICompiler;