import type { TooltipInstance } from "../-types"; /** * Module-scoped registry manager for tooltip instances. * Uses a Map internally but provides cleanup and HMR resilience. * This is module-scoped (not component-scoped) because tooltips need to * coordinate across all instances globally to handle overlapping scenarios. */ export declare class TooltipRegistry { private registry; private isCleaningUp; /** * Register a tooltip instance */ set(id: string, instance: TooltipInstance): void; /** * Unregister a tooltip instance */ delete(id: string): void; /** * Get all registered instances (for iteration) */ values(): IterableIterator; /** * Get the registry size */ get size(): number; /** * Clear all entries (useful for HMR or testing) */ clear(): void; /** * Clean up potentially stale entries by checking if trigger elements are still in DOM */ private cleanupStaleEntries; }