UNPKG

1.47 kBTypeScriptView Raw
1import { Subject } from 'rxjs';
2import { NotificationType } from '../enums/notification-type.enum';
3import { Icons } from '../interfaces/icons';
4import { NotificationEvent } from '../interfaces/notification-event.type';
5import { Notification } from '../interfaces/notification.type';
6import * as i0 from "@angular/core";
7export declare class NotificationsService {
8 globalOptions: any;
9 constructor(globalOptions: any);
10 emitter: Subject<NotificationEvent>;
11 icons: Icons;
12 set(notification: Notification, to: boolean): Notification;
13 success(title?: any, content?: any, override?: any, context?: any): Notification;
14 error(title?: any, content?: any, override?: any, context?: any): Notification;
15 alert(title?: any, content?: any, override?: any, context?: any): Notification;
16 info(title?: any, content?: any, override?: any, context?: any): Notification;
17 warn(title?: any, content?: any, override?: any, context?: any): Notification;
18 bare(title?: any, content?: any, override?: any, context?: any): Notification;
19 create(title?: any, content?: any, type?: NotificationType, override?: any, context?: any): Notification;
20 html(html: any, type?: NotificationType, override?: any, icon?: string, context?: any): Notification;
21 remove(id?: string): void;
22 static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsService, never>;
23 static ɵprov: i0.ɵɵInjectableDeclaration<NotificationsService>;
24}