import type { Context as LambdaContext } from "@webiny/aws-sdk/types/index.js"; import type { Context as BaseContext, Reply } from "@webiny/handler/types.js"; import type { EventPluginCallableParams } from "@webiny/handler"; import { EventPlugin } from "@webiny/handler"; export interface RawEventHandlerCallableParams extends EventPluginCallableParams { lambdaContext: LambdaContext; } export interface RawEventHandlerCallable { (params: RawEventHandlerCallableParams): Promise; } export interface RawEventHandlerParamsConfig { canHandle(event: Event): boolean; handle: RawEventHandlerCallable; } export type RawEventHandlerParams = RawEventHandlerCallable | RawEventHandlerParamsConfig; export declare class RawEventHandler extends EventPlugin { private readonly params; constructor(params: RawEventHandlerParams); /** * */ canHandle(event: Event): boolean; } export declare const createEventHandler: (params: RawEventHandlerParams) => RawEventHandler;