import BigNumber from "bignumber.js"; import { Signer, Contract } from "ethers-6"; import { IChainInfo, ICrossRule, IToken } from "./types"; export declare const approveAndAllowanceCheck: (params: { contractInstance: Contract; account: string; contractAddress: string; targetValue: BigInt; }) => Promise; export declare function equalsIgnoreCase(value1: string, value2: string): boolean; export declare function getContract(params: { contractAddress: string; localChainID?: number | string; ABI?: any[]; signer?: Signer; }): Contract | undefined; export declare function isEthTokenAddress(tokenAddress: string, chainInfo: IChainInfo, tokens: IToken[]): boolean; export declare function getRealTransferValue(selectMakerConfig: ICrossRule, transferValue: number | string, fromTokenDecimals: number): BigInt; export declare function sleep(ms: number): Promise; export declare function getExchangeToUsdRate(sourceCurrency?: string): Promise; export declare function exchangeToUsd(value?: number | BigNumber, sourceCurrency?: string): Promise; export declare function getTokenConvertUsd(currency: string): Promise; export declare const throwNewError: (message: string, error?: any) => never; export declare const getContractAddressByType: (targetChainContracts: { [k: string]: string; }, value: string) => string; export declare const formatDate: (date: Date | string, isShort?: boolean) => string; export declare const getActiveSigner: () => T; export declare const getActiveAccount: () => Promise; export declare const getActiveChainId: () => Promise; export declare const changeActiveSignerType: (fromChainID: string | number) => void; export declare const isLoopring: (chainId: string | number) => boolean; export declare const isStarknet: (chainId: string | number) => boolean; //# sourceMappingURL=utils.d.ts.map