import { BehaviorSubject, Subject } from 'rxjs'; import { Account, AccountBalances, AccountInvestments, AccountMembers, Accounts, AccountSettings, AccountTotalBalances, NetCurveBalances } from './account'; import { ApiService } from './api'; import { HistoricalTokenPrices, MarketDetails, NativeCurrenciesItem, NumberOfTransactions, PaginatedTokens, PoolsActivities, TokenDetails, TokenList, TokenListToken, TradingHistories } from './assets'; import { ErrorSubject, TransactionRequest } from './common'; import { Context } from './context'; import { Contract, ContractAddresses } from './contract'; import { AddAccountOwnerDto, BatchGatewayTransactionRequestDto, CallCurrentProjectDto, CancelGatewayBatchDto, CancelGatewayBatchDto as ForceGatewayBatchDto, ClaimENSNodeDto, CommitP2PPaymentChannelDto, ComputeContractAccountDto, ComputeContractAccountByAddressDto, CreatePaymentHubPaymentDto, CreateSessionDto, CustomProjectMetadataDto, EncodeGatewayBatchDto, EstimateGatewayBatchDto, EstimateGatewayKnownOpDto, ExecuteAccountTransactionDto, GetAccountBalancesDto, GetAccountDto, GetAccountMembersDto, GetCrossChainBridgeRouteDto, GetENSNodeDto, GetENSRootNodeDto, GetExchangeCrossChainQuoteDto, GetExchangeOffersDto, GetGatewaySubmittedBatchDto, GetGatewaySubmittedBatchDto as GetGatewayTransactionDto, GetGatewaySupportedTokenDto, GetP2PPaymentChannelDto, GetP2PPaymentChannelsDto, GetP2PPaymentDepositsDto, GetPaymentHubBridgeDto, GetPaymentHubBridgesDto, GetPaymentHubDepositDto, GetPaymentHubDepositsDto, GetPaymentHubDto, GetPaymentHubPaymentDto, GetPaymentHubPaymentsDto, GetPaymentHubsDto, GetProjectDto, GetTokenListDto, IncreaseP2PPaymentChannelAmountDto, IsTokenOnTokenListDto, JoinContractAccountDto, PaginationDto, RemoveAccountOwnerDto, ReserveENSNameDto, SetENSRecordNameDto, SetENSRecordTextDto, SignMessageDto, SignP2PPaymentChannelDto, SwitchCurrentProjectDto, TransferPaymentHubDepositDto, UpdateAccountSettingsDto, UpdateP2PPaymentChannelDto, UpdatePaymentHubBridgeDto, UpdatePaymentHubDepositDto, UpdatePaymentHubDto, UpdateProjectDto, WithdrawP2PPaymentDepositDto, P2PPaymentDepositWithdrawalDto, ENSAddressesLookupDto, ENSNamesLookupDto, GetTransactionDto, GetTransactionsDto, GetAccountTotalBalancesDto, ReserveENSNameDto as ValidateENSNameDto, GetNftListDto, IsEligibleForAirdropDto, GetCrossChainBridgeTokenListDto, GetP2PPaymentChannelsAdminDto, CreateStreamTransactionPayloadDto, GetCrossChainBridgeSupportedChainsDto, DeleteStreamTransactionPayloadDto, GetStreamListDto, GetExchangeSupportedAssetsDto, FetchExchangeRatesDto, GetAdvanceRoutesLiFiDto, GetStepTransactionsLiFiDto, NameResolutionNodeDto, GetLiFiStatusDto, GetAccountInvestmentsDto, GetTokenDetailsDto, GetHistoricalTokenPriceDto, GetPoolsActivityDto, GetTradingHistoryDto, GetAccount24HourNetCurveDto, GetAdvanceRoutesDto } from './dto'; import { ENSNode, ENSRootNode } from './ens'; import { EnvNames } from './env'; import { CrossChainBridgeSupportedChain, CrossChainBridgeToken, CrossChainBridgeRoute, ExchangeOffer, CrossChainBridgeBuildTXResponse, BridgingQuotes, AdvanceRoutesLiFi, StepTransactions, LiFiStatus, AdvanceRoutes } from './exchange'; import { GatewayBatch, GatewayEstimatedKnownOp, GatewayGasInfo, GatewaySubmittedBatch, GatewaySubmittedBatches, GatewaySubmittedPendingBatches, GatewaySupportedToken, GatewayTransaction } from './gateway'; import { SdkOptions } from './interfaces'; import { NameResolutionsNodes } from './name-resolution'; import { Network } from './network'; import { Notification } from './notification'; import { P2PPaymentChannel, P2PPaymentChannels, P2PPaymentDeposits, PaymentHub, PaymentHubBridge, PaymentHubBridges, PaymentHubDeposit, PaymentHubDeposits, PaymentHubPayment, PaymentHubPayments, PaymentHubs } from './payments'; import { CurrentProject, Project, Projects } from './project'; import { RateData } from './rates'; import { Session } from './session'; import { Transactions, Transaction, NftList, StreamTransactionPayload, StreamList, KnownContract } from './transactions'; import { State, StateService } from './state'; import { WalletProviderLike } from './wallet'; export declare class Sdk { readonly internalContracts: Context['internalContracts']; readonly services: Context['services']; protected context: Context; constructor(walletProvider: WalletProviderLike, optionsLike?: EnvNames | SdkOptions); get api(): ApiService; get notifications$(): Subject; get state(): StateService; get state$(): BehaviorSubject; get error$(): ErrorSubject; get supportedNetworks(): Network[]; destroy(): void; signMessage(dto: SignMessageDto): Promise; createSession(dto?: CreateSessionDto): Promise; getGatewaySupportedToken(dto: GetGatewaySupportedTokenDto): Promise; getGatewaySupportedTokens(): Promise; getGatewaySubmittedBatch(dto: GetGatewaySubmittedBatchDto): Promise; getGatewaySubmittedBatches(dto?: PaginationDto): Promise; getGatewaySubmittedPendingBatches(dto?: PaginationDto): Promise; getGatewayTransaction(dto: GetGatewayTransactionDto): Promise; getGatewayGasInfo(): Promise; batchGatewayTransactionRequest(dto: BatchGatewayTransactionRequestDto): Promise; estimateGatewayKnownOp(dto: EstimateGatewayKnownOpDto): Promise; estimateGatewayBatch(dto?: EstimateGatewayBatchDto): Promise; estimateStatelessAccountTransactions(transactionsDto: ExecuteAccountTransactionDto[], estimationDto?: EstimateGatewayBatchDto): Promise; submitGatewayBatch(dto?: CustomProjectMetadataDto): Promise; cancelGatewayBatch(dto: CancelGatewayBatchDto): Promise; forceGatewayBatch(dto: ForceGatewayBatchDto): Promise; encodeGatewayBatch(dto?: EncodeGatewayBatchDto): Promise; clearGatewayBatch(): void; switchCurrentProject(dto?: SwitchCurrentProjectDto): Promise; callCurrentProject(dto?: CallCurrentProjectDto): Promise; getProject(dto: GetProjectDto): Promise; getProjects(dto: PaginationDto): Promise; updateProject(dto: UpdateProjectDto): Promise; syncAccount(): Promise; computeContractAccount(dto?: ComputeContractAccountDto): Promise; computeContractAccountByAddress(dto: ComputeContractAccountByAddressDto): Promise; joinContractAccount(dto: JoinContractAccountDto): Promise; getConnectedAccounts(dto?: PaginationDto): Promise; getAccount(dto?: GetAccountDto): Promise; getAccountBalances(dto?: GetAccountBalancesDto): Promise; getAccountInvestments(dto?: GetAccountInvestmentsDto): Promise; getAccount24HourNetCurve(dto?: GetAccount24HourNetCurveDto): Promise; getAccountTotalBalances(dto: GetAccountTotalBalancesDto): Promise; getAccountMembers(dto?: GetAccountMembersDto): Promise; getDelayTransactionOptions(): Promise; getAccountSettings(): Promise; updateAccountSettings(dto: UpdateAccountSettingsDto): Promise; isEligibleForAirdrop(dto: IsEligibleForAirdropDto): Promise; encodeDeployAccount(): Promise; encodeAddAccountOwner(dto: AddAccountOwnerDto): Promise; encodeRemoveAccountOwner(dto: RemoveAccountOwnerDto): Promise; encodeExecuteAccountTransaction(dto: ExecuteAccountTransactionDto): Promise; batchDeployAccount(): Promise; batchAddAccountOwner(dto: AddAccountOwnerDto): Promise; batchRemoveAccountOwner(dto: RemoveAccountOwnerDto): Promise; batchExecuteAccountTransaction(dto: ExecuteAccountTransactionDto): Promise; reserveENSName(dto: ReserveENSNameDto): Promise; validateENSName(dto: ValidateENSNameDto): Promise; getENSNode(dto?: GetENSNodeDto): Promise; getENSRootNode(dto: GetENSRootNodeDto): Promise; getENSTopLevelDomains(): Promise; ensAddressesLookup(dto: ENSAddressesLookupDto): Promise; ensNamesLookup(dto: ENSNamesLookupDto): Promise; encodeClaimENSNode(dto?: ClaimENSNodeDto): Promise; encodeSetENSRecordName(dto?: SetENSRecordNameDto): Promise; encodeSetENSRecordText(dto: SetENSRecordTextDto): Promise; encodeClaimENSReverseName(): Promise; batchClaimENSNode(dto?: ClaimENSNodeDto): Promise; batchSetENSRecordName(dto?: SetENSRecordNameDto): Promise; batchSetENSRecordText(dto: SetENSRecordTextDto): Promise; batchClaimENSReverseName(): Promise; getExchangeSupportedAssets(dto?: GetExchangeSupportedAssetsDto): Promise; getExchangeOffers(dto: GetExchangeOffersDto): Promise; getCrossChainBridgeSupportedChains(dto?: GetCrossChainBridgeSupportedChainsDto): Promise; getCrossChainBridgeTokenList(dto: GetCrossChainBridgeTokenListDto): Promise; findCrossChainBridgeRoutes(dto: GetCrossChainBridgeRouteDto): Promise; buildCrossChainBridgeTransaction(dto: CrossChainBridgeRoute): Promise; getCrossChainQuotes(dto: GetExchangeCrossChainQuoteDto): Promise; getAdvanceRoutesLiFi(dto: GetAdvanceRoutesLiFiDto): Promise; advanceRoutes(dto: GetAdvanceRoutesDto): Promise; getStepTransaction(dto: GetStepTransactionsLiFiDto): Promise; getLiFiStatus(dto: GetLiFiStatusDto): Promise; getP2PPaymentDeposits(dto?: GetP2PPaymentDepositsDto): Promise; getP2PPaymentChannel(dto: GetP2PPaymentChannelDto): Promise; getP2PPaymentChannels(dto?: GetP2PPaymentChannelsDto): Promise; getP2PPaymentChannelsAdmin(dto?: GetP2PPaymentChannelsAdminDto): Promise; increaseP2PPaymentChannelAmount(dto: IncreaseP2PPaymentChannelAmountDto): Promise; updateP2PPaymentChannel(dto: UpdateP2PPaymentChannelDto): Promise; signP2PPaymentChannel(dto: SignP2PPaymentChannelDto): Promise; encodeWithdrawP2PPaymentDeposit(dto: WithdrawP2PPaymentDepositDto): Promise; encodeP2PPaymentDepositWithdrawal(dto: P2PPaymentDepositWithdrawalDto): Promise; encodeCommitP2PPaymentChannel(dto: CommitP2PPaymentChannelDto): Promise; batchWithdrawP2PPaymentDeposit(dto: WithdrawP2PPaymentDepositDto): Promise; batchP2PPaymentDepositWithdrawal(dto: P2PPaymentDepositWithdrawalDto): Promise; batchCommitP2PPaymentChannel(dto: CommitP2PPaymentChannelDto): Promise; getPaymentHub(dto: GetPaymentHubDto): Promise; getPaymentHubs(dto?: GetPaymentHubsDto): Promise; getPaymentHubBridge(dto?: GetPaymentHubBridgeDto): Promise; getPaymentHubBridges(dto: GetPaymentHubBridgesDto): Promise; getPaymentHubDeposit(dto: GetPaymentHubDepositDto): Promise; getPaymentHubDeposits(dto: GetPaymentHubDepositsDto): Promise; getPaymentHubPayment(dto: GetPaymentHubPaymentDto): Promise; getPaymentHubPayments(dto: GetPaymentHubPaymentsDto): Promise; createPaymentHubPayment(dto: CreatePaymentHubPaymentDto): Promise; updatePaymentHub(dto?: UpdatePaymentHubDto): Promise; updatePaymentHubDeposit(dto: UpdatePaymentHubDepositDto): Promise; transferPaymentHubDeposit(dto: TransferPaymentHubDepositDto): Promise; activatePaymentHubBridge(dto: UpdatePaymentHubBridgeDto): Promise; deactivatePaymentHubBridge(dto: UpdatePaymentHubBridgeDto): Promise; getTokenLists(): Promise; getTokenListTokens(dto?: GetTokenListDto): Promise; getNativeCurrencies(): Promise; getAccountTokenListTokens(dto?: GetTokenListDto): Promise; isTokenOnTokenList(dto: IsTokenOnTokenListDto): Promise; getTokenDetails(dto?: GetTokenDetailsDto): Promise; getHistoricalTokenPrice(dto?: GetHistoricalTokenPriceDto): Promise; getPoolsActivity(dto?: GetPoolsActivityDto): Promise; getNumberOfTransactions(dto?: GetTokenDetailsDto): Promise; getTradingHistory(dto?: GetTradingHistoryDto): Promise; getMarketDetails(dto?: GetHistoricalTokenPriceDto): Promise; getTransaction(dto: GetTransactionDto): Promise; getTransactions(dto: GetTransactionsDto): Promise; getNftList(dto: GetNftListDto): Promise; createStreamTransactionPayload(dto: CreateStreamTransactionPayloadDto): Promise; deleteStreamTransactionPayload(dto: DeleteStreamTransactionPayloadDto): Promise; modifyStreamTransactionPayload(dto: CreateStreamTransactionPayloadDto): Promise; getStreamList(dto?: GetStreamListDto): Promise; createSuperERC20WrapperTransactionPayload(underlyingToken: string, underlyingDecimals?: number, name?: string, symbol?: string): Promise; findSuperERC20WrapperOnChain(underlyingToken: string, chainId?: number, underlyingDecimals?: number, name?: string, symbol?: string): Promise; registerERC20WrapperToken(wrapperAddress: string, chainId?: number): Promise; getRegisteredERC20WrapperTokens(): Promise; topUpAccount(): Promise; topUpPaymentDepositAccount(): Promise; topUp(value: string): Promise; topUpP2P(value: string): Promise; topUpToken(value: string, contractAddress: string): Promise; topUpTokenP2P(value: string, contractAddress: string): Promise; private transferTokens; registerContract(name: string, abi: any, addresses?: ContractAddresses): Contract & Partial; private require; private prepareAccountAddress; private getNetworkChainId; fetchExchangeRates(dto: FetchExchangeRatesDto): Promise; private validateResolveName; resolveName(dto?: NameResolutionNodeDto): Promise; }