import type { EndowmentFactoryOptions } from "./commonEndowmentFactory.cjs"; /** * This class wraps a Response object. * That way, a teardown process can stop any processes left. */ export declare class ResponseWrapper implements Response { #private; constructor(ogResponse: Response, teardownRef: { lastTeardown: number; }, onStart: () => Promise, onFinish: () => Promise); get body(): ReadableStream | null; get bodyUsed(): boolean; get headers(): Headers; get ok(): boolean; get redirected(): boolean; get status(): number; get statusText(): string; get type(): ResponseType; get url(): string; text(): Promise; arrayBuffer(): Promise; blob(): Promise; clone(): Response; formData(): Promise; json(): Promise; } declare class AlteredResponse extends Response { static [Symbol.hasInstance](instance: unknown): boolean; } declare const endowmentModule: { names: readonly ["fetch", "Request", "Headers", "Response"]; factory: ({ notify }?: EndowmentFactoryOptions) => { fetch: typeof fetch; Request: { new (input: RequestInfo | URL, init?: RequestInit | undefined): Request; prototype: Request; }; Headers: { new (init?: HeadersInit | undefined): Headers; prototype: Headers; }; Response: typeof AlteredResponse; teardownFunction: () => Promise; }; }; export default endowmentModule; //# sourceMappingURL=network.d.cts.map