import type HandlerClient from "./HandlerClient.js"; import type { Plugin } from "@webiny/plugins/types.js"; import type { Context } from "@webiny/api/types.js"; export type InvokeArgs = { name: string; payload?: TInvokeArgsPayload; await?: boolean; description?: string; }; export type HandlerClientHandlerPlugin = Plugin & { type: "handler-client-handler"; invoke: , TResponse = Record>(params: TArgs) => TResponse | Promise; }; export interface ClientContext extends Context { handlerClient: HandlerClient; }