getSwalStringParams = (templateContent, paramNames) => {
  /** @type {Record<string, any>} */
  const result = {}
  for (const i in paramNames) {
    const paramName = paramNames[i]
    /** @type {HTMLElement | null} */
    const tag = templateContent.querySelector(paramName)
    if (tag) {
      showWarningsForAttributes(tag, [])
      result[paramName.replace(/^swal-/, '')] = tag.innerHTML.trim()
    }
  }
  return result
}
@param {DocumentFragment} templateContent
@param {string[]} paramNames
@returns {Record<string, any>}