using System;
using System.Threading.Tasks;
namespace StardewModdingAPI.Web.Framework.Clients.GitHub
{
/// An HTTP client for fetching metadata from GitHub.
internal interface IGitHubClient : IDisposable
{
/*********
** Methods
*********/
/// Get the latest release for a GitHub repository.
/// The repository key (like Pathoschild/SMAPI).
/// Whether to return a prerelease version if it's latest.
/// Returns the release if found, else null.
Task GetLatestReleaseAsync(string repo, bool includePrerelease = false);
}
}