/** * Options for `toYjsProxy`. */ export interface ToYjsProxyOptions { /** * Whether to deep clone the input value. * If `true` (default), the input value is deep cloned into the proxy. * If `false`, the input value is used as the initial JSON data for the proxy, * meaning mutations to the proxy while detached will affect the original object. */ clone?: boolean; } /** * Converts a plain JavaScript object or array into a proxied Y.js value. * * The returned proxy starts in "detached mode" (detached from any Y.js document). * * When this proxy is assigned to a property of another Y.js proxy, it will be * automatically converted to a real Y.js value and attached to the document. * * @param val The plain JavaScript object or array to convert. * @param options Options for the conversion. * @returns A Y.js proxy in detached mode. */ export declare function toYjsProxy(val: T, options?: ToYjsProxyOptions): T;