import { HcModal } from './modal'; import { ApplicationRef, ComponentFactoryResolver, Injector, RendererFactory2, TemplateRef, Type } from '@angular/core'; import { ModalOptions } from './modal-options'; export declare type ModalContentType = Type<{}> | TemplateRef; export declare class ModalService { private _componentFactory; private _injector; private _applicationRef; /** Defaults to false. Restricts multiple modals from being opened on top of each other * (an error will be thrown if attempted). It's generally considered bad practice to open multiple * models at once, so only change this with good reason. */ allowMultiple: boolean; private _zIndexCounter; private _renderer; private _modalsOpen; constructor(_componentFactory: ComponentFactoryResolver, _injector: Injector, _applicationRef: ApplicationRef, _rendererFactory: RendererFactory2); /** Opens a new modal either from a Component or a TemplateRef with the options specified in ModalOptions * In order to use a component, it must be specified in your module's EntryComponents. */ open(modalContent: ModalContentType, modalOptions?: ModalOptions): HcModal; }