"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var messages_exports = {};
__export(messages_exports, {
  dummyCallbackNOK: () => dummyCallbackNOK,
  dummyCallbackOK: () => dummyCallbackOK,
  dummyCallbackPartial: () => dummyCallbackPartial,
  dummyMessageNoResponseNoCallback: () => dummyMessageNoResponseNoCallback,
  dummyMessageNoResponseWithCallback: () => dummyMessageNoResponseWithCallback,
  dummyMessageUnrelated: () => dummyMessageUnrelated,
  dummyMessageWithResponseNoCallback: () => dummyMessageWithResponseNoCallback,
  dummyMessageWithResponseWithCallback: () => dummyMessageWithResponseWithCallback,
  dummyResponseNOK: () => dummyResponseNOK,
  dummyResponseOK: () => dummyResponseOK
});
module.exports = __toCommonJS(messages_exports);
var import_serial = require("@zwave-js/serial");
var import_shared = require("@zwave-js/shared");
const defaultImplementations = {
  serialize: /* @__PURE__ */ __name(() => Promise.resolve(import_shared.Bytes.from([1, 2, 3])), "serialize"),
  tryGetNode: /* @__PURE__ */ __name(() => void 0, "tryGetNode"),
  getNodeId: /* @__PURE__ */ __name(() => void 0, "getNodeId"),
  toLogEntry: /* @__PURE__ */ __name(() => ({ tags: [] }), "toLogEntry"),
  needsCallbackId: /* @__PURE__ */ __name(() => true, "needsCallbackId"),
  getResponseTimeout: /* @__PURE__ */ __name(() => void 0, "getResponseTimeout"),
  getCallbackTimeout: /* @__PURE__ */ __name(() => void 0, "getCallbackTimeout"),
  markAsSent: /* @__PURE__ */ __name(() => void 0, "markAsSent"),
  markAsCompleted: /* @__PURE__ */ __name(() => void 0, "markAsCompleted"),
  expectsAck: /* @__PURE__ */ __name(() => true, "expectsAck")
};
const dummyResponseOK = {
  type: import_serial.MessageType.Response,
  expectedResponse: void 0,
  expectedCallback: void 0,
  hasCallbackId: /* @__PURE__ */ __name(() => false, "hasCallbackId"),
  expectsResponse: /* @__PURE__ */ __name(() => false, "expectsResponse"),
  expectsCallback: /* @__PURE__ */ __name(() => false, "expectsCallback"),
  isOK: /* @__PURE__ */ __name(() => true, "isOK"),
  ...defaultImplementations
};
const dummyCallbackOK = {
  type: import_serial.MessageType.Request,
  expectedResponse: void 0,
  expectedCallback: void 0,
  hasCallbackId: /* @__PURE__ */ __name(() => false, "hasCallbackId"),
  expectsResponse: /* @__PURE__ */ __name(() => false, "expectsResponse"),
  expectsCallback: /* @__PURE__ */ __name(() => false, "expectsCallback"),
  isOK: /* @__PURE__ */ __name(() => true, "isOK"),
  ...defaultImplementations
};
const dummyCallbackPartial = {
  ...dummyCallbackOK,
  isFinal: /* @__PURE__ */ __name(() => false, "isFinal")
};
const dummyResponseNOK = {
  type: import_serial.MessageType.Response,
  expectedResponse: void 0,
  expectedCallback: void 0,
  hasCallbackId: /* @__PURE__ */ __name(() => false, "hasCallbackId"),
  expectsResponse: /* @__PURE__ */ __name(() => false, "expectsResponse"),
  expectsCallback: /* @__PURE__ */ __name(() => false, "expectsCallback"),
  isOK: /* @__PURE__ */ __name(() => false, "isOK"),
  ...defaultImplementations
};
const dummyCallbackNOK = {
  type: import_serial.MessageType.Request,
  expectedResponse: void 0,
  expectedCallback: void 0,
  hasCallbackId: /* @__PURE__ */ __name(() => false, "hasCallbackId"),
  expectsResponse: /* @__PURE__ */ __name(() => false, "expectsResponse"),
  expectsCallback: /* @__PURE__ */ __name(() => false, "expectsCallback"),
  isOK: /* @__PURE__ */ __name(() => false, "isOK"),
  ...defaultImplementations
};
const dummyMessageUnrelated = {
  expectedResponse: void 0,
  expectedCallback: void 0,
  hasCallbackId: /* @__PURE__ */ __name(() => false, "hasCallbackId"),
  expectsResponse: /* @__PURE__ */ __name(() => false, "expectsResponse"),
  expectsCallback: /* @__PURE__ */ __name(() => false, "expectsCallback"),
  ...defaultImplementations
};
const dummyMessageNoResponseNoCallback = {
  expectedResponse: void 0,
  expectedCallback: void 0,
  hasCallbackId: /* @__PURE__ */ __name(() => false, "hasCallbackId"),
  expectsResponse: /* @__PURE__ */ __name(() => false, "expectsResponse"),
  expectsCallback: /* @__PURE__ */ __name(() => false, "expectsCallback"),
  ...defaultImplementations
};
const dummyMessageWithResponseNoCallback = {
  expectedResponse: 255,
  expectedCallback: void 0,
  hasCallbackId: /* @__PURE__ */ __name(() => false, "hasCallbackId"),
  expectsResponse: /* @__PURE__ */ __name(() => true, "expectsResponse"),
  expectsCallback: /* @__PURE__ */ __name(() => false, "expectsCallback"),
  isExpectedResponse: /* @__PURE__ */ __name((msg) => msg === dummyResponseOK || msg === dummyResponseNOK, "isExpectedResponse"),
  ...defaultImplementations
};
const dummyMessageNoResponseWithCallback = {
  expectedResponse: void 0,
  expectedCallback: true,
  hasCallbackId: /* @__PURE__ */ __name(() => true, "hasCallbackId"),
  callbackId: 1,
  expectsResponse: /* @__PURE__ */ __name(() => false, "expectsResponse"),
  expectsCallback: /* @__PURE__ */ __name(() => true, "expectsCallback"),
  isExpectedCallback: /* @__PURE__ */ __name((msg) => msg === dummyCallbackOK || msg === dummyCallbackNOK, "isExpectedCallback"),
  ...defaultImplementations
};
const dummyMessageWithResponseWithCallback = {
  expectedResponse: true,
  expectedCallback: true,
  expectsResponse: /* @__PURE__ */ __name(() => true, "expectsResponse"),
  expectsCallback: /* @__PURE__ */ __name(() => true, "expectsCallback"),
  isExpectedResponse: /* @__PURE__ */ __name((msg) => msg === dummyResponseOK || msg === dummyResponseNOK, "isExpectedResponse"),
  isExpectedCallback: /* @__PURE__ */ __name((msg) => msg === dummyCallbackOK || msg === dummyCallbackNOK, "isExpectedCallback"),
  ...defaultImplementations
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  dummyCallbackNOK,
  dummyCallbackOK,
  dummyCallbackPartial,
  dummyMessageNoResponseNoCallback,
  dummyMessageNoResponseWithCallback,
  dummyMessageUnrelated,
  dummyMessageWithResponseNoCallback,
  dummyMessageWithResponseWithCallback,
  dummyResponseNOK,
  dummyResponseOK
});
//# sourceMappingURL=messages.js.map
