import { OneOrMany, SourceRecord } from "../source.js";
import { Language, LanguageInfo } from "@kitschpatrol/tokei";

//#region src/lib/sources/code-stats.d.ts
type CodeStatsTotals = Omit<LanguageInfo, 'language' | 'reports'> & {
  languages: Language[];
};
type CodeStatsFields = {
  /** Per-language line count perLanguage, sorted by lines of code descending. */perLanguage?: LanguageInfo[]; /** Aggregate line counts across all languages. */
  total?: CodeStatsTotals;
};
type CodeStatsData = OneOrMany<SourceRecord<CodeStatsFields>> | undefined;
//#endregion
export { CodeStatsData };