import { LocalNode } from "cojson"; import type { CoValueClassOrSchema, CoValueCursor, Loaded, ResolveQuery } from "../internal.js"; import { SubscriptionScope } from "./SubscriptionScope.js"; import type { BranchDefinition } from "./types.js"; export declare class SubscriptionCache { private cache; private cleanupTimeout; constructor(cleanupTimeout?: number); /** * Get the inner set for a given id (read-only access) */ private getIdSet; /** * Get the inner set for a given id, creating it if it doesn't exist */ private getIdSetOrCreate; /** * Check if an entry matches the provided parameters */ private matchesEntry; /** * Find a matching cache entry by comparing against entry properties * Uses id-based nesting to quickly filter candidates */ private findMatchingEntry; /** * Handle subscriber count changes from SubscriptionScope */ private handleSubscriberChange; /** * Schedule cleanup timeout for an entry */ private scheduleCleanup; /** * Cancel pending cleanup timeout for an entry */ private cancelCleanup; /** * Destroy a cache entry and its SubscriptionScope */ private destroyEntry; /** * Get or create a SubscriptionScope from the cache */ getOrCreate(node: LocalNode, schema: S, id: string, resolve: ResolveQuery, skipRetry?: boolean, bestEffortResolution?: boolean, branch?: BranchDefinition, cursor?: CoValueCursor): SubscriptionScope>>; /** * Clear all cache entries and destroy all SubscriptionScope instances */ clear(): void; } //# sourceMappingURL=SubscriptionCache.d.ts.map