import type { Context as LambdaContext, S3Event } 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 S3EventHandlerCallableParams { request: Request; context: Context; event: S3Event; lambdaContext: LambdaContext; reply: Reply; next: () => Promise; } export interface S3EventHandlerCallable { (params: S3EventHandlerCallableParams): Promise; } export declare class S3EventHandler extends Plugin { static type: string; readonly cb: S3EventHandlerCallable; constructor(cb: S3EventHandlerCallable); } export declare const createEventHandler: (cb: S3EventHandlerCallable) => S3EventHandler;