import { Exception } from "@thinkbeanie/common"; export interface HTTPResponseData { error?: HTTPResponseError; data?: T; } export declare class HTTPResponseError { statusCode?: number; message: string; private constructor(); static fromException(e: Exception): HTTPResponseError; static fromError(statusCode: number, e: Error): HTTPResponseError; static fromString(statusCode: number, e: string): HTTPResponseError; } export declare class HTTPResponse { status?: number; headers?: { [key: string]: string; }; body?: any; cookies?: { name: string; value: string; options?: { maxAge?: number; signed?: boolean; expires?: Date; path?: string; domain?: string; secure?: boolean; httpOnly?: boolean; }; }[]; private constructor(); static create(res: HTTPResponse): HTTPResponse; static success(data: T, res?: HTTPResponse, prettify?: boolean): HTTPResponse; static error(error: HTTPResponseError, res?: HTTPResponse, prettify?: boolean): HTTPResponse; static json(json: T, res?: HTTPResponse, prettify?: boolean): HTTPResponse; static text(text: string, res?: HTTPResponse): HTTPResponse; static html(html: string, res?: HTTPResponse): HTTPResponse; private static statusResponse; static redirect(url: string, status: 301 | 302, data?: HTTPResponse): HTTPResponse; static ok(text?: string, res?: HTTPResponse): HTTPResponse; static multipleChoices(text?: string, res?: HTTPResponse): HTTPResponse; static notModified(text?: string, res?: HTTPResponse): HTTPResponse; static badRequest(text?: string, res?: HTTPResponse): HTTPResponse; static unauthorized(text?: string, res?: HTTPResponse): HTTPResponse; static forbidden(text?: string, res?: HTTPResponse): HTTPResponse; static notFound(text?: string, res?: HTTPResponse): HTTPResponse; static gone(text?: string, res?: HTTPResponse): HTTPResponse; static notImplemented(text?: string, res?: HTTPResponse): HTTPResponse; static serviceUnavailable(text?: string, res?: HTTPResponse): HTTPResponse; static permissiondenied(text?: string, res?: HTTPResponse): HTTPResponse; }