import { CommandHandlerMetadata } from "./metadata/automationMetadata"; import { OnCommand } from "./onCommand"; /** * Interface for class-based command handlers. * These combine the parameters with the command. A fresh * instance will be created for every invocation. Prefer using the * parameters object to "this" in implementations of the handle method. * @param P parameters type */ export interface HandleCommand

{ /** * OnCommand function for this command */ handle: OnCommand

; /** * If this method is implemented, it returns a fresh parameters instance * to use for this class. Otherwise will use the class itself as its parameters. * @return {P} new parameters instance */ freshParametersInstance?(): P; } export declare type SelfDescribingHandleCommand

= HandleCommand

& CommandHandlerMetadata; //# sourceMappingURL=HandleCommand.d.ts.map