import { Contracts } from "@arkecosystem/core-kernel"; import { Interfaces } from "@arkecosystem/crypto"; export declare class ChunkCache implements Contracts.P2P.ChunkCache { /** * If downloading some chunk fails but nevertheless we manage to download higher chunks, * then they are stored here for later retrieval. */ private downloadedChunksCache; /** * Maximum number of entries to keep in `downloadedChunksCache`. * At 400 blocks per chunk, 100 chunks would amount to 40k blocks. * Chunks are removed by First in first out method. */ private downloadedChunksCacheMax; has(key: string): boolean; get(key: string): Interfaces.IBlockData[]; set(key: string, data: Interfaces.IBlockData[]): void; remove(key: string): void; } //# sourceMappingURL=chunk-cache.d.ts.map