"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 MeterCC_validateArgs_exports = {};
__export(MeterCC_validateArgs_exports, {
  validateArgs_MeterCCAPI_get: () => validateArgs_MeterCCAPI_get,
  validateArgs_MeterCCAPI_getAll: () => validateArgs_MeterCCAPI_getAll,
  validateArgs_MeterCCAPI_reset: () => validateArgs_MeterCCAPI_reset,
  validateArgs_MeterCCAPI_sendReport: () => validateArgs_MeterCCAPI_sendReport,
  validateArgs_MeterCCAPI_sendSupportedReport: () => validateArgs_MeterCCAPI_sendSupportedReport
});
module.exports = __toCommonJS(MeterCC_validateArgs_exports);
var v = __toESM(require("@zwave-js/core/validation"), 1);
function validateArgs_MeterCCAPI_get() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function get(options) {
        v.assert(v.optional({ kind: "parameter", name: "options" }, v.object({ kind: "parameter", name: "options" }, "MeterCCGetOptions", { "scale": v.optional({ kind: "property", name: "scale" }, v.primitive({ kind: "property", name: "scale" }, "number")), "rateType": v.optional({ kind: "property", name: "rateType" }, v.oneOf({ kind: "property", name: "rateType" }, void 0, v.literal({ kind: "property", name: "rateType" }, 0), v.literal({ kind: "property", name: "rateType" }, 1), v.literal({ kind: "property", name: "rateType" }, 2))) }))(options));
        return __decoratedMethod.call(this, options);
      }, "get");
    }
  };
}
__name(validateArgs_MeterCCAPI_get, "validateArgs_MeterCCAPI_get");
function validateArgs_MeterCCAPI_sendReport() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function sendReport(options) {
        v.assert(v.object({ kind: "parameter", name: "options" }, "MeterCCReportOptions", { "type": v.primitive({ kind: "property", name: "type" }, "number"), "scale": v.primitive({ kind: "property", name: "scale" }, "number"), "value": v.primitive({ kind: "property", name: "value" }, "number"), "previousValue": v.optional({ kind: "property", name: "previousValue" }, v.primitive({ kind: "property", name: "previousValue" }, "number")), "rateType": v.optional({ kind: "property", name: "rateType" }, v.oneOf({ kind: "property", name: "rateType" }, void 0, v.literal({ kind: "property", name: "rateType" }, 0), v.literal({ kind: "property", name: "rateType" }, 1), v.literal({ kind: "property", name: "rateType" }, 2))), "deltaTime": v.optional({ kind: "property", name: "deltaTime" }, v.oneOf({ kind: "property", name: "deltaTime" }, void 0, v.null({ kind: "property", name: "deltaTime" }), v.primitive({ kind: "property", name: "deltaTime" }, "number"))) })(options));
        return __decoratedMethod.call(this, options);
      }, "sendReport");
    }
  };
}
__name(validateArgs_MeterCCAPI_sendReport, "validateArgs_MeterCCAPI_sendReport");
function validateArgs_MeterCCAPI_getAll() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function getAll(accumulatedOnly) {
        v.assert(v.optional({ kind: "parameter", name: "accumulatedOnly" }, v.primitive({ kind: "parameter", name: "accumulatedOnly" }, "boolean"))(accumulatedOnly));
        return __decoratedMethod.call(this, accumulatedOnly);
      }, "getAll");
    }
  };
}
__name(validateArgs_MeterCCAPI_getAll, "validateArgs_MeterCCAPI_getAll");
function validateArgs_MeterCCAPI_sendSupportedReport() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function sendSupportedReport(options) {
        v.assert(v.object({ kind: "parameter", name: "options" }, "MeterCCSupportedReportOptions", { "type": v.primitive({ kind: "property", name: "type" }, "number"), "supportsReset": v.primitive({ kind: "property", name: "supportsReset" }, "boolean"), "supportedScales": v.array({ kind: "property", name: "supportedScales" }, "number", v.primitive({ kind: "item", name: "supportedScales" }, "number")), "supportedRateTypes": v.array({ kind: "property", name: "supportedRateTypes" }, "RateType", v.enum({ kind: "item", name: "supportedRateTypes" }, "RateType")) })(options));
        return __decoratedMethod.call(this, options);
      }, "sendSupportedReport");
    }
  };
}
__name(validateArgs_MeterCCAPI_sendSupportedReport, "validateArgs_MeterCCAPI_sendSupportedReport");
function validateArgs_MeterCCAPI_reset() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function reset(options) {
        v.assert(v.optional({ kind: "parameter", name: "options" }, v.oneOf({ kind: "parameter", name: "options" }, void 0, v.object({ kind: "parameter", name: "options" }, "<anonymous object>", { "type": v.primitive({ kind: "property", name: "type" }, "number"), "scale": v.primitive({ kind: "property", name: "scale" }, "number"), "rateType": v.enum({ kind: "property", name: "rateType" }, "RateType"), "targetValue": v.primitive({ kind: "property", name: "targetValue" }, "number") }), v.object({ kind: "parameter", name: "options" }, "<anonymous object>", {})))(options));
        return __decoratedMethod.call(this, options);
      }, "reset");
    }
  };
}
__name(validateArgs_MeterCCAPI_reset, "validateArgs_MeterCCAPI_reset");
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  validateArgs_MeterCCAPI_get,
  validateArgs_MeterCCAPI_getAll,
  validateArgs_MeterCCAPI_reset,
  validateArgs_MeterCCAPI_sendReport,
  validateArgs_MeterCCAPI_sendSupportedReport
});
//# sourceMappingURL=MeterCC._validateArgs.js.map
