/** * Element reference system using WeakRef. * Allows referencing elements by stable IDs across tool calls. */ export interface ElementRef { id: string; element: WeakRef; } /** * Get or create a reference ID for an element. */ export declare function getElementRef(element: Element): string; /** * Get an element by its reference ID. */ export declare function getElementByRef(refId: string): Element | null; /** * Check if a reference ID is valid. */ export declare function isValidRef(refId: string): boolean; /** * Clear all element references. */ export declare function clearElementRefs(): void; /** * Clean up stale references (elements that were garbage collected or disconnected). */ export declare function cleanupStaleRefs(): number; /** * Get the number of active references. */ export declare function getRefCount(): number; /** * Create a batch of element references. */ export declare function createElementRefs(elements: Element[]): string[]; /** * Resolve multiple references to elements. */ export declare function resolveElementRefs(refIds: string[]): (Element | null)[]; //# sourceMappingURL=refs.d.ts.map