import { HexString, IRpc, OnRpcFetch } from './interfaces'; export declare class RPC implements IRpc { private url; private cacheDir; private cache; private storageGets; private handlers; constructor(url: string | null | undefined, block: string | number | undefined, cacheDir: string | undefined); onFetch(h: OnRpcFetch): void; private atBlock; private fetchBuffer; private fetchJson; private _fetchCached; private _fetchNonCached; getChainId(): Promise; getBlock(): Promise; getCode(contract: HexString): Promise; getBalance(key: HexString): Promise; getTimestamp(): Promise; getStorageAt(address: HexString, key: bigint): Promise; private initializeFromLastExecution; sealExecution(): Promise; private storageCacheKey; _getStorageAt(address: HexString, key: bigint, handleNonCached: (() => void) | null): Promise; }