"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 AssociationGroupInfoCC_validateArgs_exports = {};
__export(AssociationGroupInfoCC_validateArgs_exports, {
  validateArgs_AssociationGroupInfoCCAPI_getCommands: () => validateArgs_AssociationGroupInfoCCAPI_getCommands,
  validateArgs_AssociationGroupInfoCCAPI_getGroupInfo: () => validateArgs_AssociationGroupInfoCCAPI_getGroupInfo,
  validateArgs_AssociationGroupInfoCCAPI_getGroupName: () => validateArgs_AssociationGroupInfoCCAPI_getGroupName,
  validateArgs_AssociationGroupInfoCCAPI_reportCommands: () => validateArgs_AssociationGroupInfoCCAPI_reportCommands,
  validateArgs_AssociationGroupInfoCCAPI_reportGroupInfo: () => validateArgs_AssociationGroupInfoCCAPI_reportGroupInfo,
  validateArgs_AssociationGroupInfoCCAPI_reportGroupName: () => validateArgs_AssociationGroupInfoCCAPI_reportGroupName
});
module.exports = __toCommonJS(AssociationGroupInfoCC_validateArgs_exports);
var v = __toESM(require("@zwave-js/core/validation"), 1);
function validateArgs_AssociationGroupInfoCCAPI_getGroupName() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function getGroupName(groupId) {
        v.assert(v.primitive({ kind: "parameter", name: "groupId" }, "number")(groupId));
        return __decoratedMethod.call(this, groupId);
      }, "getGroupName");
    }
  };
}
__name(validateArgs_AssociationGroupInfoCCAPI_getGroupName, "validateArgs_AssociationGroupInfoCCAPI_getGroupName");
function validateArgs_AssociationGroupInfoCCAPI_reportGroupName() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function reportGroupName(groupId, name) {
        v.assert(v.primitive({ kind: "parameter", name: "groupId" }, "number")(groupId), v.primitive({ kind: "parameter", name: "name" }, "string")(name));
        return __decoratedMethod.call(this, groupId, name);
      }, "reportGroupName");
    }
  };
}
__name(validateArgs_AssociationGroupInfoCCAPI_reportGroupName, "validateArgs_AssociationGroupInfoCCAPI_reportGroupName");
function validateArgs_AssociationGroupInfoCCAPI_getGroupInfo() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function getGroupInfo(groupId, refreshCache) {
        v.assert(v.primitive({ kind: "parameter", name: "groupId" }, "number")(groupId), v.optional({ kind: "parameter", name: "refreshCache" }, v.primitive({ kind: "parameter", name: "refreshCache" }, "boolean"))(refreshCache));
        return __decoratedMethod.call(this, groupId, refreshCache);
      }, "getGroupInfo");
    }
  };
}
__name(validateArgs_AssociationGroupInfoCCAPI_getGroupInfo, "validateArgs_AssociationGroupInfoCCAPI_getGroupInfo");
function validateArgs_AssociationGroupInfoCCAPI_reportGroupInfo() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function reportGroupInfo(options) {
        v.assert(v.object({ kind: "parameter", name: "options" }, "AssociationGroupInfoCCInfoReportOptions", { "isListMode": v.primitive({ kind: "property", name: "isListMode" }, "boolean"), "hasDynamicInfo": v.primitive({ kind: "property", name: "hasDynamicInfo" }, "boolean"), "groups": v.array({ kind: "property", name: "groups" }, "AssociationGroupInfo", v.object({ kind: "item", name: "groups" }, "AssociationGroupInfo", { "groupId": v.primitive({ kind: "property", name: "groupId" }, "number"), "mode": v.primitive({ kind: "property", name: "mode" }, "number"), "profile": v.primitive({ kind: "property", name: "profile" }, "number"), "eventCode": v.primitive({ kind: "property", name: "eventCode" }, "number") })) })(options));
        return __decoratedMethod.call(this, options);
      }, "reportGroupInfo");
    }
  };
}
__name(validateArgs_AssociationGroupInfoCCAPI_reportGroupInfo, "validateArgs_AssociationGroupInfoCCAPI_reportGroupInfo");
function validateArgs_AssociationGroupInfoCCAPI_getCommands() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function getCommands(groupId, allowCache) {
        v.assert(v.primitive({ kind: "parameter", name: "groupId" }, "number")(groupId), v.optional({ kind: "parameter", name: "allowCache" }, v.primitive({ kind: "parameter", name: "allowCache" }, "boolean"))(allowCache));
        return __decoratedMethod.call(this, groupId, allowCache);
      }, "getCommands");
    }
  };
}
__name(validateArgs_AssociationGroupInfoCCAPI_getCommands, "validateArgs_AssociationGroupInfoCCAPI_getCommands");
function validateArgs_AssociationGroupInfoCCAPI_reportCommands() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function reportCommands(groupId, commands) {
        v.assert(v.primitive({ kind: "parameter", name: "groupId" }, "number")(groupId), v.class({ kind: "parameter", name: "commands" }, "Map", Map)(commands));
        return __decoratedMethod.call(this, groupId, commands);
      }, "reportCommands");
    }
  };
}
__name(validateArgs_AssociationGroupInfoCCAPI_reportCommands, "validateArgs_AssociationGroupInfoCCAPI_reportCommands");
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  validateArgs_AssociationGroupInfoCCAPI_getCommands,
  validateArgs_AssociationGroupInfoCCAPI_getGroupInfo,
  validateArgs_AssociationGroupInfoCCAPI_getGroupName,
  validateArgs_AssociationGroupInfoCCAPI_reportCommands,
  validateArgs_AssociationGroupInfoCCAPI_reportGroupInfo,
  validateArgs_AssociationGroupInfoCCAPI_reportGroupName
});
//# sourceMappingURL=AssociationGroupInfoCC._validateArgs.js.map
