import { default as BN } from 'bignumber.js'; import { default as Web3 } from 'web3'; import { ActionStatus, Network, QuoteResponse, Token, TxDetailsFromApi } from './type'; export declare const amountBN: (decimals?: number, amount?: string) => BN; export declare const amountUi: (decimals?: number, amount?: BN) => string; export declare const amountUiV2: (decimals?: number, amount?: string) => string; export declare function delay(ms: number): Promise; export declare const getChainConfig: (chainId?: number) => Network | undefined; export declare const getTxDetailsFromApi: (txHash: string, chainId: number, quote?: QuoteResponse) => Promise; export declare function waitForTxReceipt(web3: Web3, txHash: string): Promise<{ mined: true; revertMessage: undefined; receipt: any; } | { mined: boolean; revertMessage: string; receipt: any; } | undefined>; export declare function getTransactionDetails(web3: Web3, txHash: string): Promise<{ mined: boolean; revertMessage?: string; receipt?: any; }>; export declare const deductSlippage: (amount?: string, slippage?: number) => string; export declare const counter: () => () => number; export declare const shouldReturnZeroOutAmount: (error: string) => boolean; export declare function eqIgnoreCase(a: string, b: string): boolean; export declare const isNativeAddress: (address: string) => boolean; export declare function bn(n: BN.Value, base?: number): BN; export declare function sendAndWaitForConfirmations({ web3, chainId, tx, opts, confirmations, autoGas, onTxHash, }: { web3: Web3; chainId: number; tx: any; opts: any; confirmations?: number; autoGas?: "fast" | "med" | "slow"; onTxHash?: (txHash: string) => void; }): Promise; export declare function estimateGasPrice(web3: Web3, chainId: number, percentiles?: number[], length?: number): Promise<{ slow: { max: BN; tip: BN; }; med: { max: BN; tip: BN; }; fast: { max: BN; tip: BN; }; baseFeePerGas: BN; pendingBlockNumber: number; pendingBlockTimestamp: number; }>; export declare function network(chainId: number): Network; export declare function median(arr: BN.Value[]): BN; export declare function keepTrying(fn: () => Promise, retries?: number, ms?: number): Promise; export declare function sleep(ms: number): Promise; export declare function timeout(fn: () => Promise, ms?: number): Promise; export declare function parsebn(n: BN.Value, defaultValue?: BN, fmt?: BN.Format): BN; export declare const getBaseAssets: (chainId: number) => string[]; export declare const findTokenInList: (tokens: Token[], addressOrSymbol: string) => Token | undefined; export declare const filterTokens: (list?: Token[], filterValue?: string) => Token[]; export declare function fetchWithTimeout(func: () => Promise, timeout: number): Promise; export declare const formatNumberDecimals: (decimalScale?: number, value?: string | number) => number; export declare const formatNumber: (value?: string | number, decimalScale?: number) => string; export declare const Logger: (value: string | object | any[] | number) => void; export declare const safeBN: (value?: string | number) => string | undefined; export declare const getContract: (address?: string, web3?: Web3, chainId?: number) => import('web3-eth-contract').Contract | undefined; export declare const isTxRejected: (error: any) => any; export declare const isNativeBalanceError: (error: any) => any; export declare const getSwapModalTitle: (swapStatus: ActionStatus) => "Swap Successfull" | "Review Swap" | undefined; export declare const isLHSwap: (lhAmountOut?: string, dexAmountOut?: string) => boolean;