import { MatDialogRef } from '@angular/material/dialog'; import { Color } from '@sdcorejs/utils/models'; import * as i0 from '@angular/core'; interface DialogData { icon?: string; title?: string; message?: string; yesTitle?: string; noTitle?: string; yesButtonColor?: Color; noButtonColor?: Color; input?: { placeholder?: string; minlength?: number; maxlength?: number; required?: boolean; defaultValue?: string; }; date?: { required?: boolean; placeholder?: string; defaultValue?: string | Date; min?: string | Date; max?: string | Date; }; datetime?: { required?: boolean; placeholder?: string; defaultValue?: string | Date; min?: string | Date; max?: string | Date; showSeconds?: boolean; }; radio?: { required?: boolean; defaultValue?: string | number; items: any[]; valueField: string; displayField: string; display?: 'row' | 'column'; }; select?: { required?: boolean; defaultValue?: string | number | (string | number)[]; items: any[]; valueField: string; displayField: string; placeholder?: string; multiple?: boolean; }; } declare class DialogConfirmComponent { value: any; required: boolean; id: string; readonly dialogRef: MatDialogRef; readonly data: DialogData; constructor(); onCancel: () => void; onAccept: () => void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdConfirmService { #private; private dialog; /** Inserted by Angular inject() migration for backwards compatibility */ constructor(...args: unknown[]); confirm: (message: string, option?: { title?: string; yesTitle?: string; noTitle?: string; yesButtonColor?: Color; noButtonColor?: Color; width?: string; disableBackdropClose?: boolean; }) => Promise; withInput: (message?: string, option?: { title?: string; yesTitle?: string; noTitle?: string; required?: boolean; maxlength?: number; yesButtonColor?: Color; noButtonColor?: Color; defaultValue?: string; disableBackdropClose?: boolean; }) => Promise; withRadio: (message?: string, option?: { title?: string; yesTitle?: string; noTitle?: string; required?: boolean; yesButtonColor?: Color; noButtonColor?: Color; defaultValue?: string | number; items: any[]; valueField: string; displayField: string; display?: "row" | "column"; disableBackdropClose?: boolean; }) => Promise; withSelect: (message?: string, option?: { title?: string; yesTitle?: string; noTitle?: string; required?: boolean; yesButtonColor?: Color; noButtonColor?: Color; defaultValue?: string | number | (string | number)[]; items: any[]; valueField: string; displayField: string; placeholder?: string; multiple?: boolean; disableBackdropClose?: boolean; }) => Promise; withDate: (message?: string, option?: { title?: string; yesTitle?: string; noTitle?: string; required?: boolean; yesButtonColor?: Color; noButtonColor?: Color; defaultValue?: string | Date; placeholder?: string; min?: string | Date; max?: string | Date; disableBackdropClose?: boolean; }) => Promise; withDatetime: (message?: string, option?: { title?: string; yesTitle?: string; noTitle?: string; required?: boolean; yesButtonColor?: Color; noButtonColor?: Color; defaultValue?: string | Date; placeholder?: string; min?: string | Date; max?: string | Date; showSeconds?: boolean; disableBackdropClose?: boolean; }) => Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export { DialogConfirmComponent, SdConfirmService }; export type { DialogData };