"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.giteaRepositoryHostProvider = void 0;
const gitea_repository_host_client_1 = require("../repository-host/gitea-repository-host-client");
const auth_1 = require("./auth");
const project_ref_1 = require("./project-ref");
exports.giteaRepositoryHostProvider = {
    kind: "gitea",
    async createClient(configSlice, authProvider) {
        const credential = await authProvider.getRepositoryHostToken(configSlice);
        return new gitea_repository_host_client_1.GiteaRepositoryHostClient(configSlice, credential);
    },
    ...project_ref_1.giteaProjectRefCapabilities,
    buildRemoteUrl: project_ref_1.buildGiteaRemoteUrl,
    auth: auth_1.giteaRepositoryHostAuth,
};
