/** * Abstract class with the base infraestructure to manage Message Events */ export declare abstract class MessageEventDispatcher { private readonly messageEventIndex; /** * Launch events with the specified target * @param arg - data to be received by the event */ protected dispatchMessage(target: string, arg: unknown): Promise; /** * Save handlers in the event index (for the specific target) */ onMessage(target: string, callback: MessageHandler): void; } export interface MessageHandler { (arg: unknown): unknown; }