/**
 * @module
 *
 * Deterministic WARP graph over Git: graph-native storage, traversal,
 * and tooling. Graph history lives under WARP refs, where patch and
 * checkpoint commits can carry Git trees for payloads, content, and
 * folded state while staying outside normal branch refs.
 *
 * First-use application code should open a named worldline with
 * `openWarpWorldline()`. `WarpApp`, `WarpCore`, and `openWarpGraph()` remain
 * supported compatibility and diagnostic surfaces for graph-first code.
 *
 * @example
 * ```typescript
 * import { GitGraphAdapter, openWarpWorldline } from '@git-stunts/git-warp';
 * import GitPlumbing from '@git-stunts/plumbing';
 *
 * const persistence = new GitGraphAdapter({
 *   plumbing: new GitPlumbing({ cwd: '.' }),
 * });
 *
 * const events = await openWarpWorldline({
 *   persistence,
 *   worldlineName: 'events',
 *   writerId: 'agent-1',
 * });
 *
 * await events.commit((patch) => {
 *   patch.addNode('user:alice');
 * });
 *
 * const props = await events.live().getNodeProps('user:alice');
 * ```
 */
import GitGraphAdapter from "./src/infrastructure/adapters/GitGraphAdapter.js";
import GraphNode from "./src/domain/entities/GraphNode.js";
import BitmapIndexBuilder from "./src/domain/services/index/BitmapIndexBuilder.js";
import BitmapIndexReader from "./src/domain/services/index/BitmapIndexReader.js";
import IndexRebuildService from "./src/domain/services/index/IndexRebuildService.js";
import HealthCheckService, { HealthStatus } from "./src/domain/services/HealthCheckService.js";
import CommitDagTraversalService from "./src/domain/services/dag/CommitDagTraversalService.js";
import GraphPersistencePort from "./src/ports/GraphPersistencePort.js";
import IndexStoragePort from "./src/ports/IndexStoragePort.js";
import LoggerPort from "./src/ports/LoggerPort.js";
import SeekCachePort from "./src/ports/SeekCachePort.js";
import InMemoryGraphAdapter from "./src/infrastructure/adapters/InMemoryGraphAdapter.js";
import NoOpLogger from "./src/infrastructure/adapters/NoOpLogger.js";
import ConsoleLogger, { LogLevel } from "./src/infrastructure/adapters/ConsoleLogger.js";
import WriterError from "./src/domain/errors/WriterError.js";
import BlobStoragePort from "./src/ports/BlobStoragePort.js";
import InMemoryBlobStorageAdapter from "./src/domain/utils/defaultBlobStorage.js";
import CryptoPort from "./src/ports/CryptoPort.js";
import HttpServerPort from "./src/ports/HttpServerPort.js";
import NodeCryptoAdapter from "./src/infrastructure/adapters/NodeCryptoAdapter.js";
import WebCryptoAdapter from "./src/infrastructure/adapters/WebCryptoAdapter.js";
import BunHttpAdapter from "./src/infrastructure/adapters/BunHttpAdapter.js";
import DenoHttpAdapter from "./src/infrastructure/adapters/DenoHttpAdapter.js";
import { checkAborted, createTimeoutSignal } from "./src/domain/utils/cancellation.js";
// Multi-writer graph support (WARP)
import WarpCore from "./src/domain/WarpCore.js";
import WarpApp from "./src/domain/WarpApp.js";
import { createNodeAdd, createNodeTombstone, createEdgeAdd, createEdgeTombstone, createPropSet, createInlineValue, createBlobValue, createV18BoundedMemoryCapabilityReport, } from "./rootCompatibility.js";
import QueryBuilder from "./src/domain/services/query/QueryBuilder.js";
import BoundedSupportRule from "./src/domain/services/query/BoundedSupportRule.js";
import CausalIndexPlan from "./src/domain/services/query/CausalIndexPlan.js";
import SupportFragmentPlan from "./src/domain/services/query/SupportFragmentPlan.js";
import Observer from "./src/domain/services/query/Observer.js";
import ObserverAccumulation from "./src/domain/services/query/ObserverAccumulation.js";
import ObserverBasis from "./src/domain/services/query/ObserverBasis.js";
import ObserverEmission from "./src/domain/services/query/ObserverEmission.js";
import ObserverPlan from "./src/domain/services/query/ObserverPlan.js";
import ObserverReadingEnvelope from "./src/domain/services/query/ObserverReadingEnvelope.js";
import ProjectionHandle from "./src/domain/services/ProjectionHandle.js";
import WorldlineSelector from "./src/domain/types/WorldlineSelector.js";
import LiveSelector from "./src/domain/types/LiveSelector.js";
import CoordinateSelector from "./src/domain/types/CoordinateSelector.js";
import StrandSelector from "./src/domain/types/StrandSelector.js";
import { computeTranslationCost } from "./src/domain/services/TranslationCost.js";
import { encodeEdgePropKey, decodeEdgePropKey, isEdgePropKey, CONTENT_PROPERTY_KEY, } from "./src/domain/services/KeyCodec.js";
import { createTickReceipt, canonicalJson as tickReceiptCanonicalJson, OP_TYPES as TICK_RECEIPT_OP_TYPES, RESULT_TYPES as TICK_RECEIPT_RESULT_TYPES, } from "./src/domain/types/TickReceipt.js";
// Provenance payload (HOLOGRAM)
import ProvenancePayload from "./src/domain/services/provenance/ProvenancePayload.js";
// Boundary Transition Records (HOLOGRAM)
import { createBTR, verifyBTR, replayBTR, } from "./src/application/provenance/BtrOperations.js";
import { BTR } from "./src/domain/services/provenance/BTR.js";
// Wormhole compression (HOLOGRAM)
import { createWormhole, composeWormholes, replayWormhole, serializeWormhole, deserializeWormhole } from "./src/domain/services/WormholeService.js";
import ApertureOpeningProof from "./src/domain/services/wormhole/ApertureOpeningProof.js";
import RejectedApertureOpening from "./src/domain/services/wormhole/RejectedApertureOpening.js";
import RejectedZKWormhole from "./src/domain/services/wormhole/RejectedZKWormhole.js";
import VerifiedApertureOpening from "./src/domain/services/wormhole/VerifiedApertureOpening.js";
import VerifiedZKWormhole from "./src/domain/services/wormhole/VerifiedZKWormhole.js";
import ZKWormholeEdge from "./src/domain/services/wormhole/ZKWormholeEdge.js";
import { openAperture, verifyZKWormhole } from "./src/domain/services/wormhole/ZKWormholeService.js";
import BisectService from "./src/domain/services/BisectService.js";
import EffectSinkPort from "./src/ports/EffectSinkPort.js";
import { MultiplexSink } from "./src/domain/services/MultiplexSink.js";
import { EffectPipeline } from "./src/domain/services/EffectPipeline.js";
import { createEffectEmission, canonicalEmissionJson, DELIVERY_MODES, DELIVERY_OUTCOMES, } from "./src/domain/types/EffectEmission.js";
import { createDeliveryObservation, canonicalObservationJson, } from "./src/domain/types/DeliveryObservation.js";
import { createExternalizationPolicy, LIVE_LENS, REPLAY_LENS, INSPECT_LENS, } from "./src/domain/types/ExternalizationPolicy.js";
import { NoOpEffectSink } from "./src/infrastructure/adapters/NoOpEffectSink.js";
import { ConsoleEffectSink } from "./src/infrastructure/adapters/ConsoleEffectSink.js";
import { ChunkEffectSink } from "./src/infrastructure/adapters/ChunkEffectSink.js";
import SyncSecret from "./src/domain/services/sync/SyncSecret.js";
import ZKWormholeProofVerifierPort from "./src/ports/ZKWormholeProofVerifierPort.js";
import ContentAttachmentProjection from "./src/domain/services/ContentAttachmentProjection.js";
import GraphOpAlgebraProjection from "./src/domain/services/GraphOpAlgebraProjection.js";
import { openWarpGraph } from "./src/domain/WarpGraph.js";
import WarpWorldline, { openWarpWorldline } from "./src/domain/WarpWorldline.js";
import { WarpOpenOptions } from "./src/domain/warp/RuntimeHostBoot.js";
import WarpWorldlineCoordinate from "./src/domain/WarpWorldlineCoordinate.js";
import WarpWorldlineOpticBasis from "./src/domain/WarpWorldlineOpticBasis.js";
import Optic from "./src/domain/services/optic/Optic.js";
import OpticAperturePosture from "./src/domain/services/optic/OpticAperturePosture.js";
import OpticBasisPosture from "./src/domain/services/optic/OpticBasisPosture.js";
import OpticCoordinatePosture from "./src/domain/services/optic/OpticCoordinatePosture.js";
import OpticSupportRule from "./src/domain/services/optic/OpticSupportRule.js";
import { PatchBuilder } from "./src/domain/services/PatchBuilder.js";
import { PatchSession } from "./src/domain/warp/PatchSession.js";
import { Writer } from "./src/domain/warp/Writer.js";
import { ProvenanceIndex } from "./src/domain/services/provenance/ProvenanceIndex.js";
import WarpStateIndexBuilder, { buildWarpStateIndex } from "./src/domain/services/index/WarpStateIndexBuilder.js";
import { computeStateHash, projectState } from "./src/domain/services/state/StateSerializer.js";
import { createStateReader } from "./src/domain/services/state/StateReader.js";
import { compareVisibleState } from "./src/domain/services/comparison/VisibleStateComparison.js";
import GraphDiff from "./src/domain/services/comparison/GraphDiff.js";
import TtdMergeBranch from "./src/domain/services/merge/TtdMergeBranch.js";
import TtdMergeFootprint from "./src/domain/services/merge/TtdMergeFootprint.js";
import TtdMergeInspection from "./src/domain/services/merge/TtdMergeInspection.js";
import TtdMergeInspector from "./src/domain/services/merge/TtdMergeInspector.js";
import TtdMergeLoweringWitness from "./src/domain/services/merge/TtdMergeLoweringWitness.js";
import TtdMergeObstructionWitness from "./src/domain/services/merge/TtdMergeObstructionWitness.js";
import TtdMergePolicyRequirement from "./src/domain/services/merge/TtdMergePolicyRequirement.js";
import ImmutableBytes from "./src/domain/services/snapshot/ImmutableBytes.js";
import SnapshotORSet from "./src/domain/services/snapshot/SnapshotORSet.js";
import SnapshotVersionVector from "./src/domain/services/snapshot/SnapshotVersionVector.js";
import SnapshotWarpState from "./src/domain/services/snapshot/SnapshotWarpState.js";
import { normalizeVisibleStateScope, scopeMaterializedState, } from "./src/domain/services/VisibleStateScope.js";
import { exportCoordinateComparisonFact, exportCoordinateTransferPlanFact, } from "./src/domain/services/CoordinateFactExport.js";
export * from "./src/domain/graph/publicGraphSubstrate.js";
export * from "./src/domain/memory/index.js";
export * from "./src/continuumExports.js";
export { default as OperationPolicyPort } from "./src/ports/OperationPolicyPort.js";
export { default as CasContentEncryptionPolicy } from "./src/infrastructure/adapters/CasContentEncryptionPolicy.js";
export { default as AlfredOperationPolicyAdapter } from "./src/infrastructure/adapters/AlfredOperationPolicyAdapter.js";
export { default as NoopOperationPolicyAdapter } from "./src/infrastructure/adapters/NoopOperationPolicyAdapter.js";
export { OperationPolicyExhaustedError, OperationPolicyTimeoutError } from "./src/domain/errors/index.js";
export { AuditError, ContinuumArtifactAuthorityError, EncryptionError, ForkError, IndexError, MemoryBudgetError, OperationAbortedError, PatchError, QueryError, SchemaUnsupportedError, ShardCorruptionError, ShardLoadError, ShardValidationError, StorageError, StrandError, SyncError, TraversalError, WormholeError, } from "./src/domain/errors/index.js";
export { GitGraphAdapter, InMemoryGraphAdapter, GraphNode, GraphOpAlgebraProjection, BitmapIndexBuilder, BitmapIndexReader, IndexRebuildService, HealthCheckService, HealthStatus, CommitDagTraversalService, BisectService, GraphPersistencePort, IndexStoragePort, 
// Logging infrastructure
LoggerPort, NoOpLogger, ConsoleLogger, LogLevel, 
// Seek cache (RECALL)
SeekCachePort, 
// Port contracts
BlobStoragePort, InMemoryBlobStorageAdapter, CryptoPort, HttpServerPort, 
// Crypto adapters
NodeCryptoAdapter, WebCryptoAdapter, 
// HTTP adapters
BunHttpAdapter, DenoHttpAdapter, 
// Error types for integrity failure handling
WriterError, 
// Cancellation utilities
checkAborted, createTimeoutSignal, 
// Multi-writer graph — advanced compatibility composition root
WarpOpenOptions, openWarpGraph, 
// Worldline-first public handle
openWarpWorldline, WarpWorldline, WarpWorldlineCoordinate, WarpWorldlineOpticBasis, Optic, OpticAperturePosture, OpticBasisPosture, OpticCoordinatePosture, OpticSupportRule, ProjectionHandle, 
// Multi-writer graph support (legacy/diagnostic — prefer openWarpWorldline)
WarpApp, WarpCore, WorldlineSelector, LiveSelector, CoordinateSelector, StrandSelector, BoundedSupportRule, CausalIndexPlan, SupportFragmentPlan, QueryBuilder, Observer, ObserverAccumulation, ObserverBasis, ObserverEmission, ObserverPlan, ObserverReadingEnvelope, PatchBuilder, PatchSession, Writer, ProvenanceIndex, computeTranslationCost, 
// WARP type creators
createNodeAdd, createNodeTombstone, createEdgeAdd, createEdgeTombstone, createPropSet, createInlineValue, createBlobValue, 
// Key codec utilities (BULKHEAD)
encodeEdgePropKey, decodeEdgePropKey, isEdgePropKey, CONTENT_PROPERTY_KEY, 
// State indexing & hashing
WarpStateIndexBuilder, buildWarpStateIndex, computeStateHash, projectState, createStateReader, compareVisibleState, GraphDiff, TtdMergeBranch, TtdMergeFootprint, TtdMergeInspection, TtdMergeInspector, TtdMergeLoweringWitness, TtdMergeObstructionWitness, TtdMergePolicyRequirement, ImmutableBytes, SnapshotORSet, SnapshotVersionVector, SnapshotWarpState, normalizeVisibleStateScope, scopeMaterializedState, exportCoordinateComparisonFact, exportCoordinateTransferPlanFact, createV18BoundedMemoryCapabilityReport, 
// Tick receipts (LIGHTHOUSE)
createTickReceipt, tickReceiptCanonicalJson, TICK_RECEIPT_OP_TYPES, TICK_RECEIPT_RESULT_TYPES, 
// Provenance payload (HOLOGRAM)
ProvenancePayload, 
// Boundary Transition Records (HOLOGRAM)
BTR, createBTR, verifyBTR, replayBTR, 
// Wormhole compression (HOLOGRAM)
createWormhole, composeWormholes, replayWormhole, serializeWormhole, deserializeWormhole, ApertureOpeningProof, RejectedApertureOpening, RejectedZKWormhole, VerifiedApertureOpening, VerifiedZKWormhole, ZKWormholeEdge, openAperture, verifyZKWormhole, ZKWormholeProofVerifierPort, 
// Effect emission & delivery observation
EffectSinkPort, MultiplexSink, EffectPipeline, createEffectEmission, canonicalEmissionJson, createDeliveryObservation, canonicalObservationJson, createExternalizationPolicy, DELIVERY_MODES, DELIVERY_OUTCOMES, LIVE_LENS, REPLAY_LENS, INSPECT_LENS, NoOpEffectSink, ConsoleEffectSink, ChunkEffectSink, SyncSecret, ContentAttachmentProjection, };
// WarpApp remains the compatibility default export for v15-era consumers.
export default WarpApp;
