"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 mock_exports = {};
__export(mock_exports, {
  createMockDriver: () => createMockDriver
});
module.exports = __toCommonJS(mock_exports);
var import_events = require("events");
class MockController extends import_events.EventEmitter {
  static {
    __name(this, "MockController");
  }
  homeId = 1;
  nodes = /* @__PURE__ */ new Map();
}
class MockDriver extends import_events.EventEmitter {
  static {
    __name(this, "MockDriver");
  }
  controller = new MockController();
  ready = true;
  allNodesReady = true;
  configVersion = "0.0.0-mock";
  statisticsEnabled = true;
  logConfig = {
    enabled: true,
    level: "debug",
    transports: []
  };
  async start() {
    this.emit("driver ready");
  }
  getLogConfig() {
    return {
      ...this.logConfig,
      transports: [...this.logConfig.transports ?? []]
    };
  }
  updateLogConfig(config) {
    this.logConfig = {
      ...this.logConfig,
      ...config
    };
  }
  updateUserAgent(_additionalUserAgentComponents) {
  }
  updateOptions(_options) {
  }
  async destroy() {
  }
}
const createMockDriver = /* @__PURE__ */ __name(() => new MockDriver(), "createMockDriver");
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  createMockDriver
});
//# sourceMappingURL=index.js.map
