export var GlobalEventTypes;
(function (GlobalEventTypes) {
    GlobalEventTypes["ErrorsLoad"] = "fb:errors:load";
    GlobalEventTypes["FeaturesLoaded"] = "fb:features:loaded";
    GlobalEventTypes["FeatureValueChanged"] = "fb:feature:value:changed";
    GlobalEventTypes["NavigationSelect"] = "fb:navigation:select";
})(GlobalEventTypes || (GlobalEventTypes = {}));
export default class GlobalEvents extends Jade.EventBus {
    featuresLoadedSubscribe(callback) {
        return super.subscribe(GlobalEventTypes.FeaturesLoaded, callback);
    }
    featureValueChangedSubscribe(callback) {
        super.publish(GlobalEventTypes.FeatureValueChanged, callback);
    }
    navigationSelectSubscribe(callback) {
        return super.subscribe(GlobalEventTypes.NavigationSelect, callback);
    }
    featuresLoadedPublish() {
        super.publish(GlobalEventTypes.FeaturesLoaded);
    }
    featureValueChangedPublish(e) {
        super.publish(GlobalEventTypes.FeatureValueChanged, e);
    }
    navigationSelectPublish(e) {
        super.publish(GlobalEventTypes.NavigationSelect, e);
    }
}
