"use strict";

exports.__esModule = true;
exports.default = void 0;
let namespaceProps = Object.create(null);
let namespaces = []; // todo: remove this and setContext method
// eslint-disable-next-line no-unused-vars

let context = "";
var _default = {
  register: name => namespaces.push(name),
  registerProp: (namespace, name) => namespaceProps[name] = namespace,
  nsExists: name => namespaces.includes(name),
  nsPropExists: name => Object.keys(namespaceProps).includes(name),
  getNSForProp: name => namespaceProps[name],
  // todo: remove this and setContext method
  // eslint-disable-next-line no-unused-vars
  setContext: namespace => context = namespace,
  reset: () => {
    namespaceProps = Object.create(null);
    namespaces = [];
  }
};
exports.default = _default;