// Main API exports export { derivePlaceholder, deriveShapePlaceholder, } from "./derive-placeholder.js" // Diff overlay--make the TypedDoc return values as if a diff is applied export { createDiffOverlay } from "./diff-overlay.js" export type { Transition } from "./functional-helpers.js" // Functional helpers (recommended API) export { change, fork, forkAt, getLoroContainer, getLoroDoc, getTransition, shallowForkAt, } from "./functional-helpers.js" // The loro() escape hatch for CRDT internals export { LORO_SYMBOL, type LoroCounterRef, type LoroListRef, type LoroMapRef, type LoroRefBase, type LoroTextRef, type LoroTreeRef, type LoroTypedDocRef, loro, } from "./loro.js" // Regular placeholder overlay export { mergeValue, overlayPlaceholder } from "./overlay.js" // Path selector DSL exports export { createPathBuilder } from "./path-builder.js" export { compileToJsonPath, hasWildcard } from "./path-compiler.js" export { evaluatePath, evaluatePathOnValue } from "./path-evaluator.js" export type { PathBuilder, PathNode, PathSegment, PathSelector, } from "./path-selector.js" export { createPlaceholderProxy } from "./placeholder-proxy.js" export { replayDiff } from "./replay-diff.js" // Doc shapes // Container shapes // Value shapes // Shape utilities export type { AnyContainerShape, AnyValueShape, ArrayValueShape, BooleanValueShape, // A shape type representing any container-type or value-type shape (excludes DocShape) ContainerOrValueShape, // A shape type representing any container-type shape ContainerShape, ContainerType as RootContainerType, CounterContainerShape, // Tagged union of two or more plain value types DiscriminatedUnionValueShape, DocShape, ListContainerShape, MovableListContainerShape, NullValueShape, NumberValueShape, RecordContainerShape, RecordValueShape, StringValueShape, StructContainerShape, StructValueShape, TextContainerShape, TreeContainerShape, TreeNodeJSON, TreeRefInterface, Uint8ArrayValueShape, UndefinedValueShape, // Union of two or more plain value types UnionValueShape, // A shape type representing any value-type shape ValueShape, // WithNullable type for shapes that support .nullable() WithNullable, // WithPlaceholder type for shapes that support .placeholder() WithPlaceholder, } from "./shape.js" // Schema and type exports export { Shape } from "./shape.js" export type { Frontiers, TypedDoc } from "./typed-doc.js" export { createTypedDoc } from "./typed-doc.js" // Typed ref types - for specifying types with the loro() function export type { CounterRef, DiffOverlay, ListRef, MovableListRef, RecordRef, StructRef, TextRef, TreeNodeRef, TreeRef, } from "./typed-refs/index.js" export type { // Type inference - Infer is the recommended unified helper Infer, InferMutableType, InferPlaceholderType, // InferRaw preserves type alias names (like TreeNodeJSON) in hover displays InferRaw, Mutable, } from "./types.js" // Utility exports export { validatePlaceholder } from "./validation.js"