// Generated by CoffeeScript 2.3.2
(function() {
  var ConfigBuilder, configTypes, defaults, i, key, len, ref, showDeprecation;

  ({ConfigBuilder} = require("@l.degener/irma-config"));

  defaults = require("./default-settings");

  configTypes = require("./config-types");

  showDeprecation = true;

  module.exports = function(cfg = defaults, action) {
    if (showDeprecation) {
      showDeprecation = false;
      console.error("DEPRECATION WARNING:\nYour code seems to refer to the ConfigBuilder class through the IRMa public API.\nNote that the configuration subsystem was moved to a separate module.\n\nTo setup an instance that behaves like the old one, do something like this:\n\n{ConfigBuilder} = require \"@l.degener/irma-config\"\n{defaults, configTypes} = require \"irma\"\n\nConfigBuilder(defaults)\n  .types configTypes\n  #... your code\n");
    }
    return ConfigBuilder(cfg, action).types(configTypes);
  };

  ref = Object.keys(ConfigBuilder);
  for (i = 0, len = ref.length; i < len; i++) {
    key = ref[i];
    module.exports[key] = ConfigBuilder[key];
  }

}).call(this);
