import { Notification } from '../interfaces/notifications.interface'; import { Observable } from 'rxjs/Observable'; export declare class NotificationsService { private list; private list$; /** * @returns An observable basic-list of notifications. */ readonly items: Observable; /** * Adds a new notifications to the notifications-list. * * @param {string} message The message of the notification. * @param {string} type The type of notification. */ create(message: string, type?: 'success' | 'error' | 'info'): void; /** * Adds a new notification to the array. * * @param item The notification item. */ private add(item); /** * Removes an item from the array. * * @param item The notification item. */ private remove(item); /** * @returns A random id for the notification. */ private getId(); }