import { TemplateRef } from "@angular/core"; import { NgbModal as Modal } from '@ng-bootstrap/ng-bootstrap'; import { IModalDlg } from "./mel-modal"; /** * * @param modal the modalservice from ngx-bootstrap/modal * @param content the content of the dialog component * @param dlgData the dialogdata to edit * @param escapeAllowed : true to leave the dialog with the escape-key. default: true * @param centered true to display the dialog centered, default: true * @param scrollable : true to allow a scrollbar. default: false * @returns a Promise to observe * * example: * openModalDialog(..) * .then(returnValue => .. consume the returndata ...) * .catch(dismissed => .. mostly do nothing ) * */ export declare function openModalDlg, T, R>(modal: Modal, content: string | TemplateRef | (new (...args: any[]) => C), dlgData: Partial | null, centered?: boolean, escapeAllowed?: boolean, scrollable?: boolean): Promise;