import * as types from './types.js'; /** * Abstract Core Response class that provides a fetch-like API */ export declare abstract class CoreResponse implements types.ICoreResponse { protected consumed: boolean; abstract readonly ok: boolean; abstract readonly status: number; abstract readonly statusText: string; abstract readonly headers: types.Headers; abstract readonly url: string; /** * Ensures the body can only be consumed once */ protected ensureNotConsumed(): void; /** * Parse response as JSON */ abstract json(): Promise; /** * Get response as text */ abstract text(): Promise; /** * Get response as ArrayBuffer */ abstract arrayBuffer(): Promise; /** * Get response as a web-style ReadableStream */ abstract stream(): ReadableStream | null; }