import * as i0 from '@angular/core'; import { OnInit, OnChanges, EventEmitter, SimpleChanges } from '@angular/core'; import { SafeHtml, DomSanitizer } from '@angular/platform-browser'; import { DeferredPromise } from 'novo-elements/utils'; import * as i2 from '@angular/common'; import * as i3 from 'novo-elements/elements/button'; import { ComponentUtils } from 'novo-elements/services'; declare class NovoToastElement implements OnInit, OnChanges { private sanitizer; appearance: 'growl' | 'banner'; theme: string; icon: string; title: string; action: string; hasDialogue: boolean; link: string; isCloseable: boolean; set message(m: string); closed: EventEmitter; _message: SafeHtml; show: boolean; animate: boolean; parent: any; launched: boolean; position: any; time: any; iconClass: string; alertTheme: string; embedded: any; onActionPromise: DeferredPromise; constructor(sanitizer: DomSanitizer); ngOnInit(): void; ngOnChanges(changes?: SimpleChanges): void; clickHandler(event: any): void; close(event: any): void; actionHandler(event: any): void; onAction(fn: () => void): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NovoToastModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } type ToastThemes = 'default' | 'success' | 'info' | 'warning' | 'danger' | 'positive' | string; type ToastIcons = 'bell' | 'check' | 'info' | 'warning' | 'remove' | 'caution' | 'times' | 'coffee' | 'danger' | string; type ToastPositions = 'fixedTop' | 'fixedBottom' | 'growlTopRight' | 'growlTopLeft' | 'growlBottomRight' | 'growlBottomLeft'; interface ToastOptions { title?: string; message?: string; action?: string; icon?: ToastIcons; theme?: ToastThemes; accent?: ToastThemes; hideDelay?: number; position?: ToastPositions; isCloseable?: boolean; customClass?: string; } declare class NovoToastService { private componentUtils; _parentViewContainer: any; references: Array; icons: { default: string; success: string; info: string; warning: string; danger: string; }; defaults: { hideDelay: number; position: string; theme: string; }; constructor(componentUtils: ComponentUtils); set parentViewContainer(view: any); alert(options: ToastOptions, toastElement?: any): Promise; isVisible(toast: any): any; hide(toast: any): void; handleAlert(toast: any, options: any): void; setToastOnSession(toast: any, opts: any): void; show(toast: any): void; toastTimer(toast: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export { NovoToastElement, NovoToastModule, NovoToastService }; export type { ToastIcons, ToastOptions, ToastPositions, ToastThemes };