import { Epoch, Root, Slot, phase0 } from "@lodestar/types"; import { CachedBeaconStateAllForks } from "../types.js"; /** * Cache to prevent accessing the state tree to fetch block roots repeteadly. * In normal network conditions the same root is read multiple times, specially the target. */ export declare class RootCache { private readonly state; readonly currentJustifiedCheckpoint: phase0.Checkpoint; readonly previousJustifiedCheckpoint: phase0.Checkpoint; private readonly blockRootEpochCache; private readonly blockRootSlotCache; constructor(state: CachedBeaconStateAllForks); getBlockRoot(epoch: Epoch): Root; getBlockRootAtSlot(slot: Slot): Root; } //# sourceMappingURL=rootCache.d.ts.map