import type { Compiler, Stats, StatsCompilation } from 'webpack'; export interface Options { /** * The project root. */ projectCwd?: string; /** * Write Logs to Console * (Always enabled when dry is true) * * default: false */ verbose?: boolean; } export declare class StatsWebpackPlugin { private readonly verbose; private outputPath; private projectCwd; private statsFilename; constructor(options?: Options); apply(compiler: Compiler): void; handleBeforeClean(): void; handleDone(stats: Stats, callback: (error?: Error) => void): Promise; generateStatsFile(stats: StatsCompilation): Promise; }