import { ComponentRef, ComponentFactory, ApplicationRef, NgZone, ComponentFactoryResolver } from '@angular/core'; import { ToastComponent } from './toast.component'; import { ToastOptions } from './toast-options.provider'; import * as i0 from "@angular/core"; export interface ConfigInterface { content?: any; iconType?: string; mask?: boolean; } export declare class ToastService { private _appRef; private _cfr; private _zone; timeout: any; zone: NgZone; compRef: ComponentRef; insertElement: HTMLElement; toastCompFactory: ComponentFactory; appRef: ApplicationRef; constructor(_appRef: ApplicationRef, _cfr: ComponentFactoryResolver, _zone: NgZone); _initConfig(config: Object, options: ToastOptions): Object; notice(config: ConfigInterface, type: any, timeInterval: number, onClose: any, mask?: boolean, position?: string): Promise; /** * Open info dialog */ info(content?: string, timeInterval?: number, onClose?: () => void, mask?: boolean, position?: string): Promise; /** * Open success dialog */ success(content?: string, timeInterval?: number, onClose?: () => void, mask?: boolean, position?: string): Promise; show(content?: string, timeInterval?: number, mask?: boolean, position?: string): Promise; fail(content?: string, timeInterval?: number, onClose?: () => void, mask?: boolean, position?: string): Promise; offline(content?: string, timeInterval?: number, onClose?: () => void, mask?: boolean, position?: string): Promise; loading(content?: string, timeInterval?: number, onClose?: () => void, mask?: boolean, position?: string): Promise; hide(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }