import { Jugg } from '..'; export interface IConfigStore { [k: string]: (j: Jugg) => any; } /** * 用于统一管理 webpack 中插件、loader等等的配置项 */ export declare class WebpackOptionsManager { jugg: Jugg; /** * 配置项存储对象 */ store: IConfigStore; /** * 维护的拦截层,用于干涉获取配置项时的值 */ private filters; constructor({ jugg }: { jugg: Jugg; }); /** * 查找对应的配置项 * @param id */ findOpts(id: string): any; /** * 注册配置项 * @param id * @param factory */ register(id: string | IConfigStore, factory?: (j: Jugg) => any): void; /** * 添加拦截器 * @param filter */ addFilter(filter: (id: string, preOpts: any) => any): () => void; } export declare const builtInOptions: IConfigStore;