"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ProofPointId = void 0;
var ProofPointId = /** @class */ (function () {
    function ProofPointId(id) {
        this._id = id;
    }
    ProofPointId.parse = function (input) {
        if (!/^Qm[1-9A-HJ-NP-Za-km-z]{44}$/.test(input)) {
            throw new Error("Invalid Proof Point ID: " + input);
        }
        return new ProofPointId(input);
    };
    ProofPointId.prototype.toString = function () {
        return this._id;
    };
    ProofPointId.prototype.equals = function (other) {
        return this._id === other._id;
    };
    return ProofPointId;
}());
exports.ProofPointId = ProofPointId;
