import { Numeric } from '@faast/ts-common' ; import { Payport , MaybePromise , AutoFeeLevels , FeeRate , NetworkType , UtxoInfo , BalanceResult , BaseTransactionInfo , BlockInfo , GetFeeRecommendationOptions , GetTransactionInfoOptions } from './types' ; export interface PaymentsUtils { readonly networkType : NetworkType ; readonly coinSymbol : string ; readonly coinName : string ; readonly coinDecimals : number ; init ( ) : Promise < void > ; destroy ( ) : Promise < void > ; /**
     * Converts to main denomination units
     * Example: convert "125000000000" moneroj to "0.125" XMR
     */ toMainDenomination < O extends object > ( amount , options ? ) : string ; /**
     * Converts to base atomic units
     * Example: convert "0.125" XMR to "125000000000" moneroj
     */ toBaseDenomination < O extends object > ( amount , options ? ) : string ; /**
     * Return true if it's a valid address.
     */ isValidAddress < O extends { format ? : string ; } > ( address , options ? ) : boolean ; /**
     * Return the address in a standardized format (ie checksum vs lowercase).
     * Return null if address isn't in any valid format.
     */ standardizeAddress < O extends { format ? : string ; } > ( address , options ? ) : string | null ; /**
     * Return true if it's a valid extra ID.
     */ isValidExtraId < O extends object > ( extraId , options ? ) : boolean ; /**
     * Return true if it's a valid payport. Must be async to allow for ripple to check if the account has
     * requireDestinationTag set.
     */ isValidPayport < O extends object > ( payport , options ? ) : MaybePromise < boolean > ; /**
     * Throw on invalid, undefined otherwise.
     */ validatePayport < O extends object > ( payport , options ? ) : MaybePromise < void > ; /**
     * Return a validation message on invalid, undefined otherwise.
     */ getPayportValidationMessage < O extends object > ( payport , options ? ) : MaybePromise < string | undefined > ; /**
     * Get a recommended fee for a certain level
     */ getFeeRateRecommendation < O extends GetFeeRecommendationOptions = GetFeeRecommendationOptions > ( level , options ? ) : MaybePromise < FeeRate > ; /**
     * Returns the current block number as a string
     */ getCurrentBlockNumber ( ) : MaybePromise < number > ; /**
     * Return utxos for the provided address
     */ getAddressUtxos ( address ) : Promise < UtxoInfo [ ] > ; param balance param address isAddressBalanceSweepable ( balance , address ? ) : boolean ; /**
     * Return the balance of an address
     */ getAddressBalance ( address ) : Promise < BalanceResult > ; returns getAddressNextSequenceNumber ( address ) : Promise < string | null > ; param txId param options returns throws getTransactionInfo < O extends GetTransactionInfoOptions > ( txId , options ) : Promise < BaseTransactionInfo > ; getBlock ( id ? ) : Promise < BlockInfo > ; }