/** * Module-level bookkeeping shared by `proxy`/`subscribe`/`useSnapshot`. * The map from path → subscriber set is what `valtio://path/{path}/subscribers` * shows; the reducer reads it indirectly via `subscription-added` * events but we also keep a local copy so `useSnapshot` can attach the * subscriber list inline to a `state-update`. */ export interface SubscriptionEntry { storeId: string; path: string; componentInstanceId: string; } export declare function registerStore(storeId: string, source?: string): void; export declare function tagProxy(proxyObject: object, storeId: string): void; export declare function storeIdOf(proxyObject: object): string | undefined; export declare function isStoreRegistered(storeId: string): boolean; export declare function addSubscription(entry: SubscriptionEntry): void; export declare function removeSubscription(entry: SubscriptionEntry): void; export declare function subscribersFor(storeId: string, path: string): string[]; /** Walk every prefix of `path` and union the subscribers. Used when a * state-update lands on a nested path but parent-path snapshot users * also need to be notified. */ export declare function subscribersForPathAndParents(storeId: string, path: string): string[]; export declare function resetRegistry(): void;