"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 IndicatorCC_validateArgs_exports = {};
__export(IndicatorCC_validateArgs_exports, {
  validateArgs_IndicatorCCAPI_get: () => validateArgs_IndicatorCCAPI_get,
  validateArgs_IndicatorCCAPI_getDescription: () => validateArgs_IndicatorCCAPI_getDescription,
  validateArgs_IndicatorCCAPI_getSupported: () => validateArgs_IndicatorCCAPI_getSupported,
  validateArgs_IndicatorCCAPI_getTimeout: () => validateArgs_IndicatorCCAPI_getTimeout,
  validateArgs_IndicatorCCAPI_reportDescription: () => validateArgs_IndicatorCCAPI_reportDescription,
  validateArgs_IndicatorCCAPI_reportSupported: () => validateArgs_IndicatorCCAPI_reportSupported,
  validateArgs_IndicatorCCAPI_sendReport: () => validateArgs_IndicatorCCAPI_sendReport,
  validateArgs_IndicatorCCAPI_set: () => validateArgs_IndicatorCCAPI_set,
  validateArgs_IndicatorCCAPI_setTimeout: () => validateArgs_IndicatorCCAPI_setTimeout
});
module.exports = __toCommonJS(IndicatorCC_validateArgs_exports);
var v = __toESM(require("@zwave-js/core/validation"), 1);
function validateArgs_IndicatorCCAPI_get() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function get(indicatorId) {
        v.assert(v.optional({ kind: "parameter", name: "indicatorId" }, v.primitive({ kind: "parameter", name: "indicatorId" }, "number"))(indicatorId));
        return __decoratedMethod.call(this, indicatorId);
      }, "get");
    }
  };
}
__name(validateArgs_IndicatorCCAPI_get, "validateArgs_IndicatorCCAPI_get");
function validateArgs_IndicatorCCAPI_set() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function set(value) {
        v.assert(v.oneOf({ kind: "parameter", name: "value" }, void 0, v.primitive({ kind: "parameter", name: "value" }, "number"), v.array({ kind: "parameter", name: "value" }, "IndicatorObject", v.object({ kind: "item", name: "value" }, "IndicatorObject", { "indicatorId": v.primitive({ kind: "property", name: "indicatorId" }, "number"), "propertyId": v.primitive({ kind: "property", name: "propertyId" }, "number"), "value": v.oneOf({ kind: "property", name: "value" }, void 0, v.primitive({ kind: "property", name: "value" }, "number"), v.primitive({ kind: "property", name: "value" }, "boolean")) })))(value));
        return __decoratedMethod.call(this, value);
      }, "set");
    }
  };
}
__name(validateArgs_IndicatorCCAPI_set, "validateArgs_IndicatorCCAPI_set");
function validateArgs_IndicatorCCAPI_sendReport() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function sendReport(options) {
        v.assert(v.oneOf({ kind: "parameter", name: "options" }, "IndicatorCCReportOptions", v.object({ kind: "parameter", name: "options" }, "<anonymous object>", { "value": v.primitive({ kind: "property", name: "value" }, "number") }), v.object({ kind: "parameter", name: "options" }, "<anonymous object>", { "values": v.array({ kind: "property", name: "values" }, "IndicatorObject", v.object({ kind: "item", name: "values" }, "IndicatorObject", { "indicatorId": v.primitive({ kind: "property", name: "indicatorId" }, "number"), "propertyId": v.primitive({ kind: "property", name: "propertyId" }, "number"), "value": v.oneOf({ kind: "property", name: "value" }, void 0, v.primitive({ kind: "property", name: "value" }, "number"), v.primitive({ kind: "property", name: "value" }, "boolean")) })) }))(options));
        return __decoratedMethod.call(this, options);
      }, "sendReport");
    }
  };
}
__name(validateArgs_IndicatorCCAPI_sendReport, "validateArgs_IndicatorCCAPI_sendReport");
function validateArgs_IndicatorCCAPI_getSupported() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function getSupported(indicatorId) {
        v.assert(v.primitive({ kind: "parameter", name: "indicatorId" }, "number")(indicatorId));
        return __decoratedMethod.call(this, indicatorId);
      }, "getSupported");
    }
  };
}
__name(validateArgs_IndicatorCCAPI_getSupported, "validateArgs_IndicatorCCAPI_getSupported");
function validateArgs_IndicatorCCAPI_reportSupported() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function reportSupported(indicatorId, supportedProperties, nextIndicatorId) {
        v.assert(v.primitive({ kind: "parameter", name: "indicatorId" }, "number")(indicatorId), v.array({ kind: "parameter", name: "supportedProperties" }, "number", v.primitive({ kind: "item", name: "supportedProperties" }, "number"))(supportedProperties), v.primitive({ kind: "parameter", name: "nextIndicatorId" }, "number")(nextIndicatorId));
        return __decoratedMethod.call(this, indicatorId, supportedProperties, nextIndicatorId);
      }, "reportSupported");
    }
  };
}
__name(validateArgs_IndicatorCCAPI_reportSupported, "validateArgs_IndicatorCCAPI_reportSupported");
function validateArgs_IndicatorCCAPI_reportDescription() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function reportDescription(indicatorId, description) {
        v.assert(v.primitive({ kind: "parameter", name: "indicatorId" }, "number")(indicatorId), v.primitive({ kind: "parameter", name: "description" }, "string")(description));
        return __decoratedMethod.call(this, indicatorId, description);
      }, "reportDescription");
    }
  };
}
__name(validateArgs_IndicatorCCAPI_reportDescription, "validateArgs_IndicatorCCAPI_reportDescription");
function validateArgs_IndicatorCCAPI_setTimeout() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function setTimeout(indicatorId, timeout) {
        v.assert(v.primitive({ kind: "parameter", name: "indicatorId" }, "number")(indicatorId), v.optional({ kind: "parameter", name: "timeout" }, v.oneOf({ kind: "parameter", name: "timeout" }, void 0, v.primitive({ kind: "parameter", name: "timeout" }, "string"), v.object({ kind: "parameter", name: "timeout" }, "IndicatorTimeout", { "hours": v.optional({ kind: "property", name: "hours" }, v.primitive({ kind: "property", name: "hours" }, "number")), "minutes": v.optional({ kind: "property", name: "minutes" }, v.primitive({ kind: "property", name: "minutes" }, "number")), "seconds": v.optional({ kind: "property", name: "seconds" }, v.primitive({ kind: "property", name: "seconds" }, "number")) })))(timeout));
        return __decoratedMethod.call(this, indicatorId, timeout);
      }, "setTimeout");
    }
  };
}
__name(validateArgs_IndicatorCCAPI_setTimeout, "validateArgs_IndicatorCCAPI_setTimeout");
function validateArgs_IndicatorCCAPI_getTimeout() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function getTimeout(indicatorId) {
        v.assert(v.primitive({ kind: "parameter", name: "indicatorId" }, "number")(indicatorId));
        return __decoratedMethod.call(this, indicatorId);
      }, "getTimeout");
    }
  };
}
__name(validateArgs_IndicatorCCAPI_getTimeout, "validateArgs_IndicatorCCAPI_getTimeout");
function validateArgs_IndicatorCCAPI_getDescription() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function getDescription(indicatorId) {
        v.assert(v.primitive({ kind: "parameter", name: "indicatorId" }, "number")(indicatorId));
        return __decoratedMethod.call(this, indicatorId);
      }, "getDescription");
    }
  };
}
__name(validateArgs_IndicatorCCAPI_getDescription, "validateArgs_IndicatorCCAPI_getDescription");
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  validateArgs_IndicatorCCAPI_get,
  validateArgs_IndicatorCCAPI_getDescription,
  validateArgs_IndicatorCCAPI_getSupported,
  validateArgs_IndicatorCCAPI_getTimeout,
  validateArgs_IndicatorCCAPI_reportDescription,
  validateArgs_IndicatorCCAPI_reportSupported,
  validateArgs_IndicatorCCAPI_sendReport,
  validateArgs_IndicatorCCAPI_set,
  validateArgs_IndicatorCCAPI_setTimeout
});
//# sourceMappingURL=IndicatorCC._validateArgs.js.map
