import { TemplateRef, Type } from '@angular/core'; import { MatDialogConfig } from '@angular/material/dialog'; import { Observable } from 'rxjs'; export type DialogActionType = (...args: any[]) => Observable; export interface DialogOptions = {}> extends MatDialogConfig { component: Type | TemplateRef; config?: { title?: string; subTitle?: string; contentTemplate?: TemplateRef; actionsTemplate?: TemplateRef; actions?: Record; cancelable?: boolean; }; } export interface DialogData { dialogConfig: Pick; [x: string]: any; }