"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createRepositoryHostClient = createRepositoryHostClient;
const provider_resolution_1 = require("../provider-resolution");
async function createRepositoryHostClient(config, authProvider) {
    const { provider, projectRef } = (0, provider_resolution_1.resolveRepositoryHostProjectRef)(config.repositoryHost, config.i18n.defaultLanguage);
    return provider.createClient({
        ...config.repositoryHost,
        projectRef,
    }, authProvider);
}
