import { CommandClass as BaseCommandClass, CommandIdentifier as BaseCommandIdentifier, CommandBus, CommandHandler as BaseCommandHandler, CallableCommandMiddleware as BaseCallableCommandMiddleware, CommandMiddleware as BaseCommandMiddleware, CommandOptions as BaseCommandOptions, getCommandId as baseGetCommandId } from '../../../lime-web-components/src/commandbus'; /** * @deprecated use {@link BaseCommandClass CommandClass} from `@limetech/lime-web-components` instead */ export declare type CommandClass = BaseCommandClass; /** * @deprecated use {@link BaseCommandIdentifier CommandIdentifier} from `@limetech/lime-web-components` * instead */ export declare type CommandIdentifier = BaseCommandIdentifier; /** * @deprecated use {@link CommandBus} from `@limetech/lime-web-components` instead */ export interface CommandBusService extends Omit { getHandler?(commandClass: CommandClass): CommandHandler; } /** * @deprecated use {@link BaseCommandHandler CommandHandler} from `@limetech/lime-web-components` * instead */ export interface CommandHandler extends BaseCommandHandler { } /** * @deprecated use {@link BaseCallableCommandMiddleware CallableCommandMiddleware} from * `@limetech/lime-web-components` instead */ export declare type CallableCommandMiddleware = BaseCallableCommandMiddleware; /** * @deprecated use {@link BaseCommandMiddleware CommandMiddleware} from `@limetech/lime-web-components` * instead */ export interface CommandMiddleware extends BaseCommandMiddleware { } /** * @deprecated use {@link CommandEventName} from `@limetech/lime-web-components` * instead */ export declare enum CommandEvent { /** * Dispatched when the command has been received by the commandbus. * Calling `preventDefault()` on the event will stop the command from being handled * * @detail { command } */ Received = "command.received", /** * Dispatched when the command has been handled by the commandbus * * @detail { command | result } */ Handled = "command.handled", /** * Dispatched if an error occurs while handling the command * * @detail { command | error } */ Failed = "command.failed" } /** * @deprecated use {@link BaseCommandOptions CommandOptions} from `@limetech/lime-web-components` * instead */ export interface CommandOptions extends BaseCommandOptions { } /** * @deprecated use {@link BaseCommand Command} from `@limetech/lime-web-components` instead */ export declare function Command(options: CommandOptions): (commandClass: BaseCommandClass) => void; /** * @deprecated use {@link baseGetCommandId getCommandId} from `@limetech/lime-web-components` instead */ export declare const getCommandId: typeof baseGetCommandId;