/** * This is the handler implementation for @webiny/handler/plugins/EventPlugin. * This is mostly meant for some custom lambda calls as we are sometimes invoking lambdas directly. * * We should try to have some kind of standardized event type implementation at some point. */ import type { APIGatewayProxyResult, Context as LambdaContext } from "@webiny/aws-sdk/types/index.js"; import type { CreateHandlerParams as BaseCreateHandlerParams } from "@webiny/handler"; export interface HandlerCallable { (payload: Payload, context: LambdaContext): Promise; } export type CreateHandlerParams = BaseCreateHandlerParams; export declare const createHandler: (params: CreateHandlerParams) => HandlerCallable; export * from "./plugins/RawEventHandler.js";