import { Command, CommandBus, CommandHandler, Disposable, Event, ExecuteActionOptions, MessageHeaders, Removable, Result } from "@tmorin/ceb-messaging-core"; import { IpcRenderer } from "electron"; import { IpcEmitterCommandBus, IpcObservableCommandBus } from "../common"; /** * The symbol used to register {@link IpcRendererCommandBus}. */ export declare const IpcRendererCommandBusSymbol: unique symbol; export declare class IpcRendererCommandBus implements CommandBus, Disposable { private readonly ipcRenderer; private readonly bus; private readonly emitter; constructor(ipcRenderer: IpcRenderer, bus: CommandBus, emitter: IpcEmitterCommandBus); get observer(): IpcObservableCommandBus; execute(command: C, options?: Partial): Promise; executeAndForget = Command>(command: C): void; handle = []>(commandType: string, handler: CommandHandler): Removable; dispose(): Promise; }