import { ESPCDFUser } from "../../entities/ESPCDFUser"; import UserStore from "../userStore"; import GroupStore from "../groupStore"; import NodeStore from "../nodeStore"; import AutomationStore from "../automationStore"; import ScheduleStore from "../scheduleStore"; import SceneStore from "../sceneStore"; /** * Synchronizer for UserStore reactive operations * Handles all reactive logic for user operations, keeping UserStore 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 UserStoreSynchronizer { private userStore; private groupStore; private nodeStore; private automationStore; private scheduleStore; private sceneStore; private unsubscribes; constructor(userStore: UserStore, groupStore: GroupStore, nodeStore: NodeStore, automationStore: AutomationStore, scheduleStore: ScheduleStore, sceneStore: SceneStore); /** * Attach a user entity to the synchronizer * Sets up reactive listeners for all user operations * @param user - The user entity to attach */ attach(user: ESPCDFUser): void; /** * Detach a user entity from the synchronizer * Removes reactive listeners and cleans up * @param userId - The identifier of the user to detach */ detach(userId: string): void; /** * Dispose all subscriptions and clean up */ dispose(): void; /** * Handle user operation events and update stores accordingly * This is where all reactive business logic lives - not in the stores themselves */ private handleOperation; }