import webpack, { Compilation, WebpackPluginInstance } from 'webpack'; type InnerCallback = (error?: E | null | false, result?: T) => void; type InitEntryOptions = { /**在src目录下生成的临时文件夹名称*/ cacheDirName?: string; redux?: boolean | string; queryClient?: boolean; }; /** * 对项目入口文件进行自动生成,取决于是否拥有入口文件 */ declare class InitEntry implements WebpackPluginInstance { globalCss: boolean; rootDir: string; tempDir: string; entryCSSPath: string; entryJSPath: string; globalCSSPath: string; initGlobalCSSContent: string; redux: boolean | string; queryClient: boolean; constructor({ cacheDirName, redux, queryClient }?: InitEntryOptions); apply(compiler: webpack.Compiler): void; updateInitCSS: () => void; init(): void; emitHandle: (compilation: webpack.Compilation, callback: InnerCallback) => void; } export default InitEntry;