import { DefaultListener } from './listener/DefaultListener';
import { Connection } from "./connection/Connection";
var Gaia = /** @class */ (function () {
    function Gaia(renderer, listener) {
        this.listener = new DefaultListener(listener || null);
        this.renderer = renderer;
        renderer.init();
    }
    /**
     * Connect the client to the G.A.I.A ecosystem.
     *
     * @param options the ID of the identity
     */
    Gaia.prototype.connect = function (options) {
        var _this = this;
        return new Promise(function (resolve) { return resolve(new Connection(options, _this.renderer, _this.listener)); });
    };
    return Gaia;
}());
export { Gaia };
//# sourceMappingURL=Gaia.js.map