import { ComponentType } from "@angular/cdk/overlay"; import { EventEmitter, TemplateRef } from "@angular/core"; import { MatDialog } from "@angular/material/dialog"; import { Observable } from "rxjs"; import * as i0 from "@angular/core"; export declare class DialogService { private dialog; update: EventEmitter; constructor(dialog: MatDialog); /** * @param options.icon : string The icon to display in the header; defaults to warning. * @param options.buttons : [string] The button text to display; defaults to one "OK" button. * @param options.id : string Dispatched in the 'dialog confirmation clicked' event. * @param options.component: any An optional Component class (template markup) to use. * @param options.width : string An overriding width (default 545px) in CSS-friendly form (e.g. "10px") * @param options.panelClass : string An optional class for the dropdown container (for custom styling) * @param options.metadata : any */ open(title: string, message: string, options?: DialogOptions | TemplateRef>): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export interface DialogOptions { id?: string; buttons?: string[] | { label: string; type: 'primary' | 'danger' | 'warning' | 'default' | 'cancel' | 'success'; }[]; icon?: string; panelClass?: string; width?: string; height?: string; metadata?: any; disableClose?: boolean; component?: TemplateRef | ComponentType; }