/** * Checks if two `yjs-proxy` proxies are aliases of each other. * * Two proxies are aliased if they originated from the same JS object reference * during conversion(s) and mutations to one will propagate to the other. * This happens when: * - The same plain JS object is assigned to multiple locations * - An existing proxy is assigned to another location (cloned and linked) * * Note: Aliasing only works within the same `Y.Doc`. Cross-document assignments * create independent clones that are not aliased. * * @param a First proxy * @param b Second proxy * @returns `true` if the proxies are aliased, `false` otherwise * * @example * ```ts * const obj = { x: 1 } * state.a = obj * state.b = obj * * areAliased(state.a, state.b) // true * * state.a.x = 10 * console.log(state.b.x) // 10 — synced! * ``` */ export declare function areAliased(a: object, b: object): boolean;