/// import type { ObjectOf } from "../Types"; import type { Response as ServerResponse } from "polka"; import type { Cookie } from "../Foundation/Http"; interface ResponseHeaders { [key: string]: any; getCookies: () => Cookie[]; setCookie: (cookie: Cookie) => void; } declare class Response { protected original: any; protected status: number; protected _headers: ObjectOf; protected res?: ServerResponse; protected cookies: Cookie[]; constructor(content: any, status?: number, headers?: ObjectOf); getCookies(): Cookie[]; setCookie(cookie: Cookie): void; getOriginal(): any; getStatus(): number; get headers(): ResponseHeaders; setCookiesToHeaders(): void; setOriginal(data: any): this; setServerResponse(res: ServerResponse): this; mergeResponse(res: Response): void; getServerResponse(): import("http").ServerResponse | undefined; setHeader(key: string, value: string | string[]): this; } export default Response;