eigent/package/@stackframe/stack-shared/dist/utils/node-http.d.mts
2025-08-12 01:16:39 +02:00

15 lines
525 B
TypeScript

import { IncomingMessage, ServerResponse } from 'http';
declare class ServerResponseWithBodyChunks extends ServerResponse {
bodyChunks: Uint8Array[];
_send(data: string, encoding: BufferEncoding, callback?: (() => void) | null, byteLength?: number): void;
}
declare function createNodeHttpServerDuplex(options: {
method: string;
originalUrl?: URL;
url: URL;
headers: Headers;
body: Uint8Array;
}): Promise<[IncomingMessage, ServerResponseWithBodyChunks]>;
export { createNodeHttpServerDuplex };