import { CoinID } from '@sentio/protos'; import { ChainId } from '@sentio/chain'; import { PriceService } from '@sentio/api'; export declare function getPriceClient(basePath?: string): typeof PriceService; type PriceApi = typeof PriceService; interface PriceOptions { toleranceInDays?: number; } export declare function getPriceByTypeOrSymbolInternal(priceClient: PriceApi, date: Date, coinId: CoinID, options?: PriceOptions): Promise; /** * * @param chainId chain id refers to CHAIN_MAP * @param coinType * @param date * @param options other behavior options */ export declare function getPriceByType(chainId: ChainId, coinType: string, date: Date, options?: PriceOptions): Promise; /** * @param symbol token symbol like BTC, etc * @param date * @param options other behavior options */ export declare function getPriceBySymbol(symbol: string, date: Date, options?: PriceOptions): Promise; /** * get coins that has price, return results are list of coin id with both symbol and address field set * @param chainId */ export declare function getCoinsThatHasPrice(chainId: ChainId): Promise; export {}; //# sourceMappingURL=price.d.ts.map