export class SetReviver {
    nativeTypeName() {
        return "Set";
    }
    isInstance(value) {
        return value instanceof Set;
    }
    serialize(value) {
        return { __nativeType: this.nativeTypeName(), values: Array.from(value) };
    }
    validate(value) {
        return Array.isArray(value.values);
    }
    revive(value) {
        return new Set(value.values);
    }
}
