import { BigNumber } from '@ethersproject/bignumber'; import { SorConfig, TokenPriceService } from './types'; export declare class SwapCostCalculator { private readonly tokenPriceService; private readonly tokenPriceCache; constructor(config: SorConfig, tokenPriceService: TokenPriceService); /** * Calculate the cost of spending a certain amount of gas in terms of a token. * This allows us to determine whether an increased amount of tokens gained * is worth spending this extra gas (e.g. by including an extra pool in a swap) */ convertGasCostToToken(tokenAddress: string, tokenDecimals: number, gasPriceWei: BigNumber, swapGas?: BigNumber): Promise; /** * @param tokenAddress - the address of the token for which to express the native asset in terms of * @param tokenPrice - the price of the native asset in terms of the provided token */ setNativeAssetPriceInToken(tokenAddress: string, tokenPrice: string): void; /** * @param tokenAddress - the address of the token for which to express the native asset in terms of */ private getNativeAssetPriceInToken; }