import { TemplateRef } from '@angular/core'; import { NgbModal, NgbModalOptions, NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import { BaseComponent } from '../base/base.component'; export declare abstract class ModalComponent extends BaseComponent { protected modalService: NgbModal; private readonly options?; /** * Reference to the actual template. This uses 'template' as template name. */ abstract template: TemplateRef; /** * Reference (ModalRef) to the actual modal. */ abstract modalRef: NgbModalRef; constructor(modalService: NgbModal, options?: NgbModalOptions); /** * This function calls, when the modal starts opening. */ openModal(): void; /** * This function calls, when the modal starts closing. */ closeModal(): void; } export interface ModalComponent { /** * This function starts during the modal is closing. */ beforeClose?(): void; /** * This function starts during the modal is opening. */ beforeOpen?(): void; }