import { Injector, NgZone } from '@angular/core'; import { DomSanitizer } from '@angular/platform-browser'; import { Overlay } from '../components/utils-toastr/overlay/overlay'; import { UtilsToastContainerDirective } from '../directives/utils-toast.directive'; import { ActiveToast, GlobalConfig, IndividualConfig, ToastToken } from '../interfaces/toastr-interface'; import * as i0 from "@angular/core"; export declare class UtilsToastrService { private overlay; private _injector; private sanitizer; private ngZone; toastrConfig: GlobalConfig; currentlyActive: number; toasts: ActiveToast[]; overlayContainer?: UtilsToastContainerDirective; previousToastMessage: string | undefined; private index; constructor(token: ToastToken, overlay: Overlay, _injector: Injector, sanitizer: DomSanitizer, ngZone: NgZone); /** show toast */ show(message?: string, title?: string, override?: Partial, type?: string): ActiveToast | null; /** show successful toast */ success(message?: string, title?: string, override?: Partial): ActiveToast | null; /** show error toast */ error(message?: string, title?: string, override?: Partial): ActiveToast | null; /** show info toast */ info(message?: string, title?: string, override?: Partial): ActiveToast | null; /** show warning toast */ warning(message?: string, title?: string, override?: Partial): ActiveToast | null; /** * Remove all or a single toast by id */ clear(toastId?: number): void; /** * Remove and destroy a single toast by id */ remove(toastId: number): boolean; /** * Determines if toast message is already shown */ findDuplicate(title: string | undefined, message: string | undefined, resetOnDuplicate: boolean, countDuplicates: boolean): ActiveToast | null; /** create a clone of global config and apply individual settings */ private applyConfig; /** * Find toast object by id */ private _findToast; /** * Determines the need to run inside angular's zone then builds the toast */ private _preBuildNotification; /** * Creates and attaches toast data to component * returns the active toast, or in case preventDuplicates is enabled the original/non-duplicate active toast. */ private _buildNotification; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }