import { Context, Callback } from "aws-lambda"; import { HttpApiEvent } from "./payload"; import { ApiResponse, ResponseParameters, RedirectParameters, ErrorParameters, CustomParameters } from "../shared"; export declare function httpApi(customHandler: (props: HttpApiSignature) => any): (event: HttpApiEvent, context: Context, callback: Callback) => any; export interface HttpApiSignature { event: HttpApiEvent; body: T; path: { [name: string]: string; }; rawPath: string; query: { [name: string]: string; }; rawQueryString: string; headers: { [name: string]: string; }; testRequest: boolean; auth: any; success(params?: ResponseParameters): ApiResponse; invalid(params?: ResponseParameters): ApiResponse; notFound(params?: ResponseParameters): ApiResponse; notAuthorized(params?: ResponseParameters): ApiResponse; redirect(params: RedirectParameters): ApiResponse; error(params?: ErrorParameters): ApiResponse; custom(params: CustomParameters): ApiResponse; }