import { ESPCDFGroup } from "../../entities/ESPCDFGroup"; import GroupStore from "../groupStore"; import { ESPCDFGroupSharingRequest } from "../../entities/ESPCDFGroupSharingRequest"; /** * Synchronizer for GroupStore reactive operations * Handles all reactive logic for group operations, keeping GroupStore 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 GroupStoreSynchronizer { private groupStore; private rootStore; private unsubscribes; private groupSharingRequestUnsubscribes; constructor(groupStore: GroupStore, rootStore: any); /** * Attach a group entity to the synchronizer * Sets up reactive listeners for all group operations * @param group - The group entity to attach */ attach(group: ESPCDFGroup): void; /** * Detach a group entity from the synchronizer * Removes reactive listeners and cleans up * @param groupId - The identifier of the group to detach */ detach(groupId: string): void; /** * Attach a group sharing request entity to the synchronizer * Sets up reactive listeners for all group sharing request operations * @param request - The group sharing request entity to attach * @param type - Whether this is an 'issued' or 'received' request */ attachGroupSharingRequest(request: ESPCDFGroupSharingRequest, type: "issued" | "received"): void; /** * Detach a group sharing request entity from the synchronizer * Removes reactive listeners and cleans up * @param requestId - The identifier of the group sharing request to detach */ detachGroupSharingRequest(requestId: string): void; /** * Dispose all subscriptions and clean up */ dispose(): void; /** * Handle group operation events and update stores accordingly * This is where all reactive business logic lives - not in the stores themselves */ private handleOperation; /** * Merges node list into nodeStore and the group's {@link ESPCDFGroup.nodeDetails}. */ /** * Drops the nodes of a home that was deleted or left, unless another home * still lists them, so they do not linger in memory or in the snapshot. */ private pruneNodesOfRemovedHome; /** Fetched nodes land through the store, which also fills the home's rooms and drops snapshot nodes the reply lacks. */ private syncGroupNodes; /** * After {@link ESPCDFGroup.convertToMatterFabric}, replace or patch the store entry * with the SDK fabric group (same id, updated {@link isMatter}, {@link fabricId}, operations). */ private applyFabricGroupUpdate; /** * Handle group sharing request operation events and update stores accordingly * This is where all reactive business logic lives - not in the stores themselves */ private handleGroupSharingRequestOperation; }