import { Token } from '@nixiangyu/sdk-core'; import { FeeAmount, Pool } from '@nixiangyu/v3-sdk'; import { ChainId } from '../../util/chains'; import { ICache } from './../cache'; import { ProviderConfig } from './../provider'; import { IV3PoolProvider, V3PoolAccessor } from './pool-provider'; /** * Provider for getting V3 pools, with functionality for caching the results. * * @export * @class CachingV3PoolProvider */ export declare class CachingV3PoolProvider implements IV3PoolProvider { protected chainId: ChainId; protected poolProvider: IV3PoolProvider; private cache; private POOL_KEY; /** * Creates an instance of CachingV3PoolProvider. * @param chainId The chain id to use. * @param poolProvider The provider to use to get the pools when not in the cache. * @param cache Cache instance to hold cached pools. */ constructor(chainId: ChainId, poolProvider: IV3PoolProvider, cache: ICache); getPools(tokenPairs: [Token, Token, FeeAmount][], providerConfig?: ProviderConfig): Promise; getPoolAddress(tokenA: Token, tokenB: Token, feeAmount: FeeAmount): { poolAddress: string; token0: Token; token1: Token; }; }