import { GitServer } from "@ethicdevs/fastify-git-server";
import { ServiceApiContract } from "@ethicdevs/react-monolith";
import { FastifyRequest } from "fastify";
import { CryptoServiceAPI } from "../crypto/types";
export interface GitServerServiceAPI extends ServiceApiContract {
authorizationResolver(
repoSlug: string,
credentials: GitServer.AuthCredentials
): PromiseLike<boolean>;
repositoryResolver(
repoSlug: string
): PromiseLike<GitServer.RepositoryResolverResult>;
onPushEvent(event: GitServer.Event): void;
}
export interface GitServerServiceDeps {
cryptoService: CryptoServiceAPI;
request: FastifyRequest;
}