import { EventEmitter, OnDestroy, ViewContainerRef, TemplateRef } from '@angular/core'; import { Overlay, TemplatePortalDirective } from '../core/index'; import * as i0 from "@angular/core"; export type DialogVisibility = 'initial' | 'visible' | 'hidden'; export type DialogRole = 'dialog' | 'alertdialog'; export declare class Md2DialogConfig { role?: DialogRole; disableClose?: boolean; } export declare class Md2DialogPortal extends TemplatePortalDirective { constructor(templateRef: TemplateRef, viewContainerRef: ViewContainerRef); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Title of a dialog element. Stays fixed to the top of the dialog when scrolling. */ export declare class Md2DialogTitle { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Scrollable content container of a dialog. */ export declare class Md2DialogContent { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Container for the bottom action buttons in a dialog. * Stays fixed to the bottom when scrolling. */ export declare class Md2DialogActions { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class Md2Dialog implements OnDestroy { private _overlay; private _parentDialog; private _openDialogsAtThisLevel; private _boundKeydown; private _panelOpen; private _overlayRef; private _backdropSubscription; config: Md2DialogConfig; /** Property watched by the animation framework to show or hide the dialog */ _visibility: DialogVisibility; constructor(_overlay: Overlay, _parentDialog: Md2Dialog); onOpen: EventEmitter; onClose: EventEmitter; /** The portal to send the dialog content through */ _portal: Md2DialogPortal; dialogTitle: string; ngOnDestroy(): void; get _openDialogs(): Array; /** Open the dialog */ open(config?: Md2DialogConfig): Promise; /** Close the dialog */ close(): Promise; /** Removes the panel from the DOM. */ destroyPanel(): void; _onPanelDone(): void; _handleKeydown(event: KeyboardEvent): void; private _subscribeToBackdrop; private _createOverlay; private _cleanUpSubscriptions; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }