import { Observable } from 'rxjs';
import { ToastEvent, ToastItem, ToastSource } from './toast-types';
import * as i0 from "@angular/core";
export declare class ToastService {
    private _events;
    events: Observable<ToastEvent>;
    constructor();
    /**
     * Display a toast.
     * If a toast of the same type is already on screen, the toast is queued until the existing one is dismissed.
     */
    showToast(toast: ToastItem, source?: ToastSource): void;
    /**
     * Remove a toast.
     * This will also remove the toast from the queue if it has not already been displayed.
     */
    dismissToast(toast: ToastItem, source?: ToastSource): void;
    static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
    static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
}
