import { base64URLtoBytes, bytesToBase64url, bytesToBase64 } from "./base64url.js"; import { type RawCoValue } from "./coValue.js"; import { CoValueCore, idforHeader, enablePermissionErrors, type AvailableCoValueCore } from "./coValueCore/coValueCore.js"; import { CoValueHeader, CoValueUniqueness } from "./coValueCore/verifiedState.js"; import { ControlledAccount, ControlledAgent, RawAccount, RawProfile, accountHeaderForInitialAgentSecret } from "./coValues/account.js"; import { OpID, RawCoList } from "./coValues/coList.js"; import { RawCoMap } from "./coValues/coMap.js"; import { RawCoPlainText, stringifyOpID } from "./coValues/coPlainText.js"; import { BinaryStreamItem, BinaryStreamStart, RawBinaryCoStream } from "./coValues/binaryCoStream.js"; import { CoStreamItem, RawCoStream } from "./coValues/coStream.js"; import { EVERYONE, RawGroup } from "./coValues/group.js"; import type { Everyone } from "./coValues/group.js"; import { CryptoProvider } from "./crypto/crypto.js"; import { getGroupDependentKey, getGroupDependentKeyList, isRawCoID, rawCoIDfromBytes, rawCoIDtoBytes } from "./ids.js"; import { Stringified, parseJSON, stableStringify } from "./jsonStringify.js"; import { LocalNode } from "./localNode.js"; import type { AccountRole, Role } from "./permissions.js"; import { ConnectedPeerChannel, connectedPeers } from "./streamUtils.js"; import { accountOrAgentIDfromSessionID } from "./typeUtils/accountOrAgentIDfromSessionID.js"; import { expectGroup } from "./typeUtils/expectGroup.js"; import { isAccountID } from "./typeUtils/isAccountID.js"; import type { AnyRawCoValue, CoID } from "./coValue.js"; import type { AccountMeta, RawAccountID, RawAccountMigration } from "./coValues/account.js"; import type { BinaryCoStreamMeta, BinaryStreamInfo } from "./coValues/binaryCoStream.js"; import type { InviteSecret } from "./coValues/group.js"; import { AgentSecret } from "./crypto/crypto.js"; import type { AgentID, RawCoID, SessionID } from "./ids.js"; import type { JsonObject, JsonValue } from "./jsonValue.js"; import type * as Media from "./media.js"; import { isAccountRole } from "./permissions.js"; import type { LocalStoreDurabilityListener, Peer, SyncMessage, SyncWhen } from "./sync.js"; import { DisconnectedError, SyncManager, hwrServerPeerSelector } from "./sync.js"; import { setSyncStateTrackingBatchDelay } from "./UnsyncedCoValuesTracker.js"; import { emptyKnownState } from "./knownState.js"; import type { CoValueFrontier } from "./knownState.js"; import type { RawCoValueCursor } from "./cursor.js"; import { getContentMessageSize, getTransactionSize, knownStateFromContent } from "./coValueContentMessage.js"; import { getDependedOnCoValuesFromRawData } from "./coValueCore/utils.js"; import { setCoValueLoadingMaxRetries, setCoValueLoadingRetryDelay, setCoValueLoadingTimeout, setIncomingMessagesTimeBudget, setMaxInFlightLoadsPerPeer, setMaxOutgoingMessagesChunkBytes, setMaxRecommendedTxSize, setStorageReconciliationBatchSize, setStorageReconciliationLockTTL, setStorageReconciliationInterval } from "./config.js"; import { LogLevel, logger } from "./logger.js"; import { getPriorityFromHeader } from "./priority.js"; import { getDependedOnCoValues } from "./storage/syncUtils.js"; import { canBeBranched } from "./coValueCore/branching.js"; import type { PeerState } from "./PeerState.js"; type Value = JsonValue | AnyRawCoValue; export { PriorityBasedMessageQueue } from "./queue/PriorityBasedMessageQueue.js"; /** @hidden */ export declare const cojsonInternals: { knownStateFromContent: typeof knownStateFromContent; connectedPeers: typeof connectedPeers; rawCoIDtoBytes: typeof rawCoIDtoBytes; rawCoIDfromBytes: typeof rawCoIDfromBytes; secretSeedLength: number; shortHashLength: number; expectGroup: typeof expectGroup; base64URLtoBytes: typeof base64URLtoBytes; bytesToBase64url: typeof bytesToBase64url; bytesToBase64: typeof bytesToBase64; parseJSON: typeof parseJSON; stableStringify: typeof stableStringify; getDependedOnCoValues: typeof getDependedOnCoValues; getDependedOnCoValuesFromRawData: typeof getDependedOnCoValuesFromRawData; accountOrAgentIDfromSessionID: typeof accountOrAgentIDfromSessionID; isAccountID: typeof isAccountID; accountHeaderForInitialAgentSecret: typeof accountHeaderForInitialAgentSecret; idforHeader: typeof idforHeader; getPriorityFromHeader: typeof getPriorityFromHeader; getGroupDependentKeyList: typeof getGroupDependentKeyList; getGroupDependentKey: typeof getGroupDependentKey; enablePermissionErrors: typeof enablePermissionErrors; SyncManager: typeof SyncManager; CO_VALUE_LOADING_CONFIG: { MAX_RETRIES: number; TIMEOUT: number; RETRY_DELAY: number; MAX_IN_FLIGHT_LOADS_PER_PEER: number; }; CO_VALUE_PRIORITY: { readonly HIGH: 0; readonly MEDIUM: 3; readonly LOW: 6; }; setIncomingMessagesTimeBudget: typeof setIncomingMessagesTimeBudget; setCoValueLoadingRetryDelay: typeof setCoValueLoadingRetryDelay; setCoValueLoadingMaxRetries: typeof setCoValueLoadingMaxRetries; setCoValueLoadingTimeout: typeof setCoValueLoadingTimeout; setSyncStateTrackingBatchDelay: typeof setSyncStateTrackingBatchDelay; ConnectedPeerChannel: typeof ConnectedPeerChannel; textEncoder: import("util").TextEncoder; textDecoder: import("util").TextDecoder; getTransactionSize: typeof getTransactionSize; getContentMessageSize: typeof getContentMessageSize; TRANSACTION_CONFIG: { MAX_RECOMMENDED_TX_SIZE: number; }; setMaxRecommendedTxSize: typeof setMaxRecommendedTxSize; canBeBranched: typeof canBeBranched; WEBSOCKET_CONFIG: { MAX_OUTGOING_MESSAGES_CHUNK_BYTES: number; }; setMaxOutgoingMessagesChunkBytes: typeof setMaxOutgoingMessagesChunkBytes; setMaxInFlightLoadsPerPeer: typeof setMaxInFlightLoadsPerPeer; STORAGE_RECONCILIATION_CONFIG: { BATCH_SIZE: number; LOCK_TTL_MS: number; RECONCILIATION_INTERVAL_MS: number; }; setStorageReconciliationBatchSize: typeof setStorageReconciliationBatchSize; setStorageReconciliationLockTTL: typeof setStorageReconciliationLockTTL; setStorageReconciliationInterval: typeof setStorageReconciliationInterval; }; export { LocalNode, RawGroup, Role, EVERYONE, Everyone, RawCoMap, RawCoList, RawCoStream, RawBinaryCoStream, RawCoValue, RawCoID, CoID, AnyRawCoValue, RawAccount, RawAccountID, ControlledAccount, AccountMeta, RawAccountMigration, RawProfile as Profile, SessionID, Media, CoValueCore, ControlledAgent, JsonObject, JsonValue, Peer, BinaryStreamInfo, BinaryCoStreamMeta, AgentID, AgentSecret, InviteSecret, CryptoProvider, SyncMessage, isRawCoID, emptyKnownState, RawCoPlainText, stringifyOpID, logger, LogLevel, base64URLtoBytes, bytesToBase64url, hwrServerPeerSelector, isAccountRole, }; export type { Value, DisconnectedError, CoValueUniqueness, Stringified, CoStreamItem, BinaryStreamItem, BinaryStreamStart, OpID, AccountRole, AvailableCoValueCore, PeerState, SyncWhen, LocalStoreDurabilityListener, CoValueHeader, CoValueFrontier, RawCoValueCursor, }; export * from "./storage/index.js"; export * from "./CojsonMessageChannel/index.js"; export declare namespace CojsonInternalTypes { type CoValueKnownState = import("./knownState.js").CoValueKnownState; type CoJsonValue = import("./jsonValue.js").CoJsonValue; type DoneMessage = import("./sync.js").DoneMessage; type Encrypted = import("./crypto/crypto.js").Encrypted; type KeySecret = import("./crypto/crypto.js").KeySecret; type KnownStateMessage = import("./sync.js").KnownStateMessage; type LoadMessage = import("./sync.js").LoadMessage; type NewContentMessage = import("./sync.js").NewContentMessage; type SessionNewContent = import("./sync.js").SessionNewContent; type CoValueHeader = import("./coValueCore/verifiedState.js").CoValueHeader; type Transaction = import("./coValueCore/verifiedState.js").Transaction; type TransactionID = import("./ids.js").TransactionID; type Signature = import("./crypto/crypto.js").Signature; type RawCoID = import("./ids.js").RawCoID; type ProfileShape = import("./coValues/account.js").ProfileShape; type SealerSecret = import("./crypto/crypto.js").SealerSecret; type SealerID = import("./crypto/crypto.js").SealerID; type SealedForGroup = import("./crypto/crypto.js").SealedForGroup; type SignerID = import("./crypto/crypto.js").SignerID; type SignerSecret = import("./crypto/crypto.js").SignerSecret; type JsonObject = import("./jsonValue.js").JsonObject; type OutgoingPeerChannel = import("./sync.js").OutgoingPeerChannel; type IncomingPeerChannel = import("./sync.js").IncomingPeerChannel; } //# sourceMappingURL=exports.d.ts.map