import { Observable } from 'rxjs'; import { ComponentType, NwbDialogConfig } from './dialog.service'; import { ComponentFactoryResolver, ElementRef, EventEmitter, OnInit, TemplateRef, ViewContainerRef } from '@angular/core'; import { AnimationEvent } from '@angular/animations'; export declare class NwbDialogComponent implements OnInit { private componentFactoryResolver; componentSection: ViewContainerRef; okButtonEl: ElementRef; cancelButtonEl: ElementRef; backdropButtonEl: ElementRef; headerEl: ElementRef; footerEl: ElementRef; ready: EventEmitter; componentInstance: T; hasComponent: boolean; config: NwbDialogConfig; /** Subject for notifying the user that the dialog has finished closing. */ private _afterClosed; open: boolean; private fromOkButton; constructor(componentFactoryResolver: ComponentFactoryResolver); ngOnInit(): void; _keypress(): void; /** Method to call when backdrop button is clicked */ backdropHandler(): void; /** Method to call when cancel button is clicked */ cancelHandler(): void; /** Method to call when ok button is clicked */ okHandler(): void; /** Gonna disable all buttons and make the ok button loading */ disableButtonsAndMakeOkButtonLoading(): void; /** Gonna enable all buttons and make the ok button not loading */ enableButtonsAndMakeOkButtonNotLoading(): void; /** Dismiss the dialog */ dismiss(fromOkButton: boolean): void; animationDone(event: AnimationEvent): void; /** * Gets an observable that is notified when the dialog is finished closing. */ afterClosed(): Observable; hideSpinner(): void; displaySpinner(): void; _setComponent(componentOrTemplateRef: ComponentType | TemplateRef): void; }