import 'setimmediate'; import type { JsonRpcProvider } from '@ethersproject/providers'; import { Currency, CurrencyAmount, Token, TradeType } from '@uniswap/sdk-core'; import { TradeState } from './types/types'; export declare const STABLECOIN_AMOUNT_OUT: { [chainId: number]: CurrencyAmount; }; /** /** * * @param fiatValue string representation of a USD amount * @returns CurrencyAmount where currency is stablecoin on active chain */ export declare function getStablecoinAmountFromFiatValue(fiatValue: string | null | undefined, chainId: number | undefined): () => CurrencyAmount | undefined; export type UniswapProtocol = 'V2' | 'V3'; export default function getClientSideSmartOrderRouterTrade({ library, tradeType, protocol, amountSpecified, otherCurrency, }: { library: JsonRpcProvider; tradeType: TTradeType; protocol: UniswapProtocol; amountSpecified?: CurrencyAmount; otherCurrency?: Currency; }): Promise<{ state: TradeState; trade: undefined; } | { state: TradeState; trade: import("./types/types").InterfaceTrade; }>;