import { ApplicationRef } from "@angular/core"; import { MatLegacySnackBar as MatSnackBar, MatLegacySnackBarConfig as MatSnackBarConfig, MatLegacySnackBarRef as MatSnackBarRef } from "@angular/material/legacy-snack-bar"; import { Observable } from "rxjs"; import { StarkLoggingService } from "@nationalbankbelgium/stark-core"; import { StarkToastNotificationResult } from "./toast-notification-result.intf"; import { StarkToastNotificationService } from "./toast-notification.service.intf"; import { StarkToastNotificationOptions } from "./toast-notification-option.intf"; import { StarkToastMessage, StarkToastNotificationComponent } from "../components"; import * as i0 from "@angular/core"; /** * @ignore */ export declare class StarkToastNotificationServiceImpl implements StarkToastNotificationService { snackBar: MatSnackBar; logger: StarkLoggingService; ref: ApplicationRef; defaultToastNotificationOption?: StarkToastNotificationOptions | undefined; /** * Observer linked to the currently displayed toast notification */ private currentToastResult$?; /** * Reference of the currently displayed toast notification */ currentToast?: MatSnackBarRef; /** * Options for the toast notifications */ _toastNotificationOption: StarkToastNotificationOptions; /** * Class constructor * @param snackBar - Tha snackBar used to display the toast * @param logger - The `StarkLoggingService` instance of the application. * @param ref - The angular application reference running on the page * @param defaultToastNotificationOption - The default toast notification option */ constructor(snackBar: MatSnackBar, logger: StarkLoggingService, ref: ApplicationRef, defaultToastNotificationOption?: StarkToastNotificationOptions | undefined); show(message: StarkToastMessage): Observable; hide(): void; /** * Get the configuration for the MatSnackBar based on the given message * @param message - Message to be shown in the toast containing some configuration (delay,...) * @returns MatSnackBarConfig containing the default configuration merged with the message configuration */ getConfig(message: StarkToastMessage): MatSnackBarConfig; /** * Setter for the default configuration * @param newDefaultOptions - New default configuration */ set toastNotificationOption(newDefaultOptions: StarkToastNotificationOptions); /** * Getter for the default configuration * @returns StarkToastNotificationOptions containing the default configurations */ get toastNotificationOption(): StarkToastNotificationOptions; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }