import { MarketplacePrice } from '@nftx/types'; import fetchQuote, { BuyArgs, MintArgs, RedeemArgs, SellArgs, TokenArgs, SwapArgs, } from './fetchQuote'; /** Returns an off-chain price for a transaction */ function fetchPrice(args: BuyArgs): Promise; function fetchPrice(args: SellArgs): Promise; function fetchPrice(args: SwapArgs): Promise; function fetchPrice(args: MintArgs): Promise; function fetchPrice(args: RedeemArgs): Promise; function fetchPrice(args: TokenArgs): Promise; function fetchPrice(args: any) { return fetchQuote({ ...args, quoteType: 'price' }); } export default fetchPrice;