import { OverlayRef } from '@angular/cdk/overlay';
import { TemplateRef, Type } from '@angular/core';
interface ModalCloseEvent {
    type: 'backdropClick' | 'close';
    data: any;
}
export declare type ModalContent = TemplateRef<any> | Type<any>;
export declare class ModalRef<T = object> {
    overlay: OverlayRef;
    content: ModalContent;
    data: T;
    backdropClickExit: boolean;
    private onHide;
    onHide$: import("rxjs/internal/Observable").Observable<ModalCloseEvent>;
    constructor(overlay: OverlayRef, content: ModalContent, data: T, backdropClickExit: boolean);
    close(data?: T): void;
    private _close;
}
export {};
