securityos/node_modules/next/dist/server/body-streams.d.ts

13 lines
516 B
TypeScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
/// <reference types="node" />
/// <reference types="node" />
import type { IncomingMessage } from 'http';
import type { Readable } from 'stream';
export declare function requestToBodyStream(context: {
ReadableStream: typeof ReadableStream;
}, KUint8Array: typeof Uint8Array, stream: Readable): ReadableStream<any>;
export interface CloneableBody {
finalize(): Promise<void>;
cloneBodyStream(): Readable;
}
export declare function getCloneableBody<T extends IncomingMessage>(readable: T): CloneableBody;