/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import type { IFluidHandle } from "@fluidframework/core-interfaces"; import type { IFluidSerializer } from "@fluidframework/shared-object-base/internal"; import type { ISerializableValue, ISerializedValue } from "./internalInterfaces.js"; /** * A local value to be stored in a container type Distributed Data Store (DDS). */ export interface ILocalValue { /** * The in-memory value stored within. */ readonly value: unknown; } /** * Convert a value to its serialized form, i.e. to be used in ops and summaries. */ export declare const serializeValue: (value: unknown, serializer: IFluidSerializer, bind: IFluidHandle) => ISerializedValue; /** * Very old versions of Fluid permitted a different type of stored value, which represented a * SharedObject held directly. This functionality has since been replaced with handles. * * If the passed serializable is one of these old values, this function will mutate it to a modern * value with a handle. Otherwise it does nothing. * @param serializable - The serializable value to potentially convert. */ export declare const migrateIfSharedSerializable: (serializable: ISerializableValue, serializer: IFluidSerializer, bind: IFluidHandle) => void; //# sourceMappingURL=localValues.d.ts.map