import { DialogRef } from '@angular/cdk/dialog'; /** * Reference to a dialog opened via {@link DialogService.open}. Returned to the opener and * also injectable by the opened content component/template (to close with a result). * * Wraps the CDK `DialogRef`. `closed` is a `Promise` that resolves with the close result — or * `undefined` when the dialog is dismissed (close button / Escape / backdrop). CDK emits its * own `closed` synchronously inside `close()`, which can trigger `ExpressionChangedAfter- * ItHasBeenChecked` (NG0100) when a subscriber updates view state; a Promise defers to a * microtask, so handlers are change-detection safe. Using a Promise (rather than an rxjs * Observable) also keeps the library rxjs-free and mirrors ng-bootstrap's `NgbModalRef.result`. */ export declare class CompsychDialogRef { private readonly _cdkRef; /** Resolves once the dialog has closed, with the result (or `undefined` when dismissed). */ readonly closed: Promise; constructor(_cdkRef: DialogRef); /** The opened component instance, or `null` for template content. */ get componentInstance(): unknown; /** Unique id of the open dialog. */ get id(): string; /** Closes the dialog, optionally passing a result to `closed`. */ close(result?: R): void; }