import { type IClockVector, type ITimestampStruct } from '../../../json-crdt-patch/clock'; import type { JsonNode, JsonNodeView } from '..'; import type { Model } from '../../model'; import type { Printable } from 'tree-dump/lib/types'; import type { DeltaMutator } from '../../delta/Delta'; /** * Represents a `val` JSON CRDT node, which is a Last-write-wins (LWW) register. * The `val` node holds a single value, which is a reference to another JSON * CRDT node. * * @category CRDT Node */ export declare class ValNode implements JsonNode>, Printable { /** * @ignore */ readonly doc: Model; readonly id: ITimestampStruct; /** * The current value of the node, which is a reference to another JSON CRDT * node. */ val: ITimestampStruct; constructor( /** * @ignore */ doc: Model, id: ITimestampStruct, /** * The current value of the node, which is a reference to another JSON CRDT * node. */ val: ITimestampStruct); /** * @ignore */ set(val: ITimestampStruct): ITimestampStruct | undefined; /** * Returns the latest value of the node, the JSON CRDT node that `val` points * to. * * @returns The latest value of the node. */ node(): Value; name(): string; view(): JsonNodeView; /** * @ignore */ children(callback: (node: Value) => void): void; /** * @ignore */ child(): Value; /** * @ignore */ container(): JsonNode | undefined; /** @ignore */ clone(doc: Model): ValNode; /** @ignore */ delta(model: Model, cc: IClockVector, ops: DeltaMutator[]): void; /** * @ignore */ api: undefined | unknown; /** @ignore */ parent: JsonNode | undefined; toString(tab?: string): string; } //# sourceMappingURL=ValNode.d.ts.map