import BigNumber from 'bignumber.js'; import { Web3PrimitiveType } from "../../../models/web3-primitive-type"; import { ContractMulticallResponse } from "../models/contract-multicall-response"; import { MethodData } from "../models/method-data"; import { SupportedTokenField } from "../models/supported-token-field"; import { TxStatus } from "../models/tx-status"; import { TronBlock } from "./models/tron-block"; import { TronWebProvider } from "./models/tron-web-provider"; import { Web3Public } from "../web3-public"; import { TronWeb } from 'tronweb'; import { TransactionInfo } from 'tronweb/lib/esm/types'; import { AbiItem } from 'web3-utils'; export declare class TronWeb3Public extends Web3Public { private readonly tronWeb; protected readonly tokenContractAbi: AbiItem[]; constructor(tronWeb: TronWeb); setProvider(_provider: TronWebProvider): void; convertTronAddressToHex(address: string): Promise; healthCheck(timeoutMs?: number): Promise; getBalance(userAddress: string, tokenAddress?: string): Promise; getTokenBalance(userAddress: string, tokenAddress: string): Promise; getAllowance(tokenAddress: string, ownerAddress: string, spenderAddress: string): Promise; multicallContractsMethods(contractAbi: AbiItem[], contractsData: { contractAddress: string; methodsData: MethodData[]; }[]): Promise[][]>; /** * Executes multiple calls in the single contract call. * @param calls Multicall calls data list. * @returns Result of calls execution. */ private multicall; callContractMethod(contractAddress: string, contractAbi: AbiItem[], methodName: string, methodArguments?: unknown[]): Promise; /** * Gets mined transaction info. * @param hash Transaction hash. */ getTransactionInfo(hash: string): Promise; getTransactionStatus(hash: string): Promise; getBlock(): Promise; getBlockNumber(): Promise; private multicallContractsMethodsByOne; getTokensBalances(userAddress: string, tokensAddresses: string[]): Promise; callForTokensInfo(tokenAddresses: string[] | ReadonlyArray, tokenFields?: SupportedTokenField[]): Promise>[]>; private batchMulticallTokenBalance; }