import { TronWeb, Types } from "tronweb"; import { ContractAbiInterface, EventFragment, FunctionFragment, NoConstructorAbiFragment, SignedTransaction, Transaction, WalletAdapterSignedTransaction, WalletAdapterTransaction } from "./types"; export declare function findFragmentByName(abi: ContractAbiInterface, name: string, throwIfNotFound?: boolean): NoConstructorAbiFragment | undefined; export declare function findFunctioFragmentByName(abi: ContractAbiInterface, name: string, throwIfNotFound?: boolean): FunctionFragment | undefined; export declare function findEventFragmentByName(abi: ContractAbiInterface, name: string, throwIfNotFound?: boolean): EventFragment | undefined; /** * Converts percentage value to bps * @param percent * @returns */ export declare function percentToBps(percent: string): string; /** * Coverts bps value to percentage * @param bps * @returns */ export declare function bpsToPercent(bps: string): string; export declare function toHex(value: string): string; export declare function fromHex(value: string): string; export declare function isEmailValid(value: string): boolean; export declare function areDatesOfSameDay(date1: Date, date2: Date): boolean; export declare function getTokenDecimals(tronWeb: TronWeb, tokenAddress: string): Promise; export declare function fromTronTransaction(from: Transaction): WalletAdapterTransaction; export declare function toTronSignedTransaction(from: WalletAdapterSignedTransaction): SignedTransaction; export declare function toTronContractType(type: string): Types.ContractType; export declare function broadcastReturnResponseCodeToName(code: number): "SUCCESS" | "SIGERROR" | "CONTRACT_VALIDATE_ERROR" | "CONTRACT_EXE_ERROR" | "BANDWITH_ERROR" | "DUP_TRANSACTION_ERROR" | "TAPOS_ERROR" | "TOO_BIG_TRANSACTION_ERROR" | "TRANSACTION_EXPIRATION_ERROR" | "SERVER_BUSY" | "NO_CONNECTION" | "NOT_ENOUGH_EFFECTIVE_CONNECTION" | "OTHER_ERROR";