import type { ReadStream } from 'node:fs'; import type { IncomingMessage, ServerResponse } from 'node:http'; export interface OutputFileSystemLike { readFileSync?: (filePath: string) => Buffer; } interface ActiveCompilerRef { outputPath(): string | undefined; outputFileSystem(): OutputFileSystemLike | undefined; } type ResponseData = Buffer | ReadStream; interface ModifiedResponseData { data: ResponseData; byteLength: number; } export declare function createResponseDataRepair(ref: ActiveCompilerRef): (req: IncomingMessage, res: ServerResponse, data: ResponseData, byteLength: number) => ModifiedResponseData; export {};