import { DefaultListener } from './listener/DefaultListener';
import { Connection } from "./connection/Connection";
var Gaia = /** @class */ (function () {
    function Gaia(listener) {
        this.listener = new DefaultListener(listener || null);
    }
    /**
     * Connect the client to AIOS.
     *
     * @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.listener)); });
    };
    return Gaia;
}());
export { Gaia };
//# sourceMappingURL=Gaia.js.map