             useSubscribe,
                useLocalState,

                clearCache: () => {
                    stateCache.clear();
                    subscriberCache.clear();
                },
                getCacheStats: () => ({
                    stateCache: stateCache.size,
                    subscriberCache: subscriberCache.size,
                    totalSubscribers: Array.from(subscriberCache.values())
                        .reduce((sum, set) => sum + set.size, 0)
                }),

    