/** * Main Thread ops executor. * * Receives the flat-array ops buffer sent by the Background Thread via * callLepusMethod('sigxPatchUpdate', { data: JSON.stringify(ops) }) and applies * each operation using Lynx PAPI. */ /** * SharedValue bridge state — registered wvids and last-published snapshots. * The op handlers (`OP.REGISTER_AV_BRIDGE` / `OP.UNREGISTER_AV_BRIDGE` below) * mutate these collections; `animated-bridge-mt.ts:flushAvBridgePublishes` * reads them on every flush boundary to compute the diff to publish to BG. */ export declare const bridgedAvWvids: Set; export declare const bridgedAvLastValues: Map; /** * Gesture ops carry the elRef's wvid (set at BG-side useGestureDetector time, * before the renderer assigns an element id), so resolution is wvid → * elementId → raw MainThreadElement. The wvid → elementId map lives in * mt-ref-bind.ts (shared with the snapshot runtime, #626). * * We deliberately do NOT use `lynxWorkletImpl._refImpl._workletRefMap[wvid].current`: * that map stores the upstream-wrapped `Element` class (with `setStyleProperties` * etc.) which is what worklets need, but the platform's `__SetAttribute` / * `__SetGestureDetector` PAPI expect the raw RefCounted element handle. * Passing the wrapper trips the `FiberSetAttribute param 0 should be RefCounted` * native error. */ export declare function resolveElementByWvid(wvid: number): MainThreadElement | undefined; export declare function setPlaceholder(parent: MainThreadElement, el: MainThreadElement): void; export declare function applyOps(ops: unknown[]): void; /** Reset module state — for testing and hot reload. */ export declare function resetMainThreadState(): void;