/** * MT-side runOnBackground — dispatches function calls from the Main Thread * to the Background Thread via 'Lynx.Sigx.RunOnBackground' events. * * Called inside extracted worklet bodies on the Main Thread. The SWC LEPUS * pass leaves bare `runOnBackground(_jsFnK)` references in the registered * worklet body; we install this implementation as `globalThis.runOnBackground` * from `entry-main.ts` so the bare identifier resolves at runtime. * * Mirrors @lynx-js/react/runtime/lib/worklet/call/runOnMainThread (the dual * direction) and vue-lynx's run-on-background-mt.ts. Sigx-namespaced event * types so we don't conflict with upstream's own bridge if it ships in the * same lynx process. */ interface JsFnHandle { _jsFnId?: number; _execId?: number; _isFirstScreen?: boolean; _error?: string; } export declare function runOnBackground(handle: JsFnHandle): (...args: unknown[]) => Promise; export declare function resetRunOnBackgroundMtState(): void; export {};