import { HttpStatus } from "./http"; import { CorsOptions } from "./options"; import { ApiRequest } from "./request"; export interface Response { isBase64Encoded: boolean; statusCode: number; statusDescription?: string; body: string; headers: { [key: string]: string | undefined; }; } export interface ResponseError { status?: HttpStatus; code: string; message: string; data?: { [key: string]: unknown; }; } export declare class ApiResponse { private request?; static cors: boolean; static credentials: boolean; private statusCode; headers: { [key: string]: string | undefined; }; private _response; private _error; constructor(request?: ApiRequest | undefined); status(code: HttpStatus): ApiResponse; header(key: string, value: string): ApiResponse; private setDefaultCors; private getDefaultCors; cors(options?: CorsOptions): ApiResponse; toResponse(): Response; toResponseError(): ResponseError; send(payload?: unknown, isError?: boolean): Response; json(body: any): Response; html(body: string): Response; file(body: any): Response; error(data: ResponseError | string): Response; }