Skip to main content

packages/client/src/index.ts

export { connect } from "./connect"
export { keyOf } from "./keyof"
export { MusubiCommandError } from "./error"
export type { MusubiCommandErrorKind, MusubiCommandErrorOptions } from "./error"
export type {
  ConnectOptions,
  MountStoreOptions,
  MountedStore,
  MusubiConnection
} from "./connect"
export type { ChannelLike, PushLike, SocketLike } from "./runtime"

export { applyPatch, parsePointer } from "./patch"
export { applyStreamOps, getStream, pruneStreams } from "./streams"
export { applyUploadOps, getUploadHandle, pruneUploads, UploadHandleImpl } from "./uploads"

export type {
  AsyncError,
  AsyncResult,
  CommandName,
  CommandPayload,
  CommandReply,
  CommandsOf,
  ConnectionPatchEnvelope,
  DefOf,
  EntryStatus,
  ExternalUploader,
  ExternalUploaderArgs,
  JsonPatchOp,
  PatchEnvelope,
  ProxyValue,
  ShapeOf,
  SnapshotValue,
  StoreId,
  StoreModule,
  StoreProxy,
  StoreRuntime,
  StoreSnapshot,
  StreamEntry,
  StreamOp,
  UploadConfig,
  UploadEntry,
  UploadError,
  UploadHandle,
  UploadOp,
  UploadStatus,
  WireAsyncError,
  WireAsyncResult,
  WireUploadMarker
} from "./types"

export { STORE_ID_KEY, UPLOAD_MARKER_KEY, storeIdKey, uploadStoreKey } from "./types"