import { Observable, Subject } from 'rxjs';
export declare enum FD_DIALOG_DISMISS_REASON {
    ESCAPE = "escape",
    BACKDROP = "backdrop",
    NAVIGATION_CHANGE = "navigation change"
}
export declare class DialogRefBase<T, P = any> {
    /** @hidden */
    _endClose$: Subject<void>;
    /**
     * Observable that is triggered when the dialog is closed.
     * On close a *result* is passed back. On dismiss, an *error* is returned instead.
     */
    afterClosed: Observable<P | undefined>;
    /** Observable that is triggered when the modal view is initialised. */
    afterLoaded: Observable<boolean>;
    /** Data passed from the calling component to the content.*/
    data: T;
    /** @hidden */
    protected readonly _afterClosed: Subject<P | undefined>;
    /** @hidden */
    protected readonly _afterLoaded: Subject<boolean>;
    /** @hidden */
    constructor();
    /**
     * Closes the dialog and emits the result to the afterClosed observable.
     * @param result Value passed back to the observable as a result.
     */
    close(result?: P): void;
    /**
     * Dismisses the dialog and passes the argument to the afterClosed observable as an error.
     * @param reason Value passed back to the observable as an error.
     */
    dismiss(reason?: FD_DIALOG_DISMISS_REASON | any): void;
    /** Function that is called after the view of modal is initialised. */
    loaded(): void;
}
