import * as i0 from '@angular/core'; import { TemplateRef, Provider } from '@angular/core'; declare class IToast { message: string | TemplateRef; typeId: string; isDismissable?: boolean; autoDismiss?: boolean; dismissTimeout?: number; size?: 'sm' | 'md'; } declare class Toast implements IToast { message: string | TemplateRef; typeId: string; isDismissable?: boolean; autoDismiss?: boolean; dismissTimeout?: number; size?: 'md'; constructor(options: IToast); } interface IToastConfig { /** * A reference to the `Element` where the `ToastsComponent` should be projected */ outletElement: Element; } declare class Toaster { private _appRef; private _injector; private _toastPortal; private _outlet; private _toastsComponentRef; private _config; private _attachOutlet; show(toast: IToast): Toast; success(message: string | TemplateRef): Toast; error(message: string | TemplateRef): Toast; dismiss(toast: Toast): void; isToastActive(toast: Toast): boolean; /** * Set the configuration values for a `Toaster` instance. This can only be called once * per `Toaster` instance and must be called before the outlet is created * * @param config Configuration settings for the Toaster */ setConfig(config: IToastConfig): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare function provideToasts(): Provider[]; export { IToast, Toast, Toaster, provideToasts }; export type { IToastConfig };