import { TemplateRef } from '@angular/core'; import { NgbModal, NgbModalOptions, NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import { Observable } from 'rxjs'; import { CreateComponent } from '../create/create.component'; export declare abstract class CreateModalComponent extends CreateComponent { protected modalService: NgbModal; private readonly options?; /** * Reference to the actual template. This uses 'template' as template name. */ template: TemplateRef; /** * Reference (ModalRef) to the actual modal. */ 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; protected abstract initModel(): T; protected abstract createModel(): Observable; } export interface CreateModalComponent { /** * This function starts during the modal is closing. */ beforeClose?(): void; /** * This function starts during the modal is opening. */ beforeOpen?(): void; }