"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RestoreDefaultParametersType = exports.isObjectOfDeviceSerialNumberToValues = exports.isArrayOfDeviceSerialNumbers = exports.ValueType = exports.ControllerType = exports.EthercatNetworkState = exports.RequestError = exports.MotionMasterMessage = void 0;
const motion_master_proto_1 = require("./motion-master.proto");
exports.MotionMasterMessage = motion_master_proto_1.motionmaster.MotionMasterMessage;
class RequestError extends Error {
}
exports.RequestError = RequestError;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
exports.EthercatNetworkState = exports.MotionMasterMessage.Request.SetEthercatNetworkState.State;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
exports.ControllerType = exports.MotionMasterMessage.Request.EnableMotionController.ControllerType;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
exports.ValueType = exports.MotionMasterMessage.Status.DeviceParameterInfo.Parameter.ValueType;
function isArrayOfDeviceSerialNumbers(ids) {
    return ids.length > 0 && typeof ids[0] === 'string';
}
exports.isArrayOfDeviceSerialNumbers = isArrayOfDeviceSerialNumbers;
function isObjectOfDeviceSerialNumberToValues(ids) {
    return !Array.isArray(ids);
}
exports.isObjectOfDeviceSerialNumberToValues = isObjectOfDeviceSerialNumberToValues;
var RestoreDefaultParametersType;
(function (RestoreDefaultParametersType) {
    RestoreDefaultParametersType[RestoreDefaultParametersType["RESTORE_ALL_DEFAULT_PARAMETERS"] = 1] = "RESTORE_ALL_DEFAULT_PARAMETERS";
    RestoreDefaultParametersType[RestoreDefaultParametersType["RESTORE_MANUFACTURER_DEFAULT_PARAMETERS"] = 4] = "RESTORE_MANUFACTURER_DEFAULT_PARAMETERS";
})(RestoreDefaultParametersType = exports.RestoreDefaultParametersType || (exports.RestoreDefaultParametersType = {}));
//# sourceMappingURL=types.js.map