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

//#region src/lib/sources/node-npm-registry.d.ts
type NodeNpmRegistryInfo = {
  /** Deprecation message, if the package is deprecated. */deprecated?: string; /** Downloads in the last month. */
  downloadsMonthly?: number; /** All-time total downloads. */
  downloadsTotal?: number; /** Downloads in the last week. */
  downloadsWeekly?: number; /** Downloads in the last year. */
  downloadsYearly?: number; /** Number of files in the published package. */
  fileCount?: number; /** Whether the package exposes TypeScript types. */
  hasTypes?: boolean; /** ISO 8601 date the package was last published. */
  publishDateLatest?: string; /** Unpacked size of the published package in bytes. */
  unpackedSizeBytes?: number; /** The npmjs.com URL for the package. */
  url?: string; /** Latest published version string. */
  versionLatest?: string;
};
type NodeNpmRegistryData = OneOrMany<SourceRecord<NodeNpmRegistryInfo>> | undefined;
//#endregion
export { NodeNpmRegistryData };