import { ThemePalette } from '@angular/material/core'; import * as i0 from '@angular/core'; import { WritableSignal, Injector } from '@angular/core'; import { Direction } from '@angular/cdk/bidi'; import * as _angular_cdk_overlay from '@angular/cdk/overlay'; import { ScrollStrategy, ComponentType } from '@angular/cdk/overlay'; import { DialogPosition, MatDialog, MatDialogConfig } from '@angular/material/dialog'; import { ComponentPortal } from '@angular/cdk/portal'; import { Observable } from 'rxjs'; interface MessageDialogData { title: string; message: string; actions: Array<{ type: string; label: string; color: ThemePalette; }>; } declare class MessageDialogComponent { readonly data: MessageDialogData; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface MessageDialogConfig { /** Custom class for the overlay pane. */ panelClass?: string | string[]; /** Whether the dialog has a backdrop. */ hasBackdrop?: boolean; /** Custom class for the backdrop. */ backdropClass?: string; /** Width of the dialog. */ width?: string; /** Height of the dialog. */ height?: string; /** Min-width of the dialog. If a number is provided, assumes pixel units. */ minWidth?: number | string; /** Min-height of the dialog. If a number is provided, assumes pixel units. */ minHeight?: number | string; /** Max-width of the dialog. If a number is provided, assumes pixel units. Defaults to 80vw. */ maxWidth?: number | string; /** Max-height of the dialog. If a number is provided, assumes pixel units. */ maxHeight?: number | string; /** Position overrides. */ position?: DialogPosition; /** Layout direction for the dialog's content. */ direction?: Direction; /** ID of the element that describes the dialog. */ ariaDescribedBy?: string | null; /** ID of the element that labels the dialog. */ ariaLabelledBy?: string | null; /** Aria label to assign to the dialog element. */ ariaLabel?: string | null; /** Whether the dialog should focus the first focusable element on open. */ autoFocus?: boolean; /** * Whether the dialog should restore focus to the * previously-focused element, after it's closed. */ restoreFocus?: boolean; /** Scroll strategy to be used for the dialog. */ scrollStrategy?: ScrollStrategy; /** * Whether the dialog should close when the user goes backwards/forwards in history. * Note that this usually doesn't include clicking on links (unless the user is using * the `HashLocationStrategy`). */ closeOnNavigation?: boolean; } declare class MessageDialogService { private readonly dialog; open(data: MessageDialogData, config?: MessageDialogConfig): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface ErrorCaptureDialogData { errorList: WritableSignal; component: ComponentType; } declare class ErrorCaptureDialogComponent { protected readonly _data: ErrorCaptureDialogData; readonly component: _angular_cdk_overlay.ComponentType; readonly injector: Injector; readonly componentPortal: i0.Signal>; readonly data: i0.WritableSignal; readonly activeIndex: i0.WritableSignal; readonly displayedButtons: i0.Signal; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ErrorCaptureDialogService { protected readonly dialog: MatDialog; protected readonly disabled: boolean; open(component: ComponentType, errorList: WritableSignal): Observable; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵprov: i0.ɵɵInjectableDeclaration>; } interface ConfirmDialogData { message: string; action?: string; } declare class ConfirmDialogComponent { readonly action: string; readonly data: ConfirmDialogData; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface ConfirmDialogConfig { /** Custom class for the overlay pane. */ panelClass?: string | string[]; /** Whether the dialog has a backdrop. */ hasBackdrop?: boolean; /** Custom class for the backdrop. */ backdropClass?: string; /** Width of the dialog. */ width?: string; /** Height of the dialog. */ height?: string; /** Min-width of the dialog. If a number is provided, assumes pixel units. */ minWidth?: number | string; /** Min-height of the dialog. If a number is provided, assumes pixel units. */ minHeight?: number | string; /** Max-width of the dialog. If a number is provided, assumes pixel units. Defaults to 80vw. */ maxWidth?: number | string; /** Max-height of the dialog. If a number is provided, assumes pixel units. */ maxHeight?: number | string; /** Position overrides. */ position?: DialogPosition; /** Layout direction for the dialog's content. */ direction?: Direction; /** ID of the element that describes the dialog. */ ariaDescribedBy?: string | null; /** ID of the element that labels the dialog. */ ariaLabelledBy?: string | null; /** Aria label to assign to the dialog element. */ ariaLabel?: string | null; /** Whether the dialog should focus the first focusable element on open. */ autoFocus?: boolean; /** * Whether the dialog should restore focus to the * previously-focused element, after it's closed. */ restoreFocus?: boolean; /** Scroll strategy to be used for the dialog. */ scrollStrategy?: ScrollStrategy; /** * Whether the dialog should close when the user goes backwards/forwards in history. * Note that this usually doesn't include clicking on links (unless the user is using * the `HashLocationStrategy`). */ closeOnNavigation?: boolean; } declare class ConfirmDialogService { private readonly dialog; open(message: string, action?: string, config?: ConfirmDialogConfig): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface ComponentDialogData { component: ComponentType; title?: string; } type ComponentDialogConfig = MatDialogConfig>; declare class ComponentDialogComponent { readonly data: ComponentDialogData; readonly component: _angular_cdk_overlay.ComponentType; readonly portal: ComponentPortal; readonly title: string | undefined; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ComponentDialogService { protected readonly dialog: MatDialog; open(component: ComponentType, config?: ComponentDialogConfig): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export { ComponentDialogComponent, ComponentDialogService, ConfirmDialogComponent, ConfirmDialogService, ErrorCaptureDialogComponent, ErrorCaptureDialogService, MessageDialogComponent, MessageDialogService }; export type { ComponentDialogConfig, ComponentDialogData, ConfirmDialogConfig, ConfirmDialogData, ErrorCaptureDialogData, MessageDialogConfig, MessageDialogData };