/** * Spec: * https://fetch.spec.whatwg.org/#response-class */ import { IncomingHttpHeaders } from 'http2'; import { Body } from './body-type.js'; import { GotHeaders } from './headers.js'; type ResponseInit = { status?: number; statusText?: string | Buffer; headers?: IncomingHttpHeaders; url?: string; redirected?: boolean; type?: ResponseType; }; export declare class GotFetchResponse implements Response { #private; readonly headers: GotHeaders; readonly redirected: boolean; readonly status: number; readonly statusText: string; readonly url: string; readonly type: ResponseType; /** * This is a Node Readable stream */ readonly body: any | null; constructor(body: Body | null, init?: ResponseInit | null); get bodyUsed(): boolean; get ok(): boolean; get trailer(): Promise; arrayBuffer(): Promise; blob(): Promise; formData(): Promise; json(): Promise; text(): Promise; clone(): GotFetchResponse; static error(): GotFetchResponse; } export {}; //# sourceMappingURL=response.d.ts.map