import { ApplicationRef, ComponentFactoryResolver, Injector } from '@angular/core'; import { DIALOG_BUTTONS } from '../components/modal/dialog.component'; import { BsModalService } from 'ngx-bootstrap/modal'; import { BsModalRef } from 'ngx-bootstrap/modal/bs-modal-ref.service'; export interface DialogComponentExtras { theme?: string; } /** * * Displays a Modal window or a type of Notification (based on choice the color changes) * @export * @class ModalService */ export declare class ModalService { private componentFactoryResolver; private appRef; private injector; private modalService; modalRef: any; config: { ignoreBackdropClick: boolean; keyboard: boolean; initialState: any; class: string; }; constructor(componentFactoryResolver: ComponentFactoryResolver, appRef: ApplicationRef, injector: Injector, modalService: BsModalService); showDialog(title: string, message: string, buttons?: DIALOG_BUTTONS, extras?: DialogComponentExtras): Promise<{}>; showWarningDialog(title: string, message: string, buttons?: DIALOG_BUTTONS, icon?: string): Promise<{}>; showSuccessDialog(title: string, message: string, buttons?: DIALOG_BUTTONS, icon?: string): Promise<{}>; showErrorDialog(title: string, message: string, buttons?: DIALOG_BUTTONS, icon?: string): Promise<{}>; showDangerDialog(title: string, message: string, buttons?: DIALOG_BUTTONS, icon?: string): Promise<{}>; showInfoDialog(title: string, message: string, buttons?: DIALOG_BUTTONS, icon?: string): Promise<{}>; openModal(template: any, customClass?: string): BsModalRef; openModalComponent(template: any, options?: any): BsModalRef; }