UNPKG

693 BTypeScriptView Raw
1import type { ShareableRef, FlatShareableRef } from './commonTypes';
2export declare function makeShareableCloneRecursive<T>(value: any, shouldPersistRemote?: boolean, depth?: number): ShareableRef<T>;
3export declare function makeShareableCloneOnUIRecursive<T>(value: T): FlatShareableRef<T>;
4declare function makeShareableJS<T extends object>(value: T): T;
5/**
6 * This function creates a value on UI with persistent state - changes to it on
7 * the UI thread will be seen by all worklets. Use it when you want to create a
8 * value that is read and written only on the UI thread.
9 */
10export declare const makeShareable: typeof makeShareableJS;
11export {};
12//# sourceMappingURL=shareables.d.ts.map
\No newline at end of file