import { MatSnackBarRef, MatSnackBarConfig } from '@angular/material/snack-bar'; import { Subject } from 'rxjs'; import { NotificationModel } from '../models/notification.model'; import type { SnackBarData } from '../../snackbar-content/snack-bar-data'; import * as i0 from "@angular/core"; export declare class NotificationService { private readonly snackBar; private readonly translationService; notifications$: Subject; /** * Opens a SnackBar notification to show a message. * * @param message The message (or resource key) to show. * @param config Time before notification disappears after being shown or MatSnackBarConfig object * @param interpolateArgs The interpolation parameters to add for the translation * @returns Information/control object for the SnackBar */ openSnackMessage(message: string, config?: number | MatSnackBarConfig>, interpolateArgs?: any): MatSnackBarRef; /** * Opens a SnackBar notification with a message and a response button. * * @param message The message (or resource key) to show. * @param action Caption for the response button * @param config Time before notification disappears after being shown or MatSnackBarConfig object * @param interpolateArgs The interpolation parameters to add for the translation * @returns Information/control object for the SnackBar */ openSnackMessageAction(message: string, action: string, config?: number | MatSnackBarConfig>, interpolateArgs?: any): MatSnackBarRef; /** * Rase error message * * @param message Text message or translation key for the message. * @param action Action name * @param interpolateArgs The interpolation parameters to add for the translation * @param showAction True if action should be visible, false if not. Default: true. * @returns snackbar reference */ showError(message: string, action?: string, interpolateArgs?: any, showAction?: boolean): MatSnackBarRef; /** * Rase info message * * @param message Text message or translation key for the message. * @param action Action name * @param interpolateArgs The interpolation parameters to add for the translation * @param showAction True if action should be visible, false if not. Default: true. * @returns snackbar reference */ showInfo(message: string, action?: string, interpolateArgs?: any, showAction?: boolean): MatSnackBarRef; /** * Rase warning message * * @param message Text message or translation key for the message. * @param action Action name * @param interpolateArgs The interpolation parameters to add for the translation * @param showAction True if action should be visible, false if not. Default: true. * @returns snackbar reference */ showWarning(message: string, action?: string, interpolateArgs?: any, showAction?: boolean): MatSnackBarRef; /** * dismiss the notification snackbar */ dismissSnackMessageAction(): void; /** * Push new notification to Notification History * * @param notification - Notification model to be pushed. */ pushToNotificationHistory(notification: NotificationModel): void; private dispatchNotification; private getNotificationCreator; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }