import { NetworkNumber } from '../types/common'; export declare const isLayer2Network: (networkId: NetworkNumber) => boolean; export declare const addToObjectIf: (condition: any, item: any) => any; export declare const addToArrayIf: (condition: any, ...items: any[]) => any[]; export declare const stEthToWstEth: (maybeStEth: any) => any; export declare const wstEthToStEth: (maybeStEth: any) => any; export declare const getAbiItem: (abi: any, methodName: string) => any; export declare const ADDRESS_REGEX: RegExp; export declare const isAddress: (address: string) => boolean; export declare const compareAddresses: (addr1?: string, addr2?: string) => boolean; export declare const shortenAddress: (address?: string, start?: number, end?: number) => string; export declare const getWeiAmountForDecimals: (amount: string | number, decimals: number) => string; export declare const getEthAmountForDecimals: (amount: string | number, decimals: string | number) => string; export declare const handleWbtcLegacy: (asset: string) => string; export declare const bytesToString: (hex: string) => string; /** * Map an input value from one range (minInput, maxInput) to a value in another range (minOutput, maxOutput) */ export declare const mapRange: (input: number | string, minInput: number | string, maxInput: number | string, minOutput: number | string, maxOutput: number | string) => number; export declare const isEnabledOnBitmap: (bitmap: string | bigint | number, assetId: string | bigint | number) => boolean; export declare const MAXUINT: string; export declare const isMaxUint: (amount: string) => boolean; export declare const isMainnetNetwork: (network: NetworkNumber) => network is NetworkNumber.Eth; export declare const DEFAULT_TIMEOUT = 2000; export declare const LONGER_TIMEOUT = 5000; /** * Converts web3 hybrid response (that can be used as objects and arrays, so has duplicated values) to objects. * @param value */ export declare const convertHybridArraysToObjects: (value: any) => any; export declare const ethToWeth: (maybeEth: string) => string; export declare const wethToEth: (maybeWeth: string) => string; export declare const wethToEthByAddress: (maybeWethAddr: string, chainId?: NetworkNumber) => string; export declare const ethToWethByAddress: (maybeEthAddr: string, chainId?: NetworkNumber) => string; export declare const xplToWxpl: (maybeXpl: string) => string; export declare const wxplToXpl: (maybeWxpl: string) => string; export declare const getWrappedNativeAssetFromUnwrapped: (symbol: string) => string; export declare const getNativeAssetFromWrapped: (symbol: string) => string;