1 | import { Observable, Observer, Subscription } from 'rxjs';
|
2 | import { JhiEventWithContent } from './event-with-content.model';
|
3 |
|
4 |
|
5 |
|
6 | export declare class JhiEventManager {
|
7 | observable: Observable<JhiEventWithContent<any> | string>;
|
8 | observer: Observer<JhiEventWithContent<any> | string>;
|
9 | constructor();
|
10 | /**
|
11 | * Method to broadcast the event to observer
|
12 | */
|
13 | broadcast(event: JhiEventWithContent<any> | string): void;
|
14 | /**
|
15 | * Method to subscribe to an event with callback
|
16 | */
|
17 | subscribe(eventName: string, callback: any): Subscription;
|
18 | /**
|
19 | * Method to unsubscribe the subscription
|
20 | */
|
21 | destroy(subscriber: Subscription): void;
|
22 | }
|