/** * TODO: refactor this to use a proper DI container */ import type { HandlerEvent, SourceHandler } from "./types.js"; import type { Context as LambdaContext } from "@webiny/aws-sdk/types/index.js"; interface RegisterOptions { silent?: boolean; } declare class HandlerRegistry { private readonly handlers; private constructor(); static create(): HandlerRegistry; register(handler: SourceHandler, options?: RegisterOptions): void; getHandler(event: HandlerEvent, context: LambdaContext): SourceHandler; } export type { HandlerRegistry }; export declare const registry: HandlerRegistry;