import { UmbInteractionMemoryManager } from './interaction-memory.manager.js'; import { UmbContextBase } from '../../../libs/class-api/index.js'; import type { UmbControllerHost } from '../../../libs/controller-api/index.js'; /** * One scope of interaction memory, for the modals opened from here. A modal is rendered in the modal * portal rather than as a descendant of whatever opened it, so this context is how the two reach each * other — see `UmbModalInteractionMemoryController`. * * Scopes nest: consumers resolve the nearest one, so each layer can hold its children's memories under * a single key of its own and no layer needs to know another layer's keys. Distinct from * `UMB_INTERACTION_MEMORY_CONTEXT`, which is the single page-wide store a scope's memories eventually * reach. * @exports * @class UmbInteractionMemoryScopeContext * @augments {UmbContextBase} */ export declare class UmbInteractionMemoryScopeContext extends UmbContextBase { readonly memory: UmbInteractionMemoryManager; /** * Creates an instance of UmbInteractionMemoryScopeContext. * @param {UmbControllerHost} host - The host for the controller. * @param {UmbInteractionMemoryManager} [memory] - The manager to expose as this scope. Pass one when * the owner already holds a manager of its own; otherwise the scope creates one. * @memberof UmbInteractionMemoryScopeContext */ constructor(host: UmbControllerHost, memory?: UmbInteractionMemoryManager); }