import { Injector } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import { Overlay } from './overlay/overlay'; import { ToastConfig, ToastrConfig } from './toastr-config'; import { ToastRef } from './toast-injector'; import { ToastContainerDirective } from './toast-directive'; export interface ActiveToast { toastId?: number; message?: string; portal?: any; toastRef?: ToastRef; onShown?: Observable; onHidden?: Observable; onTap?: Observable; } export declare class ToastrService { toastrConfig: ToastrConfig; private overlay; private _injector; private index; private toasts; private previousToastMessage; private currentlyActive; overlayContainer: ToastContainerDirective; constructor(toastrConfig: ToastrConfig, overlay: Overlay, _injector: Injector); success(message: string, title?: string, optionsOverride?: ToastConfig): ActiveToast; error(message: string, title?: string, optionsOverride?: ToastConfig): ActiveToast; info(message: string, title?: string, optionsOverride?: ToastConfig): ActiveToast; warning(message: string, title?: string, optionsOverride?: ToastConfig): ActiveToast; createToastConfig(optionsOverride: ToastConfig): ToastConfig; clear(toastId?: number): void; remove(toastId: number): boolean; private _findToast(toastId); private isDuplicate(message); private _buildNotification(toastType, message, title, optionsOverride?); }