export type { InitOptions, RuntimeTemplate } from './cli/init.js';
export { initCommand, main as cliMain } from './cli/init.js';
export type { AgentIdentity, IdentityError, RotatedKeys } from './identity.js';
export { generateIdentity, sign, verify, importPublicKey, publicKeyToDid, didToPublicKeyBytes, exportPKCS8, exportX25519PKCS8, importFromPKCS8, importIdentity, identityFromSeed, extractRawEd25519, extractRawX25519, exportMlKemSecretKey, exportMlKemPublicKey, signMlDsa65, verifyMlDsa65, exportMlDsaSecretKey, exportMlDsaPublicKey, rotateKeys, ML_DSA65_SIG_BYTES, ML_DSA65_PK_BYTES, ML_DSA65_SK_BYTES, } from './identity.js';
export type { TransportEnvelope, TransportEnvelopeV2, TransportEnvelopeV3, TransportEnvelopeV4, AnyTransportEnvelope, CreateEnvelopeOptions, CreateEnvelopeV2Options, CreateEnvelopeV3Options, CreateEnvelopeV4Options, CreateSignedEnvelopeOptions, EnvelopeError, } from './envelope.js';
export { createEnvelope, createEnvelopeV2, createEnvelopeV3, createEnvelopeV4, decryptPayload, serializeEnvelope, deserializeEnvelope, validateEnvelope, generateSharedKey, createSignedEnvelope, openSignedEnvelope, } from './envelope.js';
export type { NonceStore, MemoryNonceStoreOptions, ShareContext } from './nonce-store.js';
export { MemoryNonceStore } from './nonce-store.js';
export type { RedisClient, RedisNonceStoreOptions } from './redis-nonce-store.js';
export { RedisNonceStore } from './redis-nonce-store.js';
export type { XailTransportAdapter, TransportError, EnvelopeHandler, HttpsTransportOptions, } from './transport.js';
export { HttpsTransportAdapter } from './transport.js';
export { LoopbackTransport } from './loopback-transport.js';
export type { RetryOptions } from './retry-transport.js';
export { RetryTransportAdapter } from './retry-transport.js';
export type { RetryContext, RetryDecision, ExponentialBackoffConfig, LinearBackoffConfig, FixedDelayConfig, CircuitBreakerConfig, CircuitState, CircuitBreakerStats, IRetryStrategy, } from './retry-strategies.js';
export { ExponentialBackoffStrategy, LinearBackoffStrategy, FixedDelayStrategy, NoRetryStrategy, CircuitBreaker, RetryStrategy, executeWithRetry, } from './retry-strategies.js';
export type { TimeoutConfigOptions } from './timeouts.js';
export { TimeoutConfig, OperationTimeoutController, TimeoutError, createTimeoutController, withTimeout, withTimeoutResult, createOperationTimeoutSignal, createOperationTimeout, isTimeoutError, getTimeoutFromError, createTimeoutConfigFromEnv, globalTimeoutConfig, DEFAULT_TIMEOUTS, } from './timeouts.js';
export type { QoSLevel, OperationContext, CacheConfig, RetryConfig, CacheEntry, ServiceStatus, } from './graceful-degradation.js';
export { GracefulDegradationManager, registryLookupWithFallback, sendWithTransportFallback, enhanceError, } from './graceful-degradation.js';
export type { CircuitBreakerOptions, CircuitBreakerMetrics, CircuitBreakerError, } from './circuit-breaker.js';
export { CircuitBreakerManager, createRegistryCircuitBreaker, createGatewayCircuitBreaker, createS3CircuitBreaker, } from './circuit-breaker.js';
export type { TrustRegistry, RegistryEntry, RegistryError, RegistrationOptions, HttpTrustRegistryOptions, FileTrustRegistryOptions, } from './trust-registry.js';
export { MemoryTrustRegistry, HttpTrustRegistry, FileTrustRegistry, createEnterpriseTrustRegistry, RegistrationRateLimiter, } from './trust-registry.js';
export type { EphemeralKeyPair, KeyAgreementResult, HybridKeyAgreementResult, KeyAgreementError, } from './key-agreement.js';
export { generateEphemeralKeyPair, importX25519PublicKey, deriveSharedKeyECDH, senderKeyAgreement, receiverKeyAgreement, combineSharedSecrets, senderHybridKeyAgreement, receiverHybridKeyAgreement, } from './key-agreement.js';
export type { AgentOptions, AgentCreateOptions, AgentSendOptions, AgentMessage, AgentError, AgentReceiveOptions, AgentErrorDetail, } from './agent.js';
export { Agent, parseAgentError } from './agent.js';
export type { MessageStreamOptions, CollectOptions, } from './async-iterators.js';
export { MessageStream, collectMessages, mapStream, filterStream, takeStream, mergeStreams, installAsyncIterators, } from './async-iterators.js';
export type { AgentCallOptions, PolicyConstraints, FieldFilter, ProgressEvent, AuditReceipt, CallResult, ResultFormats, } from './agent-call.js';
export { call, batchCall, stream, AgentErrorCode, ERROR_DETAILS, setToolRegistry, getToolRegistry, } from './agent-call.js';
export { AgentError as AgentCallError } from './agent-call.js';
export type { ProgressCallback as AgentCallProgressCallback } from './agent-call.js';
export type { XFetchOptions, XFetchResponse, } from './xfetch.js';
export { xfetch, isXBindSupported, getXBindCapability, } from './xfetch.js';
export type { AxiosRequestConfig, AxiosResponse, GotOptions, GotResponse, } from './http-compat.js';
export { createAxiosCompat, createGotCompat, wrapFetch, } from './http-compat.js';
export type { SecurityPolicy, SecurityMode, SecurityLevel, SecurityContext, SecurityDecision, SecurityModeDescription, } from './security-policy.js';
export { DefaultSecurityPolicy, describeSecurityMode, describeSecurityModeStructured } from './security-policy.js';
export type { PolicyResult, PolicyViolationDetails, PolicyLimits } from './policy.js';
export { PolicyEngine, getGlobalPolicyEngine } from './policy.js';
export type { ApprovalOptions, ApprovalToken, ApprovalResult, ApprovalPresenter, } from './approval.js';
export { ApprovalFlow, CLIApprovalPresenter, ApprovalError, ApprovalErrorCode, } from './approval.js';
export { PolicyDenied, Guardrails, extractSuggestion, toPolicyDenied, } from './guardrails.js';
export { createRegistryAuthMiddleware } from './registry-middleware.js';
export type { GatewayTransportOptions } from './gateway-transport.js';
export { GatewayTransport } from './gateway-transport.js';
export type { DidWebResolverOptions } from './did-web.js';
export { DidWebResolver, didWebToUrl } from './did-web.js';
export type { DidDocument } from './did-document.js';
export { generateDidDocument, resolveDid, getServiceEndpoints, } from './did-document.js';
export { publicKeyToPrivateMeDid, privateMeDidToPublicKeyBytes, isPrivateMeDid, isDidKeyFormat, convertDidFormat, normalizeDid, parseDid, } from './did-privateme.js';
export type { SplitChannelConfig, ChannelShare, SplitChannelError, } from './split-channel.js';
export { splitForChannel, splitForChannelWithGroupId, reconstructFromChannel, DEFAULT_SPLIT_CONFIG, } from './split-channel.js';
export type { AuthGatewayOptions } from './auth.js';
export { requestAuth, respondToChallenge, onChallenge, generateRegistrationQR, } from './auth.js';
export type { XchangeKey, XchangeError } from '@private.me/xchange';
export { generateXchangeKey, xchangeEncrypt, xchangeDecrypt } from '@private.me/xchange';
export { AES_KEY_BYTES, AES_IV_BYTES, BUNDLE_HEADER_BYTES } from '@private.me/xchange';
export { splitXorIDA, reconstructXorIDA, nextOddPrime, pkcs7Pad, pkcs7Unpad, generateHMAC, verifyHMAC, } from './crypto-utils.js';
export type { CryptoPackage } from './vault-store-loader.js';
export { getCrypto, loadCryptoPackage, setMockCrypto, clearCryptoCache, isCryptoLoaded, getCryptoVersion, } from './vault-store-loader.js';
export { XBindError, XBindIdentityError, XBindEnvelopeError, XBindTransportError, XBindRegistryError, XBindKeyAgreementError, XBindSplitChannelError, XBindAgentError, XBindBillingError, VaultStoreError, QuotaExceededError, toXBindError, isXBindError, createXBindErrorDetail, } from './errors.js';
import type { XBindTransportError, XBindIdentityError, XBindEnvelopeError, XBindBillingError, XBindAgentError } from './errors.js';
export type ConnectionError = XBindTransportError;
export type AuthenticationError = XBindIdentityError;
export type ValidationError = XBindEnvelopeError;
export type RateLimitError = XBindBillingError;
export type ServerError = XBindAgentError;
export type { ValidationResult } from './config-validation.js';
export { ConfigValidationError, validateAgentOptions, validateAgentCreateOptions, getValidationDetails, assertValidConfig, assertValidCreateConfig, AGENT_OPTIONS_DEFAULTS, AGENT_CREATE_OPTIONS_DEFAULTS, } from './config-validation.js';
export type { ProgressCallback, ACIErrorDetail, ACIErrorOptions, PaginationOptions, PaginatedResult, SearchOptions, } from '@private.me/ux-helpers';
export { ProgressReporter, createStagedProgress, createDetailedError, formatErrorForUser, createDetailedError as formatErrorStructured, // Alias for P1-API-16
formatErrorForLog, isACIError, toACIError, paginate, createPaginationMetadata, search, } from '@private.me/ux-helpers';
export type { EnhancedProgressEvent, EnhancedProgressCallback, ProgressMetadata, OperationStage, OperationProgressOptions, } from './progress-callbacks.js';
export { OperationProgressTracker, TransferProgressTracker, ShareDistributionTracker, EncryptionProgressTracker, } from './progress-callbacks.js';
export type { ServiceInfo, DiscoveryError } from './discovery.js';
export { ServiceDiscovery, DiscoveryErrorCode } from './discovery.js';
export type { MdnsServiceInfo, DiscoveryError as MdnsDiscoveryError, DiscoveryErrorCode as MdnsDiscoveryErrorCode } from './mdns-discovery.js';
export { MdnsDiscoveryManager } from './mdns-discovery.js';
export type { Invite, InviteError } from './invite.js';
export { InviteService, InviteErrorCode } from './invite.js';
export type { FallbackConfig, UsageMetrics, DualModeError } from './dual-mode.js';
export { DualModeAdapter, DualModeErrorCode } from './dual-mode.js';
export type { PairingRequest, PairingResponse } from './pairing-manager.js';
export { PairingManager } from './pairing-manager.js';
export type { ConnectOptions, Connection, ConnectError } from './connect.js';
export { connect, acceptInvite, ConnectErrorCode } from './connect.js';
export type { AutoAcceptConfig, AutoAcceptError, AcceptDetails } from './auto-accept.js';
export { autoAcceptInvite, AutoAcceptErrorCode } from './auto-accept.js';
export type { LazyAgentConfig, LazyAgentError } from './lazy-init.js';
export { LazyAgent, createLazyAgent, LazyAgentErrorCode } from './lazy-init.js';
export type { InvitationToken, InvitationError, } from './invitation.js';
export { InvitationErrorCode, InvitationClient, InvitationStore, generateInvitationToken, } from './invitation.js';
export type { AgentCreateOptions as AgentBuilderOptions } from './agent-sdk.js';
export { AgentBuilder } from './agent-sdk.js';
export { createSuccession, verifySuccession, encodeSuccession, decodeSuccession, verifySuccessionChain, } from './succession.js';
export type { SuccessionAnnouncement, SuccessionError } from './succession.js';
export { GatewayConnectionState } from './gateway-state.js';
export type { TrustEvent } from './trust-registry.js';
export type { DIDStateCheckpoint, LocalDIDCache, CheckpointError, } from './checkpoint.js';
export { createCheckpoint, verifyCheckpoint, isCacheStale, encodeCheckpoint, decodeCheckpoint, } from './checkpoint.js';
export type { SubscriptionProof, ProofError } from './subscription-proof.js';
export { createSubscriptionProof, verifySubscriptionProof, resumeSubscription, hashBloomFilter, } from './subscription-proof.js';
export type { BackupConfig, BackupShare, BackupError } from './backup-config.js';
export { DEFAULT_BACKUP_CONFIG, validateBackupConfig, splitKeyWithBackup, reconstructKeyFromBackup, } from './backup-config.js';
export type { EncryptedBackup, BackupError as EncryptedBackupError } from './backup.js';
export { exportBackup, importBackup } from './backup.js';
export type { CorrelationIdSpec } from './correlation-id.js';
export { generateCorrelationId, validateCorrelationId, parseCorrelationId, attachCorrelationId, extractCorrelationId, getOrCreateCorrelationId, createCorrelationIdFromTimestamp, getCorrelationIdAge, isCorrelationIdExpired, correlationIdMiddleware, CORRELATION_ID_HEADER, CORRELATION_ID_ALIASES, } from './correlation-id.js';
export type { Logger, LogContext } from './logger.js';
export { createLogger, LogLevel, getGlobalLogger, setGlobalLogger, logger, } from './logger.js';
export type { TimeoutController, TimeoutOptions, CleanupCallback, } from './cancellation.js';
export { CancellationError, createTimeoutSignal, combineSignals, onCancellation, throwIfAborted, withCancellation, delay, withRetry, createCancellationController, isCancellationError, } from './cancellation.js';
export type { DebugModeOptions, PerformanceMeasurement, NetworkTrace, CryptoTrace, AgentStateSnapshot, } from './debug-mode.js';
export { enableDebugMode, disableDebugMode, isDebugEnabled, getDebugOptions, createDebugLogger, startProfiling, endProfiling, getPerformanceMeasurements, clearPerformanceMeasurements, traceNetworkRequest, traceNetworkResponse, getNetworkTraces, clearNetworkTraces, traceCryptoOperation, getCryptoTraces, clearCryptoTraces, dumpState, getStateSnapshots, clearStateSnapshots, exportDebugData, clearAllDebugData, generateDebugReport, } from './debug-mode.js';
export type { VersionInfo, DeprecatedFeature, CompatibilityResult, } from './version-info.js';
export { getVersion, hasCapability, getCapabilities, getDeprecationInfo, warnIfDeprecated, parseVersion, compareVersions, checkCompatibility, getMinimumVersionFor, assertMinimumVersion, Capability, } from './version-info.js';
export type { HealthChecker, HealthStatus, ComponentHealth, ProbeType, HealthCheckerOptions, } from './health-check.js';
export { createHealthChecker, healthEndpoint } from './health-check.js';
export type { BatchSendOptions, BatchReceiveOptions, BatchRegistryOptions, BatchOperationResult, BatchSummary, RegistryOperation, } from './batch-operations.js';
export { batchSend, batchReceive, batchRegistryOps, batchResolve, batchGetEntries, BatchOperationError, } from './batch-operations.js';
export type { RuntimeEnvironment, BrowserStorage, BrowserCapabilities, WasmError, ServiceWorkerConfig, } from './runtime/browser.js';
export { detectRuntime, isBrowser, isNode, isServiceWorker, getRandomBytes, generateUUID, LocalStorageAdapter, IndexedDBAdapter, MemoryStorageAdapter, isWasmSupported, loadWasmModule, detectCapabilities, installNodePolyfills, initServiceWorker, DEFAULT_SERVICE_WORKER_CONFIG, } from './runtime/browser.js';
export type { XBindEventMap, XBindBaseEvent, MessageSentEvent, MessageReceivedEvent, KeyRotatedEvent, ErrorEvent, ConnectionStatusEvent, ConnectionStatus, EventListener, EmitOptions, ListenerOptions, EventEmitterErrorCode, } from './event-emitter.js';
export { XBindEventEmitter, createScopedEmitter, } from './event-emitter.js';
export type { Plugin, PluginContext, HookResult, } from './plugin-system.js';
export { MiddlewareChain, createPluginContext, createPlugin, PluginBuilder, } from './plugin-system.js';
export { LoggingPlugin, createLoggingPlugin } from './plugins/logging.js';
export type { LogEntry, LoggingPluginOptions } from './plugins/logging.js';
export { MetricsPlugin, createMetricsPlugin } from './plugins/metrics.js';
export type { MetricEntry, AggregatedMetrics, MetricsPluginOptions, } from './plugins/metrics.js';
export { ValidationPlugin, createValidationPlugin, CommonRules } from './plugins/validation.js';
export type { ValidationRule, ValidationPluginOptions, } from './plugins/validation.js';
export type { SerializationFormat, SerializationOptions, SerializedData, DeserializedData, SerializationMetrics, SerializationError, Serializer, } from './serialization.js';
export { serialize, deserialize, detectFormat, negotiateFormat, compareFormats, getContentType, parseContentType, MessagePackSerializer, } from './serialization.js';
export type { ConnectionPoolOptions, ConnectionPoolMetrics, } from './connection-pool.js';
export { ConnectionPool, getGlobalPool, resetGlobalPool, } from './connection-pool.js';
export type { Result } from '@private.me/shared';
export { err, ok } from '@private.me/shared';
