import type { UmbModalToken } from '../token/modal-token.js'; import { UmbModalContext } from './modal.context.js'; import type { UmbModalContextClassArgs } from './modal.context.js'; import { UmbContextBase } from '../../../../libs/class-api/index.js'; import type { UmbControllerHost } from '../../../../libs/controller-api/index.js'; export declare class UmbModalManagerContext extends UmbContextBase { #private; readonly modals: import("rxjs").Observable[]>; constructor(host: UmbControllerHost); /** * Opens a modal or sidebar modal * @public * @param {UmbControllerHost} host - The host that the modal should be attached to, this is usually the controller/element that is opening the modal. This additionally acts as the modal origin for the context api. * @param {(string | UmbModalToken)} modalAlias - The alias or token of the modal to open * @param {UmbModalContextClassArgs} args - The arguments for this setup. * @returns {*} {UmbModalHandler} * @memberof UmbModalManagerContext */ open>(host: UmbControllerHost, modalAlias: UmbModalToken | string, args?: UmbModalContextClassArgs): UmbModalContext; /** * Closes a modal or sidebar modal * @private * @param {string} key - The key of the modal to close * @memberof UmbModalManagerContext */ close(key: string): void; remove(key: string): void; destroy(): void; } export { UMB_MODAL_MANAGER_CONTEXT } from './modal-manager.context-token.js';