import { HTTPMethod, QPQBinaryData } from 'quidproquo-core'; export interface HttpEventHeaders { [key: string]: undefined | string; } export interface HttpEventRouteParams { [key: string]: string; } export declare enum FileUploadErrorTypeEnum { fileTooLarge = "fileTooLarge", tooManyFiles = "tooManyFiles", tooManyFields = "tooManyFields", disallowedMimeType = "disallowedMimeType", malformed = "malformed" } export interface HTTPEventFileUploadError { errorType: FileUploadErrorTypeEnum; message: string; } export interface HTTPEvent { path: string; query: { [key: string]: undefined | string | string[]; }; body?: string; headers: HttpEventHeaders; method: HTTPMethod; correlation: string; sourceIp: string; isBase64Encoded: boolean; files?: QPQBinaryData[]; fileUploadError?: HTTPEventFileUploadError; } export interface HTTPEventResponse { status: number; body?: string; headers?: HttpEventHeaders; isBase64Encoded: boolean; }