function observeThemeChanges(callback) {
  const root = document.documentElement;
  const observer = new MutationObserver((mutations) => {
    for (const mutation of mutations) {
      if (mutation.type === "attributes" && mutation.attributeName === "data-obc-theme") {
        callback();
        break;
      }
    }
  });
  observer.observe(root, {
    attributes: true,
    attributeFilter: ["data-obc-theme"]
  });
  return observer;
}
export {
  observeThemeChanges
};
//# sourceMappingURL=theme.js.map
