import { TokenData } from '../../types'; import { GraphQLClient } from 'graphql-request'; export declare type TokenFields = { id: string; symbol: string; name: string; derivedETH: string; totalSupply: string; tradeVolume: string; tradeVolumeUSD: string; txCount: string; totalLiquidity: string; untrackedVolumeUSD: string; }; export declare const mapToken: (token: TokenFields) => TokenData; /** * * @param client * @param tokenAddress * @returns {Promise} */ export declare const fetchTokenData: (client: GraphQLClient, tokenAddress: string, blockNumber?: number | undefined | null) => Promise; /** * * @param client * @param tokenAddress * @param blockNumber * @returns {Promise<*[]|PoolData[]>} */ export declare const fetchPastTokenData: (client: GraphQLClient, tokenAddress: string, blockNumber: number | undefined) => Promise;