import { Context } from 'aws-lambda';
import { DfnsMessage } from '../messaging';
import { ApiGatewayEvent, ApiGatewayEventHandler, ApiGatewayResult, LambdaOptions, RabbitMqEventHandler, SQSEventHandler } from '../types';
export declare const decorateApiGatewayEvent: (handler: ApiGatewayEventHandler, options: LambdaOptions, environment?: string | undefined) => (event: ApiGatewayEvent, context: Context) => Promise<ApiGatewayResult>;
export declare const decorateSQSEvent: (handler: SQSEventHandler, options?: LambdaOptions | undefined) => SQSEventHandler;
export declare const decorateRabbitMqEvent: <M extends DfnsMessage>(handler: RabbitMqEventHandler<M>, options?: LambdaOptions | undefined) => RabbitMqEventHandler<M>;
export declare const handleErrors: (handler: ApiGatewayEventHandler, includeStackTrace: boolean) => (event: ApiGatewayEvent, context: Context) => Promise<ApiGatewayResult>;
export declare const withGatewayFormattedResponse: (handler: ApiGatewayEventHandler) => (event: ApiGatewayEvent, context: Context) => Promise<ApiGatewayResult>;
export declare const withPagination: (handler: ApiGatewayEventHandler) => (event: ApiGatewayEvent, context: Context) => Promise<ApiGatewayResult>;
export declare const withMessageMaxRetry: <A extends DfnsMessage>(handler: RabbitMqEventHandler<A>, maxRetry: number) => RabbitMqEventHandler<A>;
