UNPKG

wgm-swap-components

Version:
19 lines (18 loc) 528 B
import { QuoteResponse } from '../services/quoteService'; import { Token } from '../SwapForm'; export declare function useFetchQuote({ tokenIn, tokenOut, amountIn, chainId, tradeType, protocols, enabled, }: { tokenIn: Token | null; tokenOut: Token | null; amountIn: string; chainId?: number; tradeType?: string; protocols?: string; enabled?: boolean; }): { data: { quote: QuoteResponse; } | null; isLoading: boolean; error: string | null; refetch: () => Promise<void>; };