import { IPriceProvider } from "./abstract/IPriceProvider"; import { ICachedSwapPrice } from "./abstract/ICachedSwapPrice"; import { ChainIds, MultiChain } from "../swaps/swapper/Swapper"; /** * Swap price API using single price source */ export declare class SingleSwapPrice extends ICachedSwapPrice { priceProvider: IPriceProvider; constructor(maxAllowedFeeDiffPPM: bigint, priceProvider: IPriceProvider, cacheTimeout?: number); /** * Fetch price in uSats (micro sats) for a given token against BTC * * @param chainIdentifier * @param token * @param abortSignal * @protected * @returns token price in uSats (micro sats) */ protected fetchPrice>(chainIdentifier: C, token: string, abortSignal?: AbortSignal): Promise; /** * Returns the decimal places of the specified token, or -1 if token should be ignored, returns null if * token is not found * * @param chainIdentifier * @param token * @protected */ protected getDecimals>(chainIdentifier: C, token: string): number | null; protected fetchUsdPrice(abortSignal?: AbortSignal): Promise; }