import { Plugin } from "@webiny/plugins/Plugin.js"; import type { Context, Reply, Request } from "@webiny/handler/types.js"; import type { Context as LambdaContext, DynamoDBStreamEvent } from "@webiny/aws-sdk/types/index.js"; export interface DynamoDBEventHandlerCallableParams { request: Request; context: Context; event: DynamoDBStreamEvent; lambdaContext: LambdaContext; reply: Reply; next: () => Promise; } export interface DynamoDBEventHandlerCallable { (params: DynamoDBEventHandlerCallableParams): Promise; } export declare class DynamoDBEventHandler extends Plugin { static type: string; readonly cb: DynamoDBEventHandlerCallable; constructor(cb: DynamoDBEventHandlerCallable); } export declare const createEventHandler: (cb: DynamoDBEventHandlerCallable) => DynamoDBEventHandler;