import { DatoDialogOptions, DatoDialogResult } from './config/dialog.options'; import { Observable } from 'rxjs'; import { beforeClosedDelegate } from '../types/public_api'; export declare class DatoDialogRef { /** * Will be used for disable the closing */ private _beforeClose; private _afterClose; private _destroy; private _destroySubject; private _data; private _dialogOptions; get $destroyed(): Observable; get data(): any; set options(options: DatoDialogOptions); get options(): DatoDialogOptions; constructor(); /** * Closing the dialog, passing an optional result. */ close(result?: any): void; /** * Dismiss the dialog, passing an optional reason. */ dismiss(reason?: any): void; /** * Register a handler function to be invoked just before the dialog dismissed. * The handler should return a boolean indicate if the dialog can be closed. * @param {beforeClosedDelegate} fn */ beforeClosed(fn: beforeClosedDelegate): void; /** * Gets an observable that is notified when the dialog is finished closing. */ afterClosed(): Observable; /** * Check and close the dialog * @param {DatoDialogResult} result */ private tryClose; /** * Check if the dialog can be closed * @param result * @return {Observable} */ private canClose; private destroy; _setData(data: any): void; _onDestroy(destroyFn: () => void): void; }