import * as i0 from '@angular/core'; import { OnInit, OnDestroy, ElementRef, ChangeDetectorRef, TemplateRef, Renderer2, RendererFactory2, ComponentFactoryResolver, ApplicationRef, Injector } from '@angular/core'; import { ThemeClassesMap } from '@usitsdasdesign/dds-ng/core/theme'; import { Themes, ExtThemes } from '@usitsdasdesign/dds-ng/shared'; import { DdsConfigService } from '@usitsdasdesign/dds-ng/shared/dds-config'; import { SpinnerOptions } from '@usitsdasdesign/dds-ng/spinner'; interface ToastAction { title: string; actionFunc: ($event: Event) => unknown; } declare enum ToastPosition { topLeft = "top-left", topCenter = "top-center", topRight = "top-right", bottomLeft = "bottom-left", bottomCenter = "bottom-center", bottomRight = "bottom-right" } declare enum ToastClass { toastItem = "dds-toast-item", toastContainer = "dds-toast-container" } interface ToastOptions { title?: string; message?: string; closeBtnIcon?: string; theme?: Themes | string; customClass?: string; lifeTime?: number; withProgressBar?: boolean; limit?: number; action?: ToastAction; position?: ToastPosition | string; isCloseIcon?: boolean; isLoading?: boolean; isInverse?: boolean; isError?: boolean; } declare class ToastComponent implements OnInit, OnDestroy { elementRef: ElementRef; cdr: ChangeDetectorRef; private ddsConfig; private renderer; toastContainer: TemplateRef; wrap: ElementRef; actionBtn: ElementRef; closeBtn: ElementRef; class: string; isLoading: boolean; isCloseIcon: boolean; isError: boolean; isInverse: boolean; message: string; title: string; lifeTime: number; withProgressBar: boolean; customClass: string; closeBtnIcon: string; theme: Themes | string; action: ToastAction; themeConfig: ThemeClassesMap; destroy: () => void; progressValue: number; position: ToastPosition; spinnerOptions: SpinnerOptions; private openTriggerEl; private timer$; private interval$; private pause$; private resume$; get isSpinnerInverse(): boolean; get hasDivider(): boolean; get btnTheme(): ExtThemes | string; constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, ddsConfig: DdsConfigService, renderer: Renderer2); ngOnInit(): void; ngOnDestroy(): void; hideToast(): void; private timerConfig; private setTimer; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ToastModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class ToastService { private resolver; private appRef; private injector; protected rendererFactory: RendererFactory2; private document; private toastContainers; private renderer; private toastList; constructor(resolver: ComponentFactoryResolver, appRef: ApplicationRef, injector: Injector, rendererFactory: RendererFactory2, document: Document); createToast(options: ToastOptions): void; closeAll(): void; private setToastOptions; private getOrCreateToastContainer; private get numberOfToastsVisible(); private removeFirstToast; private addToastToContainer; private remove; private removeEmptyContainer; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export { ToastClass, ToastComponent, ToastModule, ToastPosition, ToastService }; export type { ToastAction, ToastOptions };