text: import { Injectable } from '@angular/core';
  /**
   * @hidden
   */
  var FocusRoot = /** @class */ (function () {
      function FocusRoot() {
          this.groups = [];
      }
      FocusRoot.prototype.registerGroup = function (group) {
          this.unregisterGroup(group);
          this.groups.push(group);
      };
      FocusRoot.prototype.unregisterGroup = function (group) {
          this.groups = this.groups.filter(function (f) { return f !== group; });
      };
      FocusRoot.prototype.activate = function () {
          this.groups.forEach(function (f) { return f.activate(); });
      };
      FocusRoot.prototype.deactivate = function () {
          this.groups.forEach(function (f) { return f.deactivate(); });
      };
      FocusRoot.decorators = [
          { type: Injectable },
      ];
      /** @nocollapse */
      FocusRoot.ctorParameters = function () { return []; };
      return FocusRoot;
  }());
  export { FocusRoot };
  