export declare function scheduleOnUI(worklet: (...args: Args) => ReturnValue, ...args: Args): void; export declare function runOnUI(worklet: (...args: Args) => ReturnValue): (...args: Args) => void; export declare function runOnUISync(worklet: (...args: Args) => ReturnValue, ...args: Args): ReturnValue; export declare function executeOnUIRuntimeSync(worklet: (...args: Args) => ReturnValue): (...args: Args) => ReturnValue; export declare function runOnJS(fun: (...args: Args) => ReturnValue): (...args: Args) => void; export declare function scheduleOnRN(fun: (...args: Args) => ReturnValue, ...args: Args): void; export declare function runOnRNSync(fun: (...args: Args) => ReturnValue, ...args: Args): ReturnValue; export declare function runOnUIAsync(worklet: (...args: Args) => ReturnValue, ...args: Args): Promise; /** * Returns the id of the thread which currently executes JavaScript on the * calling Runtime. * * @returns The id of the current thread. * @see https://docs.swmansion.com/react-native-worklets/docs/utility/getCurrentThreadId */ export declare function getCurrentThreadId(): string; //# sourceMappingURL=threads.d.ts.map