import type { IElementRegistryAPI, IElementRegistryCallbacks } from './types'; /** * Hook for tracking DOM elements by ID. * Extracted from the WAAPI animation system's element registration logic. * * @param callbacks - Optional lifecycle callbacks for register/unregister events * @returns Registry API for managing elements by ID * * @example * ```tsx * const registry = useElementRegistry({ * onRegister: (id) => console.log(`Registered: ${id}`), * onUnregister: (id) => console.log(`Unregistered: ${id}`) * }); * * // In render: *