import { ComponentRef } from '@angular/core'; import * as i0 from "@angular/core"; /** * API to an open modal window. */ export declare class ModalDialogInstance { contentRef: ComponentRef; kendoDialog: any; /** * States if the modal is inside a specific element. */ inElement: boolean; private _bootstrapRef; private _backdropRef; private _resultDefered; constructor(); set backdropRef(value: ComponentRef); set bootstrapRef(value: ComponentRef); /** * A Promise that is resolved on a close event and rejected on a dismiss event. * @returns Promise|any|*|Promise */ get result(): Promise; /** * set the dialog title */ setTitle(title: string): void; /** * before dismiss function, which is called when user closes the dialog * * @returns true, to proceed wih the dialog close, or */ set beforeDismiss(v: Function); get beforeDismiss(): Function; /** * Close the modal with a return value, i.e: result. */ close(result?: any): void; /** * Close the modal without a return value, i.e: cancelled. * This call is automatically invoked when a user either: * - Presses an exit keyboard key (if configured). * - Clicks outside of the modal window (if configured). * Usually, dismiss represent a Cancel button or a X button. */ dismiss(): void; private dispose; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }