import { ComponentType, Overlay } from '@angular/cdk/overlay'; import { DialogRef } from './dialog-ref'; import { DialogConfig } from './dialog-config'; export declare class DialogService { private overlay; /** The opened dialogs (last in, first out) */ private openDialogs; constructor(overlay: Overlay); /** * Opens a dialog containing the given component. * * @param component Type of the the component to load into the dialog. * @param config Dialog configuration options. * @returns reference Reference of the newly-opened dialog. */ open(component: ComponentType, config?: DialogConfig): DialogRef; /** * Closes all opened dialogs. */ closeAll(): void; /** * Creates the overlay into which the dialog will be loaded. */ private createOverlay; /** * Attaches a DialogComponent to the overlay. */ private attachContainer; /** * Attaches the user-provided component to the already-created container. */ private attachContent; /** * Creates a custom injector to be used inside the dialog. * * This allows the component loaded inside to access the dialogs' * configuration and methods (e.g. to close itself) using DI. */ private createInjector; /** * Add a newly-opened dialog. */ private addOpenDialog; /** * Remove a open dialog. */ private removeOpenDialog; }