import { ApplicationRef, ComponentFactoryResolver, InjectionToken, Injector, TemplateRef } from '@angular/core'; import { ShowToastOptions } from './toast.component'; import { ToastRegionComponent } from './toast-region.component'; import * as i0 from "@angular/core"; type ToastOptions = ShowToastOptions & { placement: ToastRegionComponent['placement']; }; export declare const TOAST_OPTIONS: InjectionToken>; /** * Can be used to show Toast notifications. * A toast displays brief, temporary notifications of events in the application. */ export declare class Toast { private injector; private componentFactoryResolver; private options; private appRef; private toastQueue; private toastRegionOutlet?; private document; private toastRegionRef?; constructor(injector: Injector, componentFactoryResolver: ComponentFactoryResolver, options: ToastOptions, appRef: ApplicationRef); /** * Shows a toast notification with content set from a string or a template. */ show(content: string | TemplateRef, { timeout, onClose, title, variant, }?: ShowToastOptions & { onClose?: () => void; }): void; /** * Creates the toast region element the first time it's called. * @private */ private ensureToastRegion; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export {};