import { MatDialog } from '@angular/material/dialog'; import { Observable } from 'rxjs'; import { ActionDialogData } from './action-dialog.component'; import * as i0 from "@angular/core"; export declare class DialogService { private dialog; constructor(dialog: MatDialog); open(data: ActionDialogData): Observable; confirm(options: ActionDialogData): Observable; success(options: ActionDialogData): Observable; info(options: ActionDialogData): Observable; /** * Opens a confirmation dialog that keeps opened while the provided async `work` runs. * The dialog closes with `true` only if the async work resolves successfully. * If the async work fails, the dialog remains open and shows an error message. */ confirmAsync(options: ActionDialogData, work: () => Observable | Promise): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }