import * as plugins from './plugins.js'; import * as types from './types.js'; /** * Core Response class that provides a fetch-like API */ export declare class CoreResponse implements types.ICoreResponse { private incomingMessage; private bodyBufferPromise; private consumed; readonly ok: boolean; readonly status: number; readonly statusText: string; readonly headers: plugins.http.IncomingHttpHeaders; readonly url: string; constructor(incomingMessage: plugins.http.IncomingMessage, url: string); /** * Ensures the body can only be consumed once */ private ensureNotConsumed; /** * Collects the body as a buffer */ private collectBody; /** * Parse response as JSON */ json(): Promise; /** * Get response as text */ text(): Promise; /** * Get response as ArrayBuffer */ arrayBuffer(): Promise; /** * Get response as a readable stream */ stream(): NodeJS.ReadableStream; /** * Get the raw IncomingMessage (for legacy compatibility) */ raw(): plugins.http.IncomingMessage; }