import { Disposable, ICommand, ICommandInfo, ICommandService } from '@univerjs/core'; import { StateService } from './state.service'; export declare class CommandEmitterService extends Disposable { readonly _stateService: StateService; private _commandService; private before; private after; constructor(_stateService: StateService, _commandService: ICommandService); syncExecuteCommand(command: ICommand | string, params?: Params): boolean; rerenderWorkbook(): void; private onCommandExecuted; private registerCommandExecuted; registerBeforeCommandExecuted(command: ICommand | ICommand[] | string | string[], handler: (commandInfo: Readonly>) => void): void; registerAfterCommandExecuted(command: ICommand | ICommand[] | string | string[], handler: (commandInfo: Readonly>) => void): void; }