import { APIGatewayProxyResult, Callback } from "aws-lambda"; export interface ICorsConfiguration { defaultEnabled: boolean; allowedOrigins: string[]; allowCredentials: boolean; exposeHeaders: string[]; allowHeaders: string[]; requestOrigin?: string; } export declare class Response { statusCode: number; body?: any; headers: { [key: string]: string; }; static ok(body?: any, contentType?: string): Response; static created(body?: any, contentType?: string): Response; static redirect(url: string): Response; static badRequest(message?: string, contentType?: string): Response; static unauthorized(message?: string, contentType?: string): Response; static forbidden(message?: string, contentType?: string): Response; static notFound(message?: string, contentType?: string): Response; static serverError(message?: string, contentType?: string): Response; static notImplemented(message?: string, contentType?: string): Response; static setCorsConfiguration(conf: ICorsConfiguration): void; private static corsConfiguration; private corsEnabled; private origin; constructor(statusCode: number, body?: any, headers?: { [key: string]: string; }); enableCors(origin: string): Response; disableCors(): Response; setRequestOrigin(origin: string): Response; setHeaders(headers: { [key: string]: string; }): Response; setHeader(key: string, value: string): Response; getHeader(key: string): string; setContentType(contentType: string): Response; getContentType(): string; getResponsePromise(contentType?: string): Promise; send(callback: Callback, contentType?: string): void; sendJson(callback: Callback): void; private doSend; private applyCors; }