import ZKWormholeEdge from "./ZKWormholeEdge.js";
import WarpError from "../../errors/WarpError.js";
/** Successful transition-proof verification for a cold wormhole edge. */
export default class VerifiedZKWormhole {
    edge;
    constructor(edge) {
        if (!(edge instanceof ZKWormholeEdge)) {
            throw new WarpError('edge must be a ZKWormholeEdge', 'E_VALIDATION');
        }
        this.edge = edge;
        Object.freeze(this);
    }
}
