import { Overlay, OverlayRef } from '@angular/cdk/overlay';
import { ComponentPortal } from '@angular/cdk/portal';
import { Injector, TemplateRef } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
import * as i0 from "@angular/core";
export declare class BsToastService {
    private overlayService;
    private rootInjector;
    private portalFactory;
    constructor(overlayService: Overlay, rootInjector: Injector, portalFactory: (injector: Injector) => ComponentPortal<any>);
    overlayRef: OverlayRef | null;
    toasts$: BehaviorSubject<ToastItem[]>;
    pushToast(toast: TemplateRef<any>, context?: Object): void;
    close(index: number): void;
    static ɵfac: i0.ɵɵFactoryDeclaration<BsToastService, never>;
    static ɵprov: i0.ɵɵInjectableDeclaration<BsToastService>;
}
interface ToastItem {
    template: TemplateRef<any>;
    context: Object | null;
}
export {};
