const GLOBAL_KEY = "__openMercatoTranslationOverlay__";
function getGlobal() {
  return globalThis[GLOBAL_KEY] ?? null;
}
function setGlobal(state) {
  globalThis[GLOBAL_KEY] = state;
}
function registerTranslationOverlayPlugin(overlay, resolveLocale) {
  setGlobal({ overlay, resolveLocale });
}
function getTranslationOverlayPlugin() {
  const state = getGlobal();
  return state ?? { overlay: null, resolveLocale: null };
}
export {
  getTranslationOverlayPlugin,
  registerTranslationOverlayPlugin
};
//# sourceMappingURL=overlay-plugin.js.map
