import { YjsProxiableValue } from './types'; /** * Context for tracking object identity during conversion. * Maps original JS objects to their first converted Y.js values within this conversion. * @internal */ interface ConversionContext { seen: WeakSet; /** Tracks objects within this single conversion (for cycle detection and local aliasing) */ jsToYjs: WeakMap; } /** * Converts a JS value to a Y.js value. * * @param value The JS value to convert. * @param ctx The conversion context for tracking object identity. * @returns The converted Y.js value. */ export declare function convertJsToYjsValue(value: any, ctx?: ConversionContext): unknown; /** * Converts a Y.js value to its corresponding JS value (either a primitive or a proxy). * * @param value The Y.js value to convert. * @returns The corresponding JS value or proxy. * @throws {YjsProxyError} If the Y.js value is deleted. */ export declare function convertYjsToJsValue(value: unknown): unknown; export {};