import { Observable, Observer, Subscription } from 'rxjs'; import { JhiEventWithContent } from './event-with-content.model'; /** * An utility class to manage RX events */ export declare class JhiEventManager { observable: Observable | string>; observer: Observer | string>; constructor(); /** * Method to broadcast the event to observer */ broadcast(event: JhiEventWithContent | string): void; /** * Method to subscribe to an event with callback */ subscribe(eventName: string, callback: any): Subscription; /** * Method to unsubscribe the subscription */ destroy(subscriber: Subscription): void; }