"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Unit_1 = require("../../../../Class/Unit");
const _ids_1 = require("../../../_ids");
class Global extends Unit_1.Unit {
    constructor(system) {
        super({
            i: [],
            o: [],
        }, {}, system, _ids_1.ID_GLOBAL);
    }
    subscribe(path, key, listener) {
        return this.__system.global.data.subscribe(path, key, listener);
    }
    async get(name) {
        return this.__system.global.data.get(name);
    }
    async set(name, data) {
        return this.__system.global.data.set(name, data);
    }
    async delete(name) {
        return this.__system.global.data.delete(name);
    }
    async deepSet(path, data) {
        return this.__system.global.data.deepSet(path, data);
    }
    async deepGet(path) {
        return this.__system.global.data.deepGet(path);
    }
    async deepDelete(path) {
        return this.__system.global.data.deepDelete(path);
    }
    async keys() {
        return this.__system.global.data.keys();
    }
    async hasKey(name) {
        return this.__system.global.data.hasKey(name);
    }
}
exports.default = Global;
//# sourceMappingURL=index.js.map