import { StringKeyedObject, YjsProxiableValue } from './types'; import * as Y from "yjs"; /** * Converts a plain JavaScript value (object, array, primitive) into its corresponding Y.js value. * * - If the value is a plain object or array, it is recursively converted to `Y.Map` or `Y.Array`. * - If the value is already a Y.js value or a `yjs-proxy` proxy, it throws a failure. * * @param value The value to convert. * @returns The corresponding Y.js value. * @throws YjsProxyError if the value cannot be converted to a Y.js Map or Array, * or if it is already a Y.js value or a proxy. */ export declare function toYjs(value: any[]): Y.Array; export declare function toYjs(value: StringKeyedObject): Y.Map; export declare function toYjs(value: object): YjsProxiableValue;