import type { UmbInteractionMemoryManager } from './interaction-memory.manager.js'; import type { UmbInteractionMemoryModel } from './types.js'; import { UmbControllerBase } from '../../../libs/class-api/index.js'; import type { UmbControllerHost } from '../../../libs/controller-api/index.js'; /** * Bridges an interaction memory manager to the element hosting it: memories are given to the manager through * {@link setMemories} — mirroring an `interactionMemories` element property — and every change made to the manager * dispatches an `interaction-memories-change` event on the host element. * * Use this in an element that hands its interaction memories to whoever is responsible for storing them, ex. a * workspace view writing them to the global interaction memory. * @exports * @class UmbElementInteractionMemoryBridgeController * @augments {UmbControllerBase} */ export declare class UmbElementInteractionMemoryBridgeController extends UmbControllerBase { #private; /** * Creates an instance of UmbElementInteractionMemoryBridgeController. * @param {UmbControllerHost} host - The host of this controller; the change event is dispatched on its element. * @param {UmbInteractionMemoryManager} interactionMemory - The interaction memory manager to bridge. * @memberof UmbElementInteractionMemoryBridgeController */ constructor(host: UmbControllerHost, interactionMemory: UmbInteractionMemoryManager); /** * Gets all interaction memories currently held by the bridged manager. * @returns {Array} The current interaction memories. * @memberof UmbElementInteractionMemoryBridgeController */ getMemories(): Array; /** * Syncs the bridged manager to the provided snapshot. The incoming array is authoritative: memories no longer * present are removed, the rest are added or updated. Applied in one write, so restoring a snapshot never * dispatches a change event for the memories the element was just handed, nor for the intermediate states of * applying them one by one. * @param {Array | undefined} value - The authoritative snapshot of interaction memories. * @memberof UmbElementInteractionMemoryBridgeController */ setMemories(value: Array | undefined): void; }