declare class MessagingService {
    private isBrowser;
    private promiseIdCounter;
    private promiseMap;
    private messagingServices;
    constructor();
    private generatePromiseId;
    sendMessage(action: string, payload?: any): void;
    sendMessagePromise(action: string, payload?: any): Promise<any>;
    on(action: string, handler: (payload: any) => void): void;
    off(action: string, handler?: (payload: any) => void): void;
    private setupMessageListener;
}
declare const messagingService: MessagingService;
export default messagingService;
//# sourceMappingURL=messaging.service.d.ts.map