import { Abstraction } from "@webiny/di"; import type { NextFunction } from "./types.js"; export interface InputContext { input: TInput; metadata: Record; } export interface IInputHandler { execute(ctx: InputContext, next: NextFunction): Promise; } export const InputHandler = new Abstraction("InputHandler"); export namespace InputHandler { export type Interface = IInputHandler; }