import { OverlayRef } from '@angular/cdk/overlay'; import { Observable } from 'rxjs'; import { DialogPosition, OuiDialogConfig } from './dialog-config'; import { OuiDialogContainer } from './dialog-container'; /** * Reference to a dialog opened via the OuiDialog service. */ export declare class OuiDialogRef { private _overlayRef; _containerInstance: OuiDialogContainer; readonly id: string; /** The instance of component opened into the dialog. */ componentInstance: T; /** Whether the user is allowed to close the dialog. */ disableClose: boolean | undefined; /** Subject for notifying the user that the dialog has finished opening. */ private readonly _afterOpened; /** Subject for notifying the user that the dialog has finished closing. */ private readonly _afterClosed; /** Subject for notifying the user that the dialog has started closing. */ private readonly _beforeClosed; /** Result to be passed to afterClosed. */ private _result; private _dialogConfig; get dialogConfig(): OuiDialogConfig; set dialogConfig(config: OuiDialogConfig); constructor(_overlayRef: OverlayRef, _containerInstance: OuiDialogContainer, id?: string); /** * Close the dialog. * * @param dialogResult Optional result to return to the dialog opener. */ close(dialogResult?: R): void; /** * Dynamically adds or removes focus from all open dialog containers. * * @param addFocus Whether to add focus (true) or remove focus (false). */ toggleFocus(addFocus: boolean): void; /** * Gets an observable that is notified when the dialog is finished opening. */ afterOpened(): Observable; /** * Gets an observable that is notified when the dialog is finished closing. */ afterClosed(): Observable; /** * Gets an observable that is notified when the dialog has started closing. */ beforeClosed(): Observable; /** * Gets an observable that emits when the overlay's backdrop has been clicked. */ backdropClick(): Observable; /** * Gets an observable that emits when keydown events are targeted on the overlay. */ keydownEvents(): Observable; /** * Updates the dialog's position. * * @param position New dialog position. */ updatePosition(position?: DialogPosition): this; /** * Updates the dialog's width and height. * * @param width New width of the dialog. * @param height New height of the dialog. */ updateSize(width?: string, height?: string): this; /** Fetches the position strategy object from the overlay ref. */ private _getPositionStrategy; } //# sourceMappingURL=dialog-ref.d.ts.map