import { RemoteFunctionBearingEntry } from './remoteFunctionBearingEntry'; import type { SerializableRef } from './types'; /** * This symbol is used to represent a mapping from the value to itself. * * It's used to prevent converting a serializable that's already converted - for * example a Shared Value that's in worklet's closure. */ export declare const serializableMappingFlag: unique symbol; /** * The entries as they are stored. A value maps to its clone when the clone * holds no JS function, and to a `RemoteFunctionBearingEntry` when it does. A * clone maps to `serializableMappingFlag`, or to `remoteFunctionBearingFlag` * when it holds a JS function, so the entries are the only record of which * clones hold one and a hit on any other clone costs no lookup beyond its own * entry. Only `serializable.native.ts`, which knows what each clone holds, * writes them directly. */ export declare const serializableMappingEntries: WeakMap; export declare const serializableMappingCache: { set(serializable: object, serializableRef?: SerializableRef): void; /** * Returns the serializable, a `WeakRef` to one (JS functions), the flag, or * an opaque non-owning marker (clones that hold a JS function, see * `cacheClone` in `serializable.native.ts`). */ get(serializable: object): SerializableRef | WeakRef | object | symbol | undefined; delete(serializable: object): boolean; }; //# sourceMappingURL=serializableMappingCache.native.d.ts.map