import type { Rule } from 'webpack-chain'; import type { Saber } from '.'; export declare class WebpackUtils { api: Saber; constructor(api: Saber); get shouldCache(): boolean; getCacheOptions(loader: string, obj: object): { cacheDirectory: string; cacheIdentifier: string; } | { cacheDirectory?: undefined; cacheIdentifier?: undefined; }; addCacheSupport(rule: Rule, loader: string, obj: object): void; }