setStyles = (element, styles) => {
  if (typeof styles === 'string') {
    element.style = styles;
  }

  if (typeof styles !== 'object' || Array.isArray(styles)) {
    return element.style;
  }

  if (styles instanceof _listen_Listener__WEBPACK_IMPORTED_MODULE_0__["default"]) {
    new _utils_AttributeListener__WEBPACK_IMPORTED_MODULE_1__["default"]({
      attributeKey: 'style',
      listener: styles,
      element,
    }).attach();
    return element.style;
  }

  for (const property in styles) {
    Object(_utils_setStyle__WEBPACK_IMPORTED_MODULE_2__["default"])(element, property, styles[property]);
  }

  return element.style;
}
@param {HTMLElement} element
@param {string|object|Listener} styles
@returns {CSSStyleDeclaration}