import { Hex } from "../../utils/hex";
import { SimpleProof } from "./simple-proof";
/**
 *
 *
 * @class TxProof
 */
export declare class TxProof {
    /**
     *
     * Creates a TxProof object using a JSON string
     * @param {string} json - JSON string.
     * @returns {TxProof} - TxProof object.
     * @memberof TxProof
     */
    static fromJSON(json: string): TxProof;
    readonly rootHash: string;
    readonly data: string | null;
    readonly proof: SimpleProof;
    /**
     * TxProof.
     * @constructor
     * @param {string} rootHash - Root hash.
     * @param {string | null} data - Hash holding the current tx proof data.
     * @param {SimpleProof} proof - Simple proof object.
     */
    constructor(rootHash: string, data: string | null, proof: SimpleProof);
    /**
     *
     * Creates a JSON object with the TxProof properties
     * @returns {JSON} - JSON Object.
     * @memberof TxProof
     */
    toJSON(): {
        data: string | null;
        proof: {
            aunts: Hex[] | null;
            index: number;
            leaf_hash: Hex | null;
            total: number;
        };
        root_hash: string;
    };
    /**
     *
     * Check if the TxProof object is valid
     * @returns {boolean} - True or false.
     * @memberof TxProof
     */
    isValid(): boolean;
}
