"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getConfig = exports.validateConfig = void 0;
function validateConfig(config, schema) {
    const validationResult = schema.validate(config);
    if (validationResult.error) {
        throw validationResult.error;
    }
    return validationResult.value;
}
exports.validateConfig = validateConfig;
function getConfig() {
    return require('config');
}
exports.getConfig = getConfig;
