"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var ConfigurationCC_validateArgs_exports = {};
__export(ConfigurationCC_validateArgs_exports, {
  validateArgs_ConfigurationCCAPI_get: () => validateArgs_ConfigurationCCAPI_get,
  validateArgs_ConfigurationCCAPI_getBulk: () => validateArgs_ConfigurationCCAPI_getBulk,
  validateArgs_ConfigurationCCAPI_getInfo: () => validateArgs_ConfigurationCCAPI_getInfo,
  validateArgs_ConfigurationCCAPI_getName: () => validateArgs_ConfigurationCCAPI_getName,
  validateArgs_ConfigurationCCAPI_getProperties: () => validateArgs_ConfigurationCCAPI_getProperties,
  validateArgs_ConfigurationCCAPI_reset: () => validateArgs_ConfigurationCCAPI_reset,
  validateArgs_ConfigurationCCAPI_resetBulk: () => validateArgs_ConfigurationCCAPI_resetBulk,
  validateArgs_ConfigurationCCAPI_set: () => validateArgs_ConfigurationCCAPI_set,
  validateArgs_ConfigurationCCAPI_setBulk: () => validateArgs_ConfigurationCCAPI_setBulk
});
module.exports = __toCommonJS(ConfigurationCC_validateArgs_exports);
var v = __toESM(require("@zwave-js/core/validation"), 1);
function validateArgs_ConfigurationCCAPI_get() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function get(parameter, options) {
        v.assert(v.primitive({ kind: "parameter", name: "parameter" }, "number")(parameter), v.optional({ kind: "parameter", name: "options" }, v.object({ kind: "parameter", name: "options" }, "<anonymous object>", { "valueBitMask": v.optional({ kind: "property", name: "valueBitMask" }, v.primitive({ kind: "property", name: "valueBitMask" }, "number")), "allowUnexpectedResponse": v.optional({ kind: "property", name: "allowUnexpectedResponse" }, v.primitive({ kind: "property", name: "allowUnexpectedResponse" }, "boolean")) }))(options));
        return __decoratedMethod.call(this, parameter, options);
      }, "get");
    }
  };
}
__name(validateArgs_ConfigurationCCAPI_get, "validateArgs_ConfigurationCCAPI_get");
function validateArgs_ConfigurationCCAPI_getBulk() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function getBulk(options) {
        v.assert(v.array({ kind: "parameter", name: "options" }, "__type", v.object({ kind: "item", name: "options" }, "<anonymous object>", { "parameter": v.primitive({ kind: "property", name: "parameter" }, "number"), "bitMask": v.optional({ kind: "property", name: "bitMask" }, v.primitive({ kind: "property", name: "bitMask" }, "number")) }))(options));
        return __decoratedMethod.call(this, options);
      }, "getBulk");
    }
  };
}
__name(validateArgs_ConfigurationCCAPI_getBulk, "validateArgs_ConfigurationCCAPI_getBulk");
function validateArgs_ConfigurationCCAPI_set() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function set(options) {
        v.assert(v.oneOf({ kind: "parameter", name: "options" }, "ConfigurationCCAPISetOptions", v.allOf({ kind: "parameter", name: "options" }, void 0, v.object({ kind: "parameter", name: "options" }, "<anonymous object>", { "parameter": v.primitive({ kind: "property", name: "parameter" }, "number") }), v.object({ kind: "parameter", name: "options" }, "<anonymous object>", { "bitMask": v.undefined({ kind: "property", name: "bitMask" }), "value": v.primitive({ kind: "property", name: "value" }, "number") })), v.allOf({ kind: "parameter", name: "options" }, void 0, v.object({ kind: "parameter", name: "options" }, "<anonymous object>", { "parameter": v.primitive({ kind: "property", name: "parameter" }, "number") }), v.object({ kind: "parameter", name: "options" }, "<anonymous object>", { "bitMask": v.undefined({ kind: "property", name: "bitMask" }), "value": v.primitive({ kind: "property", name: "value" }, "number"), "valueSize": v.oneOf({ kind: "property", name: "valueSize" }, void 0, v.literal({ kind: "property", name: "valueSize" }, 1), v.literal({ kind: "property", name: "valueSize" }, 2), v.literal({ kind: "property", name: "valueSize" }, 4)), "valueFormat": v.enum({ kind: "property", name: "valueFormat" }, "ConfigValueFormat", [0, 1, 2, 3]) })), v.allOf({ kind: "parameter", name: "options" }, void 0, v.object({ kind: "parameter", name: "options" }, "<anonymous object>", { "parameter": v.primitive({ kind: "property", name: "parameter" }, "number") }), v.object({ kind: "parameter", name: "options" }, "<anonymous object>", { "bitMask": v.primitive({ kind: "property", name: "bitMask" }, "number"), "value": v.primitive({ kind: "property", name: "value" }, "number") })))(options));
        return __decoratedMethod.call(this, options);
      }, "set");
    }
  };
}
__name(validateArgs_ConfigurationCCAPI_set, "validateArgs_ConfigurationCCAPI_set");
function validateArgs_ConfigurationCCAPI_setBulk() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function setBulk(values) {
        v.assert(v.array({ kind: "parameter", name: "values" }, 'import("/home/runner/work/zwave-js/zwave-js/packages/cc/src/cc/ConfigurationCC").ConfigurationCCAPISetOptions', v.oneOf({ kind: "item", name: "values" }, "ConfigurationCCAPISetOptions", v.allOf({ kind: "item", name: "values" }, void 0, v.object({ kind: "item", name: "values" }, "<anonymous object>", { "parameter": v.primitive({ kind: "property", name: "parameter" }, "number") }), v.object({ kind: "item", name: "values" }, "<anonymous object>", { "bitMask": v.undefined({ kind: "property", name: "bitMask" }), "value": v.primitive({ kind: "property", name: "value" }, "number") })), v.allOf({ kind: "item", name: "values" }, void 0, v.object({ kind: "item", name: "values" }, "<anonymous object>", { "parameter": v.primitive({ kind: "property", name: "parameter" }, "number") }), v.object({ kind: "item", name: "values" }, "<anonymous object>", { "bitMask": v.undefined({ kind: "property", name: "bitMask" }), "value": v.primitive({ kind: "property", name: "value" }, "number"), "valueSize": v.oneOf({ kind: "property", name: "valueSize" }, void 0, v.literal({ kind: "property", name: "valueSize" }, 1), v.literal({ kind: "property", name: "valueSize" }, 2), v.literal({ kind: "property", name: "valueSize" }, 4)), "valueFormat": v.enum({ kind: "property", name: "valueFormat" }, "ConfigValueFormat", [0, 1, 2, 3]) })), v.allOf({ kind: "item", name: "values" }, void 0, v.object({ kind: "item", name: "values" }, "<anonymous object>", { "parameter": v.primitive({ kind: "property", name: "parameter" }, "number") }), v.object({ kind: "item", name: "values" }, "<anonymous object>", { "bitMask": v.primitive({ kind: "property", name: "bitMask" }, "number"), "value": v.primitive({ kind: "property", name: "value" }, "number") }))))(values));
        return __decoratedMethod.call(this, values);
      }, "setBulk");
    }
  };
}
__name(validateArgs_ConfigurationCCAPI_setBulk, "validateArgs_ConfigurationCCAPI_setBulk");
function validateArgs_ConfigurationCCAPI_reset() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function reset(parameter) {
        v.assert(v.primitive({ kind: "parameter", name: "parameter" }, "number")(parameter));
        return __decoratedMethod.call(this, parameter);
      }, "reset");
    }
  };
}
__name(validateArgs_ConfigurationCCAPI_reset, "validateArgs_ConfigurationCCAPI_reset");
function validateArgs_ConfigurationCCAPI_resetBulk() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function resetBulk(parameters) {
        v.assert(v.array({ kind: "parameter", name: "parameters" }, "number", v.primitive({ kind: "item", name: "parameters" }, "number"))(parameters));
        return __decoratedMethod.call(this, parameters);
      }, "resetBulk");
    }
  };
}
__name(validateArgs_ConfigurationCCAPI_resetBulk, "validateArgs_ConfigurationCCAPI_resetBulk");
function validateArgs_ConfigurationCCAPI_getProperties() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function getProperties(parameter) {
        v.assert(v.primitive({ kind: "parameter", name: "parameter" }, "number")(parameter));
        return __decoratedMethod.call(this, parameter);
      }, "getProperties");
    }
  };
}
__name(validateArgs_ConfigurationCCAPI_getProperties, "validateArgs_ConfigurationCCAPI_getProperties");
function validateArgs_ConfigurationCCAPI_getName() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function getName(parameter) {
        v.assert(v.primitive({ kind: "parameter", name: "parameter" }, "number")(parameter));
        return __decoratedMethod.call(this, parameter);
      }, "getName");
    }
  };
}
__name(validateArgs_ConfigurationCCAPI_getName, "validateArgs_ConfigurationCCAPI_getName");
function validateArgs_ConfigurationCCAPI_getInfo() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function getInfo(parameter) {
        v.assert(v.primitive({ kind: "parameter", name: "parameter" }, "number")(parameter));
        return __decoratedMethod.call(this, parameter);
      }, "getInfo");
    }
  };
}
__name(validateArgs_ConfigurationCCAPI_getInfo, "validateArgs_ConfigurationCCAPI_getInfo");
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  validateArgs_ConfigurationCCAPI_get,
  validateArgs_ConfigurationCCAPI_getBulk,
  validateArgs_ConfigurationCCAPI_getInfo,
  validateArgs_ConfigurationCCAPI_getName,
  validateArgs_ConfigurationCCAPI_getProperties,
  validateArgs_ConfigurationCCAPI_reset,
  validateArgs_ConfigurationCCAPI_resetBulk,
  validateArgs_ConfigurationCCAPI_set,
  validateArgs_ConfigurationCCAPI_setBulk
});
//# sourceMappingURL=ConfigurationCC._validateArgs.js.map
