import type { NativeHeadersType, NativeResponse } from './NativeRequest'; declare const ConcreteNativeResponse: typeof NativeResponse; export type AbortSubscriptionCleanupFunction = () => void; type RNFormData = Awaited>; type UniversalFormData = globalThis.FormData & RNFormData; declare const stateKey: unique symbol; /** * A response implementation for the `fetch.Response` API. */ export declare class FetchResponse extends ConcreteNativeResponse implements Response { private readonly abortCleanupFunction; private [stateKey]; private bodyStreamClosed; private bodyStreamController; private abortReason; constructor(abortCleanupFunction: AbortSubscriptionCleanupFunction); /** * Rejects the pending body read with the abort reason and closes the * teardown guard so late native events are dropped (#34804). Idempotent, * and safe to call before the body stream exists. */ abort(reason?: unknown): void; /** * These helpers run on the native emitter's stack, where a throw reaches the * global handler. The guard can be stale (internal stream errors bypass * `controller.error()`), so check `desiredSize` (null = errored) and catch. */ private closeBodyStream; private errorBodyStream; private enqueueBodyChunk; get _rawHeaders(): NativeHeadersType; get status(): number; get statusText(): string; get url(): string; get redirected(): boolean; get type(): 'default'; get body(): ReadableStream> | null; get bodyUsed(): boolean; get headers(): Headers; get ok(): boolean; blob(): Promise; formData(): Promise; json(): Promise; bytes(): Promise>; arrayBuffer(): Promise; text(): Promise; toString(): string; toJSON(): object; clone(): FetchResponse; private checkBodyUsedError; private finalize; } export {};