import { Injector, TemplateRef } from '@angular/core'; import { NwbDialogComponent } from './dialog.component'; import { DomService } from '../shared/dom/dom.service'; export declare class NwbDialogService { private domService; private injector; constructor(domService: DomService, injector: Injector); open(config: NwbDialogConfig): NwbDialogComponent; openFromComponent(componentOrTemplateRef: ComponentType | TemplateRef, config: NwbDialogConfig): NwbDialogComponent; private getComponentRef; } export declare class NwbDialogConfig { /** Dialog's content */ message?: string; /** Dialog's title */ title: string; /** Text of the ok button. If none the button won't be displayed */ okButtonText?: string; /** Text of the cancel button. If none the button won't be displayed */ cancelButtonText?: string; /** Width of the dialog. */ width?: string; /** Whether the dialog has a backdrop. */ hasBackdrop?: boolean; /** Custom method to call when ok button is clicked */ okHandler?: Function; /** Custom method to call when cancel button is clicked */ cancelHandler?: Function; /** Display the spinner inside the dialog **/ loading?: boolean; } export interface ComponentType { new (...args: any[]): T; }