import { Dialog, DialogRef } from '@angular/cdk/dialog'; import { ComponentType } from '@angular/cdk/overlay'; import { TemplateRef } from '@angular/core'; import { SapphireOverlay } from '../../theme/src/sapphire-overlay.service'; import { ThemeBaseDirective } from '../../theme/src/theme-base.directive'; import * as i0 from "@angular/core"; export interface ModalOptions { /** * Whether to close the dialog when the backdrop is clicked/touched. * @default false */ dismissable?: boolean; /** * Whether pressing the escape key to close the dialog should be disabled. * @default false */ keyboardDismissDisabled?: boolean; /** * The theme to apply on the opened modal. It allows for injecting and * passing along the "current" theme, when `ModalService` is used in a * trigger component. */ theme?: ThemeBaseDirective; } export declare class ModalService { private cdkDialog; private overlay; constructor(cdkDialog: Dialog, overlay: SapphireOverlay); private open; openDialog(componentOrTemplateRef: ComponentType | TemplateRef, options?: ModalOptions): DialogRef; openPanel(componentOrTemplateRef: ComponentType | TemplateRef, options?: ModalOptions): DialogRef; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }