import { PartSetHeader } from "./part-set-header";
/**
 *
 *
 * @class BlockID
 */
export declare class BlockID {
    /**
     *
     * Creates a BlockID object using a JSON string
     * @param {string} json - JSON string.
     * @returns {BlockID} - BlockID object.
     * @memberof BlockID
     */
    static fromJSON(json: string): BlockID;
    readonly hash: string;
    readonly parts: PartSetHeader;
    /**
     * BlockID.
     * @constructor
     * @param {string} hash - BlockID hash.
     * @param {PartSetHeader} parts - PartSetHeader object.
     */
    constructor(hash: string, parts: PartSetHeader);
    /**
     *
     * Creates a JSON object with the BlockID properties
     * @returns {JSON} - JSON Object.
     * @memberof BlockID
     */
    toJSON(): {
        hash: string;
        parts: {
            hash: string;
            total: number;
        };
    };
    /**
     *
     * Check if the BlockID object is valid
     * @returns {boolean} - True or false.
     * @memberof BlockID
     */
    isValid(): boolean;
}
