import { ESPCDFNode } from "../../entities/ESPCDFNode"; import NodeStore from "../nodeStore"; /** * Synchronizer for NodeStore reactive operations * Handles all reactive logic for node operations, keeping NodeStore as a pure data store * * This class follows the Mediator pattern - it coordinates between entities and stores * without coupling them directly. This maintains SRP (Single Responsibility Principle). */ export declare class NodeStoreSynchronizer { private nodeStore; /** Called after a handled operation changed the tree (snapshot bookkeeping). */ private onTreeChanged; private nodeUnsubscribes; private deviceUnsubscribes; private serviceUnsubscribes; private deviceParamUnsubscribes; private serviceParamUnsubscribes; constructor(nodeStore: NodeStore, /** Called after a handled operation changed the tree (snapshot bookkeeping). */ onTreeChanged?: () => void); /** * Attach a node entity to the synchronizer * Sets up reactive listeners for all node operations and nested entities * @param node - The node entity to attach */ attach(node: ESPCDFNode): void; /** * Attach nested entities (devices, services, params) to the synchronizer */ private attachNestedEntities; /** * Detach a node entity from the synchronizer * Removes reactive listeners and cleans up * @param nodeId - The identifier of the node to detach */ detach(nodeId: string): void; /** * Dispose all subscriptions and clean up */ dispose(): void; /** * Handle node operation events and update stores accordingly */ private handleNodeOperation; /** * Handle device operation events */ private handleDeviceOperation; /** * Handle service operation events */ private handleServiceOperation; /** * Handle device param operation events */ private handleDeviceParamOperation; /** * Handle service param operation events */ private handleServiceParamOperation; }