export declare class Cache { private readonly irreversible; private readonly window; handleNewBlock(head: Connex.Thor.Status['head'], bloom?: { bits: string; k: number; }, block?: Connex.Thor.Block): void; getBlock(revision: string | number, fetch: () => Promise): Promise; getFeesHistory(newestBlock: string | number, blockCount: number, rewardPercentiles: number[], fetch: () => Promise): Promise; getTx(txid: string, fetch: () => Promise): Promise; getReceipt(txid: string, fetch: () => Promise): Promise; getAccount(addr: string, revision: string, fetch: () => Promise): Promise; /** * get cached entry which is tied to a batch of addresses * @param key the cache key * @param revision block id where cache bound to * @param fetch to fetch value when cache missing * @param hints array of tied addresses, as the gist to invalidate cache key. undefined means the key is always * invalidated on different revision. */ getTied(key: string, revision: string, fetch: () => Promise, hints?: string[]): Promise; private findSlot; private isIrreversible; }