/// import { TlsResponse } from "../interface"; import { IncomingHttpHeaders } from "http"; export declare class Response { private readonly response; readonly ok: boolean; readonly headers: IncomingHttpHeaders; readonly status: number; readonly url: string; constructor(response: TlsResponse); /** * Returns the body of the response as a string. * * @returns A promise that resolves with the body of the response as a string. */ text(): Promise; /** * Returns the body of the response as a JSON object. * * @typeparam T - The type of the JSON object. * @returns A promise that resolves with the body of the response as a JSON object. */ json(): Promise; /** * Returns the cookies from the response as an object with key-value pairs. * * @returns An object containing cookies as key-value pairs. */ get cookies(): Record; }