'use strict';
import { createError } from '../../../../fd-toolbox/errors/errors.js';

var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", {
  value,
  configurable: true
});
let globalHandlerMap;
function setHandlerMap(handlerMap) {
  globalHandlerMap = handlerMap;
}
__name(setHandlerMap, "setHandlerMap");
function getHandlerMap() {
  if (!globalHandlerMap) {
    throw createError("Handler map is not initialized. Call setHandlerMap(handlerMap) first.");
  }
  return globalHandlerMap;
}
__name(getHandlerMap, "getHandlerMap");
function getGlobalHandlerMap() {
  return globalHandlerMap;
}
__name(getGlobalHandlerMap, "getGlobalHandlerMap");

export { getGlobalHandlerMap, getHandlerMap, setHandlerMap };
