import { EntityField, DialogInputContent, ModuleManager } from '@narik/infrastructure'; import { DialogService, MessageType, DialogOption, DialogResult, DialogRef, DialogAction, DialogContainer, EventAggregatorService, DialogOverlayContainer, DialogEvent, FieldTypes } from '@narik/infrastructure'; import { Type, TemplateRef, ComponentFactoryResolver, ApplicationRef, ComponentRef, Injector, ComponentFactory, NgModuleRef, ElementRef, StaticProvider, RendererFactory2 } from '@angular/core'; import { ReplaySubject } from 'rxjs'; import { GlobalConfig } from 'ngx-toastr'; import * as i0 from "@angular/core"; export declare class NarikDialogService extends DialogService { private injector; private dialogOverlayContainerType; private applicationRef; private componentFactoryResolver; private eventAggregatorService; private moduleManager; private document; private toastrOption; private openDialogs; private injectors; nextUniqueId: number; private toastrService; private translateService; messageComponent: Type; inputComponent: Type; contentComponent: Type; dialogContainerType: Type; rendererFactory: RendererFactory2; constructor(injector: Injector, dialogOverlayContainerType: Type, applicationRef: ApplicationRef, componentFactoryResolver: ComponentFactoryResolver, eventAggregatorService: EventAggregatorService, moduleManager: ModuleManager, moduleRef: NgModuleRef, document: any, toastrOption: GlobalConfig); private registerModule; activeDialogId(): string; isElementInActiveDialog(el: ElementRef): boolean; error(message: string | string[] | any, title?: string, options?: any): void; showMessage(message: string | string[], title?: string, type?: MessageType, options?: any): void; showDialog(content: Type | TemplateRef | ComponentFactory | string, title?: string, data?: any, actions?: DialogAction[], options?: DialogOption, validateOnClose?: (dialogResult: DialogResult) => boolean | Promise, onClose?: (dialogResult: DialogResult) => void, providers?: StaticProvider[]): DialogRef; showConfirm(message: string, title?: string, actions?: DialogAction[], onResult?: (dialogResult: DialogResult) => void): DialogRef; showMessageBox(message: string, title?: string): DialogRef; showInput(message: string, title?: string, fields?: EntityField[], entity?: any, onResult?: (dialogResult: DialogResult) => void, actions?: DialogAction[], options?: DialogOption): DialogRef; showTextInput(message: string, title?: string, placeHolder?: string, fieldType?: FieldTypes, defaultValue?: any, onResult?: (dialogResult: DialogResult) => void, actions?: DialogAction[], options?: DialogOption): DialogRef; showContent(content: string, title?: string): DialogRef; closeAll(force?: boolean): void; close(dialog: DialogRef | string, dialogResult?: DialogResult, eventSource?: 'DIALOG' | 'CONTENT'): void; private doClose; private createDialogContainer; createOverlay(options: DialogOption): ComponentRef; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export declare class NarikDialogRef implements DialogRef { _closed: Promise>; dialogResultTransformer: (result: DialogResult) => DialogResult; eventSubject: ReplaySubject; id: string; componentInstance: T; container: DialogContainer; dialogOverlayContainerRef: ComponentRef; get closed(): Promise>; element: ElementRef; get events(): ReplaySubject; constructor(id: string, componentInstance: T); close(dialogResult?: DialogResult, eventSource?: 'DIALOG' | 'CONTENT'): void; } export declare class DialogActions { static ok: DialogAction; static cancel: DialogAction; static yes: DialogAction; static no: DialogAction; static ok_cancel: DialogAction[]; static yes_no: DialogAction[]; }