/**
 * @license
 * Copyright 2025-2026 Open Home Foundation
 * SPDX-License-Identifier: Apache-2.0
 */
const fireEvent = (node, type, detail, options) => {
  options = options ?? {};
  const event = new Event(type, {
    bubbles: options.bubbles === void 0 ? true : options.bubbles,
    cancelable: Boolean(options.cancelable),
    composed: options.composed === void 0 ? true : options.composed
  });
  event.detail = detail ?? {};
  node.dispatchEvent(event);
  return event;
};
export {
  fireEvent
};
//# sourceMappingURL=fire_event.js.map
