import { classifyLegacyPropertyKey, isContentCompatibilityClassification, requireLegacyPropertyKeyValue, } from "./LegacyPropertyKeyClassification.js";
/** Runtime-backed key for a legacy edge property compatibility slot. */
export default class LegacyEdgePropertyKey {
    value;
    constructor(value) {
        this.value = requireLegacyPropertyKeyValue(value, 'LegacyEdgePropertyKey');
        Object.freeze(this);
    }
    /** Returns the stable legacy property key string. */
    toString() {
        return this.value;
    }
    /** Classifies this key for compatibility projection decisions. */
    classification() {
        return classifyLegacyPropertyKey(this.value);
    }
    /** Returns true when this key belongs to legacy content compatibility. */
    isContentCompatibilityKey() {
        return isContentCompatibilityClassification(this.classification());
    }
    /** Compares edge property keys by runtime value. */
    equals(other) {
        if (!(other instanceof LegacyEdgePropertyKey)) {
            return false;
        }
        return this.value === other.value;
    }
}
