using Refit;
namespace PageFetcher.Models;
///
/// Refit client for the internal page-fetcher-api service.
/// All calls require the X-Internal-Api-Key header, configured at registration time.
///
public interface IPageFetcherApiClient
{
///
/// Fetches a web page via headless Chromium and returns the rendered HTML and extracted plain text.
///
[Post("/api/page/fetch")]
Task FetchAsync([Body] FetchPageRequest request, CancellationToken ct = default);
}