import type { IPFS } from "ipfs-core-types";
export interface BlockStore {
    putBlock(bytes: Uint8Array, code: number): Promise<Uint8Array>;
    getBlock(cid: Uint8Array): Promise<Uint8Array | undefined>;
}
export declare class IpfsBlockStore implements BlockStore {
    private ipfs;
    /** Creates a new in-memory block store. */
    constructor(ipfs: IPFS);
    /** Stores an array of bytes in the block store. */
    getBlock(cid: Uint8Array): Promise<Uint8Array | undefined>;
    /** Retrieves an array of bytes from the block store with given CID. */
    putBlock(bytes: Uint8Array, code: number): Promise<Uint8Array>;
}
