// Browser ESM entry point for Diamond Hands SDK
// Converts CommonJS exports to ES module imports for browser compatibility
// Uses the proven wrapper pattern from test-app/src/lib/lit-ops-wrapper.ts
// Import from the original built SDK (CommonJS module)
const SDKModule = require("../dist/index.js");
// Import lit-ops and lit-actions (using the wrapper pattern)
// TODO: Re-enable when these modules have proper ES module builds
// import * as LitOpsModule from "../../lit-ops/dist/index.js";
// import * as LitActionsModule from "../../lit-actions/dist/index.js";
// ========================================
// MAIN SDK EXPORTS
// ========================================
// Export main SDK classes (based on actual SDK exports)
export const DiamondHandsSDK = SDKModule.DiamondHandsSDK;
// ========================================
// RE-EXPORT CORE SDK ONLY
// ========================================
// Re-export core SDK exports only to avoid conflicts
// Note: CommonJS module, so we export specific items
export const { AuthParamsValidation, BPSConversions, BitcoinOperations, CacheManager, ContractManager, DiamondHandsSDK: SDKClass, ErrorCategory, ErrorSeverity, EventHelpers, LoanCreator, LoanQuery, LoanStatus, PaymentType, PositionStatus, SDKError, SatoshisConversions, UCDConversions, WeiConversions, createBitcoinOperations, createCacheManager, createContractManager, createLoanCreator, createLoanQuery, createPKPManager, failure, success, tryCatch, tryCatchAsync, unwrap, unwrapOr, validateSDKConfig, } = SDKModule;
// ========================================
// DEFAULT EXPORT
// ========================================
// Default export (main SDK class)
export default SDKModule.DiamondHandsSDK;
