import { Readable } from 'node:stream'; import type { StatsCompilation } from 'webpack'; /** * A readable stream that serializes a StatsCompilation object into a string representation. */ export declare class StatsSerializeStream extends Readable { private indentLevel; private stringifier; /** * Creates an instance of StatsSerializeStream. * @param stats - The StatsCompilation object to be serialized. */ constructor(stats: StatsCompilation); /** * Gets the indentation string based on the current indent level. */ get indent(): string; /** * Implements the _read method required by the Readable stream. */ _read(): void; /** * Generator function that recursively converts an object into a string representation. * @param obj - The object to be serialized. */ _stringify(obj: StatsCompilation): any; } export declare const writeStats: (stats: StatsCompilation, filepath: string) => Promise;