import { Trade as RouterTrade } from '@uniswap/router-sdk'; import { Currency, TradeType } from '@uniswap/sdk-core'; export type TokenInRoute = { address: string; chainId: number; symbol: string; decimals: string; name?: string; buyFeeBps?: string; sellFeeBps?: string; }; export declare enum PoolType { V2Pool = "v2-pool", V3Pool = "v3-pool", V4Pool = "v4-pool" } export type V2Reserve = { token: TokenInRoute; quotient: string; }; export type V2PoolInRoute = { type: PoolType.V2Pool; address?: string; tokenIn: TokenInRoute; tokenOut: TokenInRoute; reserve0: V2Reserve; reserve1: V2Reserve; amountIn?: string; amountOut?: string; }; export type V3PoolInRoute = { type: PoolType.V3Pool; address?: string; tokenIn: TokenInRoute; tokenOut: TokenInRoute; sqrtRatioX96: string; liquidity: string; tickCurrent: string; fee: string; amountIn?: string; amountOut?: string; }; export type V4PoolInRoute = { type: PoolType.V4Pool; address?: string; tokenIn: TokenInRoute; tokenOut: TokenInRoute; fee: string; tickSpacing: string; hooks: string; liquidity: string; sqrtRatioX96: string; tickCurrent: string; amountIn?: string; amountOut?: string; }; export type PartialClassicQuote = { tokenIn: string; tokenOut: string; tradeType: TradeType; route: Array<(V4PoolInRoute | V3PoolInRoute | V2PoolInRoute)[]>; }; export declare const isNativeCurrency: (address: string) => boolean; export declare class RouterTradeAdapter { static fromClassicQuote(quote: PartialClassicQuote): RouterTrade; private static toCurrency; private static toPoolOrPair; private static toToken; private static toV3Pool; private static toV4Pool; private static toPair; private static isVersionedRoute; }