"use strict";
var RelayClientConfig_1;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RelayClientConfig = void 0;
const tslib_1 = require("tslib");
const os = require("os");
const path = require("path");
const inversify_1 = require("inversify");
const config_loader_1 = require("../common/config-loader");
/** The in-memory representation of the api client config file.
 */
let RelayClientConfig = RelayClientConfig_1 = class RelayClientConfig {
    static load() {
        const os = require('os');
        let cfg = this.loader.load(); // yeah this is real helpful - maybe we should just accept the .loader.load() syntax and expose the loader itself?
        return cfg;
    }
    constructor() {
    }
};
RelayClientConfig.CONFIG_PATH = path.posix.join(os.homedir(), `.config`, `codiac-api-client`);
RelayClientConfig.CONFIG_FILENAME = "config.json";
RelayClientConfig.loader = new config_loader_1.ConfigLoader(RelayClientConfig_1.CONFIG_PATH, RelayClientConfig_1.CONFIG_FILENAME);
RelayClientConfig = RelayClientConfig_1 = tslib_1.__decorate([
    (0, inversify_1.injectable)(),
    tslib_1.__metadata("design:paramtypes", [])
], RelayClientConfig);
exports.RelayClientConfig = RelayClientConfig;
//# sourceMappingURL=client-config.js.map