/**
 * MetaMask integration helpers for ChainID 138
 * Integrated into the main SDK
 * 
 * Note: MetaMask SDK is browser-only. In Node.js environments, only configuration exports are available.
 */

// Always export configuration (available in both browser and Node.js)
export {
  CHAIN_ID,
  CHAIN_ID_HEX,
  CHAIN_NAME,
  RPC_URLS,
  BLOCK_EXPLORER_URL,
  NETWORK_METADATA,
  CAIP2_IDENTIFIER,
} from '../../metamask-sdk/src/config';

export type {
  EthereumProvider,
  AddEthereumChainParameter,
  WatchAssetParameters,
  MetaMaskError,
} from '../../metamask-sdk/src/types';

// Browser-only exports (conditional)
if (typeof window !== 'undefined') {
  // Browser environment - export MetaMask SDK functions
  export {
    addNetwork,
    addOrSwitchNetwork,
    isNetworkAdded,
    getEthereumProvider,
    switchNetwork,
    getCurrentChainId,
    isOnChain138,
    addToken,
    addTokenFromList,
  } from '../../metamask-sdk/src';
}

