import { Injector, type MiddlewareAsync, type MiddlewarePromise } from '@akala/core'; import { type Command } from '../metadata/index.js'; import { Container } from './container.js'; export type StructuredParameters = { params: T; [key: string]: unknown; _trigger?: string; injector?: Injector; }; export declare abstract class CommandProcessor implements ICommandProcessor { name: string; constructor(name: string); abstract handle(origin: Container, cmd: Command, param: StructuredParameters): MiddlewarePromise; } export type CommandMetadataProcessorSignature = [origin: Container, cmd: Command, param: StructuredParameters]; export type ICommandProcessor = MiddlewareAsync>;