1 | import { Toast, ToastType } from './toast';
|
2 | import { IClearWrapper } from './clearWrapper';
|
3 | import { Observable, Subject } from 'rxjs';
|
4 | export declare class ToasterService {
|
5 | addToast: Observable<Toast>;
|
6 | private _addToast;
|
7 | clearToasts: Observable<IClearWrapper>;
|
8 | private _clearToasts;
|
9 | removeToast: Observable<IClearWrapper>;
|
10 |
|
11 | _removeToastSubject: Subject<IClearWrapper>;
|
12 | |
13 |
|
14 |
|
15 | constructor();
|
16 | /**
|
17 | * Synchronously create and show a new toast instance.
|
18 | *
|
19 | * @param {(string | Toast)} type The type of the toast, or a Toast object.
|
20 | * @param {string=} title The toast title.
|
21 | * @param {string=} body The toast body.
|
22 | * @returns {Toast}
|
23 | * The newly created Toast instance with a randomly generated GUID Id.
|
24 | */
|
25 | pop(type: ToastType | Toast, title?: string, body?: string): Toast;
|
26 | |
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | popAsync(type: ToastType | Toast, title?: string, body?: string): Observable<Toast>;
|
37 | |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 | clear(toastId?: string, toastContainerId?: number): void;
|
45 | }
|