/** * BrightChain Library * * This is the main entry point for the BrightChain library. * All public APIs are exported from this module. * * @packageDocumentation * @module brightchain-lib */ import './init'; /** * Type definitions and type guards. * * Includes: * - Checksum: Unified checksum class for Buffer/Uint8Array handling * - isChecksum: Type guard for Checksum instances * - ChecksumBuffer: (deprecated) Use Checksum class instead * - ChecksumUint8Array: (deprecated) Use Checksum class instead * * @see {@link Checksum} * @see {@link isChecksum} */ export * from './types'; /** * Generalized asset / joule primitives. * * Includes: * - `JOULE_MICROUNITS_PER_UNIT`, `JOULE_DECIMALS`, `JOULE_SYMBOL`, `JOULE_ASSET_ID` * - `joulesToMicrojoules`, `microjoulesToJoules` conversion helpers * - `formatAssetAmount` display helper * * @see asset-account-store-generalization spec. */ export * from './asset'; /** * Layer 4 — Joule resource-credit primitives. * * Includes: * - Joule constants (re-exported from asset) * - ResourceClass taxonomy * - IRateTable + priceMicroJoules * - formatJoule / parseJoule scale-aware display helpers * * @see joule-resource-credits spec, Phase 1 */ export * from './joule'; /** * Error classes and type guards for error handling. * * Includes: * - BrightChainError: Base error class for all BrightChain errors * - ChecksumError: Checksum-related errors with ChecksumErrorType * - EnhancedValidationError: Validation errors with field context * - Type guards: isBrightChainError, isChecksumError, isEnhancedValidationError, etc. * * @see {@link BrightChainError} * @see {@link ChecksumError} * @see {@link EnhancedValidationError} */ export * from './errors'; /** * Utility classes and functions. * * Includes: * - Validator: Input validation utilities for services * - Checksum conversion utilities (deprecated, use Checksum class methods) * * @see {@link Validator} */ export * from './utils'; /** * Enumeration types for block types, sizes, encryption, etc. */ export * from './enumerations'; /** * Human-readable translations for enumeration values. */ export * from './enumeration-translations'; /** * Interface definitions for data structures and contracts. */ export * from './interfaces'; /** * Block-related classes and utilities. */ export * from './blocks'; export * from './encryptedBlockMetadata'; /** * Service implementations for BrightChain operations. */ export * from './services'; export { getGlobalServiceProvider, setGlobalServiceProvider, } from './services/globalServiceProvider'; /** * Factory classes for object creation. */ export * from './factories'; /** * Document handling and management. */ export * from './documents'; /** * Data store implementations. */ export * from './stores'; /** * Access control and permissions. */ export * from './access'; /** * Key management and cryptographic operations. */ export * from './keys'; /** * Platform-agnostic crypto utilities (browser + Node.js). */ export * from './crypto'; /** * Serializers for PoUW data structures. */ export * from './serializers'; /** * PoUW (Proof of Useful Work) client-side computation. * * Exports the browser-safe `computeWorkUnit()` function and * `ProgressCallback` type for computing work unit results. */ export * from './pouw'; /** * Validation schemas. */ export * from './schemas'; /** * CPU-related utilities. */ export * from './cpus'; /** * Debugging utilities. */ export * from './debug'; /** * Logging utilities for block operations. */ export * from './logging'; /** * Security utilities for audit logging and rate limiting. */ export * from './security'; /** * Internationalization support. */ export * from './i18n'; /** * Main BrightChain class and configuration. */ export * from './brightChain'; export * from './browserConfig'; export * from './constants'; export * from './init'; /** * Currency and email utilities. */ export * from './currencyCode'; export * from './emailString'; /** * Cryptographic utilities. */ export * from './drbg'; export * from './ecies-config'; export * from './isolatedKeyModInverse'; /** * BrightTrust and data record handling. */ export * from './brightTrust'; export * from './brightTrustDataRecord'; export * from './brightTrustDataRecordDto'; /** * Secure storage utilities. */ export * from './secureHeapStorage'; export * from './secureKeyStorage'; export * from './systemKeyring'; /** * Shared types and utilities. */ export * from './sharedTypes'; /** * Stream utilities. */ export * from './primeTupleGeneratorStream'; /** * Operation cost calculations. */ export * from './operationCost'; /** * Energy economy system. */ export * from './energyAccount'; export * from './energyConsts'; export * from './stores/assetAccountStore'; export * from './stores/energyAccountStore'; export * from './stores/energyLedger'; /** * General-purpose append-only blockchain ledger with Merkle proofs, * governance, and role-based access control. */ export type { IAuthorizedSigner } from './interfaces/ledger/authorizedSigner'; export { QuorumType } from './interfaces/ledger/brightTrustPolicy'; export type { IBrightTrustPolicy } from './interfaces/ledger/brightTrustPolicy'; export type { IConsistencyProof } from './interfaces/ledger/consistencyProof'; export { GovernanceActionType } from './interfaces/ledger/governanceAction'; export type { IGovernanceAction } from './interfaces/ledger/governanceAction'; export type { IGovernancePayload } from './interfaces/ledger/governancePayload'; export type { ILedgerEntry } from './interfaces/ledger/ledgerEntry'; export type { ILedgerMetadata } from './interfaces/ledger/ledgerMetadata'; export type { ILedgerSignatureVerifier } from './interfaces/ledger/ledgerSignatureVerifier'; export type { ILedgerSigner } from './interfaces/ledger/ledgerSigner'; export { MerkleDirection } from './interfaces/ledger/merkleProof'; export type { IMerkleProof, IMerkleProofStep, } from './interfaces/ledger/merkleProof'; export type { IProofVerificationResult } from './interfaces/ledger/proofVerificationResult'; export { SignerRole } from './interfaces/ledger/signerRole'; export { SignerStatus } from './interfaces/ledger/signerStatus'; export type { ILedgerValidationError, IValidationResult, LedgerValidationErrorType, } from './interfaces/ledger/validationResult'; export { AuthorizedSignerSet } from './ledger/authorizedSignerSet'; export { EciesSignatureVerifier } from './ledger/eciesSignatureVerifier'; export { GovernancePayloadSerializer } from './ledger/governancePayloadSerializer'; export type { IGenesisPayloadData } from './ledger/governancePayloadSerializer'; export { IncrementalMerkleTree } from './ledger/incrementalMerkleTree'; export { Ledger } from './ledger/ledger'; export { LedgerChainValidator } from './ledger/ledgerChainValidator'; export { LedgerEntrySerializer } from './ledger/ledgerEntrySerializer'; export { MemberSignerAdapter } from './ledger/memberSignerAdapter'; export { ProofSerializer } from './ledger/proofSerializer'; /** * Core database engine modules: query engine, update engine, cursor, indexing, * aggregation, schema validation, transactions, Collection, and InMemoryDatabase. * * Uses named re-exports to avoid collisions with existing top-level exports: * - ValidationError (./errors) vs db ValidationError → re-exported as DbValidationError * - SchemaType (./types) vs db SchemaType → re-exported as DbSchemaType * - ValidationFieldError, FieldSchema, BsonDocument, DocumentId already exported * via ./interfaces — skipped here to avoid ambiguous re-export errors */ export { BrightDbError, BulkWriteError, Collection, CollectionIndex, Cursor, DbSession, ValidationError as DbValidationError, DocumentNotFoundError, DriverBackedHeadRegistry, DuplicateKeyError, HeadRegistryGossipTransport, InMemoryDatabase, InMemoryHeadRegistry, InMemoryHeadRegistryDriver, IndexError, IndexManager, TransactionError, WriteConcernError, applyDefaults, applyProjection, applyUpdate, calculateBlockId, compareValues, createDefaultUuidGenerator, deepEquals, getTextSearchFields, isOperatorUpdate, matchesFilter, runAggregation, setTextSearchFields, sortDocuments, tokenize, validateDocument, type BulkWriteOperationError, type CollectionResolver, type CollectionSchema, type CommitCallback, type SchemaType as DbSchemaType, type InMemoryDatabaseOptions, type JournalOp, type RollbackCallback, type UuidGenerator, type WriteConcernSpec, } from './db'; export type { AggregationStage, BulkWriteOperation, BulkWriteOptions, BulkWriteResult, ChangeEvent, ChangeEventType, ChangeListener, ClientSession, CollectionOptions, CollectionSchemaFieldType, CursorSession, DeleteResult, FilterOperator, FilterQuery, FindOptions, IClientSession, IndexOptions, IndexSpec, InsertManyResult, InsertOneResult, LogicalOperators, ProjectionSpec, ReadPreference, ReplaceResult, SortSpec, TextIndexOptions, UpdateOperators, UpdateOptions, UpdateQuery, UpdateResult, WriteConcern, WriteOptions, } from '@digitaldefiance/suite-core-lib'; //# sourceMappingURL=index.d.ts.map