import { OneOrMany, SourceRecord } from "../source.js";

//#region src/lib/sources/python-pypi-registry.d.ts
type PythonPypiRegistryInfo = {
  /** Total downloads over the last 180 days. */downloads180Days?: number; /** Downloads in the last day. */
  downloadsDaily?: number; /** Downloads in the last month. */
  downloadsMonthly?: number; /** Downloads in the last week. */
  downloadsWeekly?: number; /** ISO 8601 date the package was last published. */
  publishDateLatest?: string; /** Total number of releases on PyPI. */
  releaseCount?: number; /** Size in bytes of the latest release artifact. */
  sizeBytes?: number; /** PyPI project URL. */
  url?: string; /** Latest published version string. */
  versionLatest?: string; /** Whether the latest version has been yanked. */
  yanked?: boolean; /** Reason the version was yanked, if provided. */
  yankedReason?: string;
};
type PythonPypiRegistryData = OneOrMany<SourceRecord<PythonPypiRegistryInfo>> | undefined;
//#endregion
export { PythonPypiRegistryData };