import { type CoinID } from '@sentio/protos'; import { ChainId } from '@sentio/chain'; import { type Client, PriceService } from '@sentio/api'; export declare function getPriceClient(basePath?: string): PriceApi; type PriceApi = Client; 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 as a list of `{ symbol, coin }` * pairs where `coin` is the address-keyed CoinID for that symbol on the chain * @param chainId */ export declare function getCoinsThatHasPrice(chainId: ChainId): Promise<{ symbol: string; coin: import("@sentio/api/gen/service/price/protos/price_pb.js").CoinID; }[]>; export {}; //# sourceMappingURL=price.d.ts.map