import { BaseEntity, Constructor } from '../../../entities/core-entities/index.js'; /** * IPackageDistributionHttpClient interface is responsible * for sending requests to the distribution API. */ export interface IPackageDistributionHttpClient { /** * start distribution for provider queue and return the * response body type * @returns Promise> * @param responseBodyType response body type to be returned * @returns Promise> */ startDistribution: (responseBodyType: Constructor) => Promise; /** * close distribution for provider queue and return the * response body type * @returns Promise> * @param responseBodyType response body type to be returned * @returns Promise> */ stopDistribution: (responseBodyType: Constructor) => Promise; /** * get the status of the distribution service and return the * response body type * @returns Promise> * @param responseBodyType response body type to be returned * @returns Promise> */ getDistributionStatus: (responseBodyType: Constructor) => Promise; }