"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.gitlabRepositoryHostProvider = void 0;
const gitlab_repository_host_client_1 = require("../repository-host/gitlab-repository-host-client");
const auth_1 = require("./auth");
const project_ref_1 = require("./project-ref");
exports.gitlabRepositoryHostProvider = {
    kind: "gitlab",
    async createClient(configSlice, authProvider) {
        const token = await authProvider.getRepositoryHostToken(configSlice);
        return new gitlab_repository_host_client_1.GitLabRepositoryHostClient(configSlice, token);
    },
    ...project_ref_1.gitlabProjectRefCapabilities,
    buildRemoteUrl: project_ref_1.buildGitLabRemoteUrl,
    auth: auth_1.gitlabRepositoryHostAuth,
};
