import * as i1 from 'ngx-toastr'; import { ToastrService } from 'ngx-toastr'; import * as i0 from '@angular/core'; /** * The different types of notifications. */ type TbxNotificationType = "success" | "error" | "info" | "warning"; /** * A service to display notifications (toasts) on the application. */ declare class TbxNotificationService { private readonly toastrService; constructor(toastrService: ToastrService); /** * Displays a success notification. * @param message The message to display in the notification. * @param title The title of the notification. * @returns The promise containing the toast. */ success(message: string, title?: string): any; /** * Displays an error notification. * @param message The message to display in the notification. * @param title The title of the notification. * @returns The promise containing the toast. */ error(message: string, title?: string): any; /** * Displays an information notification. * @param message The message to display in the notification. * @param title The title of the notification. * @returns The promise containing the toast. */ info(message: string, title?: string): any; /** * Displays a warning notification. * @param message The message to display in the notification. * @param title The title of the notification. * @returns The promise containing the toast. */ warning(message: string, title?: string): any; /** * Displays a notification. * @param type The notification type. * @param message The message to display in the notification. * @param title The title of the notification. * @returns The promise containing the toast. */ notification(type: TbxNotificationType, message: string, title?: string): any; /** Clears all notifications currently being displayed. */ clearAllToasts(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class TbxNotificationModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { TbxNotificationModule, TbxNotificationService }; export type { TbxNotificationType };