import { TranslateService } from '@ngx-translate/core'; import { ToastrService } from 'ngx-toastr'; import { NotificationResponse } from '../interfaces/notification-response.interface'; import { Notification } from '../models/notification.model'; export declare class NotificationService { private readonly toastr; private readonly translate; /** * Additional timeout if there's an error. * * @private * @memberof NotificationService */ private readonly extendedTimeout; /** * Configuration for the error messages. * * @private * @type {Partial} * @memberof NotificationService */ private readonly errorConfig; constructor(toastr: ToastrService, translate: TranslateService); /** * Handles all response. If there's no type, Info is the default. * * @param {NotificationResponse[]} notifications * @returns {void} * @memberof NotificationService */ handleResponse(notifications: NotificationResponse[]): void; /** * Handles only the successfull notifications * * @param {NotificationResponse[]} notifications * @returns {void} * @memberof NotificationService */ handleSuccess(notifications: NotificationResponse[]): void; /** * Basic notify. Error/Info/Success. * * @param {Notification} notification * @memberof NotificationService */ notify(notification: Notification): void; /** * Notify error * * @param {string} title * @param {string} message * @memberof NotificationService */ error(title: string, message: string): void; /** * Clears all natifications * * @memberof NotificationService */ clearAll(): void; /** * Notify with success * * @param {string} title * @param {string} message * @memberof NotificationService */ success(title: string, message: string): void; private show; }