{"version":3,"file":"modal.d.ts","sources":["modal.d.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA","sourcesContent":["import { Injector, ComponentFactoryResolver } from '@angular/core';\r\nimport { NgbModalOptions, NgbModalConfig } from './modal-config';\r\nimport { NgbModalRef } from './modal-ref';\r\nimport { NgbModalStack } from './modal-stack';\r\n/**\r\n * A service for opening modal windows.\r\n *\r\n * Creating a modal is straightforward: create a component or a template and pass it as an argument to\r\n * the `.open()` method.\r\n */\r\nexport declare class NgbModal {\r\n    private _moduleCFR;\r\n    private _injector;\r\n    private _modalStack;\r\n    private _config;\r\n    constructor(_moduleCFR: ComponentFactoryResolver, _injector: Injector, _modalStack: NgbModalStack, _config: NgbModalConfig);\r\n    /**\r\n     * Opens a new modal window with the specified content and supplied options.\r\n     *\r\n     * Content can be provided as a `TemplateRef` or a component type. If you pass a component type as content,\r\n     * then instances of those components can be injected with an instance of the `NgbActiveModal` class. You can then\r\n     * use `NgbActiveModal` methods to close / dismiss modals from \"inside\" of your component.\r\n     *\r\n     * Also see the [`NgbModalOptions`](#/components/modal/api#NgbModalOptions) for the list of supported options.\r\n     */\r\n    open(content: any, options?: NgbModalOptions): NgbModalRef;\r\n    /**\r\n     * Dismisses all currently displayed modal windows with the supplied reason.\r\n     *\r\n     * @since 3.1.0\r\n     */\r\n    dismissAll(reason?: any): void;\r\n    /**\r\n     * Indicates if there are currently any open modal windows in the application.\r\n     *\r\n     * @since 3.3.0\r\n     */\r\n    hasOpenModals(): boolean;\r\n}\r\n"]}