1 | import { Disposable, ErrorNotificationOptions, Notification, NotificationOptions } from '../index';
|
2 |
|
3 |
|
4 | export interface NotificationManager {
|
5 |
|
6 |
|
7 | onDidAddNotification(callback: (notification: Notification) => void): Disposable;
|
8 |
|
9 |
|
10 | onDidClearNotifications(callback: () => void): Disposable;
|
11 |
|
12 |
|
13 |
|
14 | addSuccess(message: string, options?: NotificationOptions): Notification;
|
15 |
|
16 |
|
17 | addInfo(message: string, options?: NotificationOptions): Notification;
|
18 |
|
19 |
|
20 | addWarning(message: string, options?: NotificationOptions): Notification;
|
21 |
|
22 |
|
23 | addError(message: string, options?: ErrorNotificationOptions): Notification;
|
24 |
|
25 |
|
26 | addFatalError(message: string, options?: ErrorNotificationOptions): Notification;
|
27 |
|
28 |
|
29 |
|
30 | getNotifications(): ReadonlyArray<Notification>;
|
31 |
|
32 |
|
33 |
|
34 | clear(): void;
|
35 | }
|