import { Injector, ComponentFactoryResolver } from '@angular/core'; import { NgbModalOptions, NgbModalConfig } from './modal-config'; import { NgbModalRef } from './modal-ref'; import { NgbModalStack } from './modal-stack'; /** * A service to open modal windows. Creating a modal is straightforward: create a template and pass it as an argument to * the "open" method! */ export declare class NgbModal { private _moduleCFR; private _injector; private _modalStack; private _config; constructor(_moduleCFR: ComponentFactoryResolver, _injector: Injector, _modalStack: NgbModalStack, _config: NgbModalConfig); /** * Opens a new modal window with the specified content and using supplied options. Content can be provided * as a TemplateRef or a component type. If you pass a component type as content than instances of those * components can be injected with an instance of the NgbActiveModal class. You can use methods on the * NgbActiveModal class to close / dismiss modals from "inside" of a component. */ open(content: any, options?: NgbModalOptions): NgbModalRef; /** * Dismiss all currently displayed modal windows with the supplied reason. * * @since 3.1.0 */ dismissAll(reason?: any): void; /** * Indicates if there are currently any open modal windows in the application. * * @since 3.3.0 */ hasOpenModals(): boolean; }