import WarpError from "../errors/WarpError.js";
import { CheckpointArtifact } from "./CheckpointArtifact.js";
/** Carries the applied version vector for checkpoint recovery. */
export class AppliedVVArtifact extends CheckpointArtifact {
    appliedVV;
    constructor({ schemaVersion, appliedVV }) {
        super({ schemaVersion });
        if (appliedVV === null || appliedVV === undefined) {
            throw new WarpError('AppliedVVArtifact requires an appliedVV', 'E_INVALID_ARTIFACT');
        }
        this.appliedVV = appliedVV;
        Object.freeze(this);
    }
}
