1 | import { Params, MultiValueParams, Event as LambdaEvent, Context as LambdaContext, Response as LambdaResponse } from 'lambda-types';
|
2 | export declare type Headers = Params;
|
3 | export declare type MultiValueHeaders = MultiValueParams;
|
4 | export declare type QueryStringParameters = Params;
|
5 | export declare type MultiValueQueryStringParameters = MultiValueParams;
|
6 | export declare type PathParameters = Params;
|
7 | export declare type Event = Omit<LambdaEvent, 'requestContext' | 'resource'>;
|
8 | export declare type Context = LambdaContext;
|
9 | export declare type Response = Omit<LambdaResponse, 'statusCode'> & {
|
10 | statusCode?: number;
|
11 | html?: string;
|
12 | json?: object;
|
13 | xml?: string;
|
14 | };
|
15 | export declare type Handler = (event: Event, context: Context) => Promise<Response | string> | Response | string;
|