import type { RunWorkletCtxData } from '../../worklet-runtime/bindings/events.js';
export type RunOnMainThread = <R, Fn extends (...args: any[]) => R>(fn: Fn) => (...args: Parameters<Fn>) => Promise<R>;
export declare let delayedRunOnMainThreadData: RunWorkletCtxData[];
export declare function enqueueDelayedRunOnMainThreadData(data: RunWorkletCtxData): void;
export declare function takeDelayedRunOnMainThreadData(): typeof delayedRunOnMainThreadData;
