import { ApplicationRef, ComponentFactoryResolver, Injector } from '@angular/core'; import { DatoDialogRef } from './dialog-ref'; import { DatoDialogOptions } from './config/dialog.options'; import { DatoConfirmationOptions } from './config/dialog-confirmation.options'; import { DatoTranslateService } from '../services/translate.service'; import { ContentType } from '../dynamic-content/dynamic-content.types'; export declare class DatoDialog { private resolver; private applicationRef; private injector; private translate; private dialogs; private dialogsStack; constructor(resolver: ComponentFactoryResolver, applicationRef: ApplicationRef, injector: Injector, translate: DatoTranslateService); isOpen(id: string): boolean; /** * Creates and open a new dialog */ open(content: ContentType, options?: Partial): DatoDialogRef; /** * Creates and open a new confirmation dialog. */ confirm(options?: Partial): DatoDialogRef; /** * Closing all the open dialogs, passing an optional result. */ closeAll(result?: any): void; closeAllExcept(ids: string[], result?: any): void; /** * Dismiss all the open dialogs, passing an optional reason. */ dismissAll(reason?: any): void; /** * Finds the closest dialog to an element by looking at the DOM. */ getClosestDialogElement(element: HTMLElement): HTMLElement; private getOptions; private createDialogRef; private createDialogComponent; private injectToDOM; private createInjector; private registerEvents; /** * Cleaning to prevent memory leaks */ private onDestroy; private generateNgContent; }