/** * MainThreadRef → element binding, extracted from ops-apply's SET_MT_REF case * (#626) so the snapshot runtime can bind refs on template-built elements * through the exact same pathway as op-built ones. * * Owns the wvid → elementId map (SET_GESTURE_DETECTOR resolves raw * MainThreadElement handles through it — upstream's Element wrapper can't be * passed to `__SetAttribute` / `__SetGestureDetector`). */ export declare function resolveElementIdByWvid(wvid: number): number | undefined; /** * Bind the worklet ref `wvid` to `el` (registered under `elementId`). * Delegates storage to upstream's worklet-runtime ref map; see the inline * notes for the web-core style fallback. */ export declare function bindMtRef(el: MainThreadElement, elementId: number, wvid: number): void; /** * Drop one binding: the wvid → elementId record, plus resetting the upstream * ref holder's `current` to null so worklets that still capture the ref see * "unbound" instead of a stale element wrapper. (The RELEASE_MT_REF op * additionally deletes the upstream entry — there the BG-side ref object * itself is gone; here it may be re-pointed at another element later.) */ export declare function releaseMtRefBinding(wvid: number): void; /** Hot-reload / test reset hook. */ export declare function resetMtRefBindings(): void;