import { Observable } from 'rxjs'; import { OverlayRef } from '@angular/cdk/overlay'; import { MdcDialogPortal } from './dialog-portal'; /** Reference to a dialog dispatched from the MdcDialog service. */ export declare class MdcDialogRef { private _overlayRef; _portalInstance: MdcDialogPortal; readonly id: string; /** The instance of the component in the dialog. */ componentInstance: T; /** Subject for notifying the user that the dialog has finished opening. */ private readonly _afterOpened; /** Subject for notifying the user that the dialog has started closing. */ private readonly _beforeClosed; /** Subject for notifying the user that the dialog has finished closing. */ private readonly _afterClosed; /** Result to be passed to afterClosed. */ private _result; constructor(_overlayRef: OverlayRef, _portalInstance: MdcDialogPortal, id?: string); /** * Close the dialog. * @param dialogResult Optional result to return to the dialog opener. */ close(dialogResult?: R): void; /** Marks the dialog as opened. */ opened(): void; /** Gets an observable that is notified when the dialog is finished opening. */ afterOpened(): Observable; /** Gets an observable that is notified when the dialog has started closing. */ beforeClosed(): Observable; /** Gets an observable that is notified when the dialog is finished closing. */ afterClosed(): Observable; }