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