import { Type, ComponentFactoryResolver, ViewContainerRef } from '@angular/core'; import { ModalConfig } from '../models/ModalConfig'; import { ModalDialogInstance } from '../models/ModalDialogInstance'; import * as i0 from "@angular/core"; export declare class Modal { private componentFactoryResolver; private appRef; static hostViewRef: ViewContainerRef; static openDialogList: any[]; theDialog: any; constructor(componentFactoryResolver: ComponentFactoryResolver, appRef: ViewContainerRef, defaultConfig: ModalConfig); /** * Opens a modal window blocking the whole screen. * @param componentType The angular Component to render as modal. * @param parameters parameters to be passed to the dialog instance. * @param config A Modal Configuration object. * @param allowMultiple indicates if multiple version of the same dialog are allowed. * @param dialogID a dialog identification token to control multiple occurrences. * @returns Promise */ open(componentType: any, parameters?: any, config?: ModalConfig, allowMultiple?: boolean, dialogID?: string): Promise; /** * Opens a modal window inside an existing component. * @param componentType The angular Component to render as modal. * @param viewRef The element to block using the modal. * @param parameters parameters to be passed to the dialog instance. * @param config A Modal Configuration object. * @param allowMultiple indicates if multiple version of the same dialog are allowed. * @param dialogID a dialog identification token to control multiple occurrences. * @returns Promise */ openInside(componentType: Type, viewRef: ViewContainerRef, parameters: any, config?: ModalConfig, allowMultiple?: boolean, dialogID?: string): Promise; closeDialog(event: any, theDialogInstance: ModalDialogInstance): void; /** * Opens a modal window blocking the whole screen. * @param componentType The angular Component to render as modal. * @param parameters parameters to be passed to the dialog instance. * @param allowMultiple indicates if multiple version of the same dialog are allowed. * @param dialogID a dialog identification token to control multiple occurrences. * @returns Promise */ openDialog(component: any, parameters: any, allowMultiple?: boolean, dialogID?: string): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }