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