/** * Aggregate corpus statistics. * * Everything here is a count, a ratio or a percentile. No subject, address or body text is read, * and the only free text that reaches the report is a MIME structure signature and detector ids, * both of which are drawn from a closed vocabulary. That is what makes the report safe to paste * into a document or an issue. */ import { type CorpusStore } from './store'; export interface Distribution { label: string; count: number; share: number; } export interface CorpusStats { generatedAt: string; files: { total: number; ok: number; failed: number; oversize: number; timeout: number; skipped: number; }; errors: Distribution[]; sizeBytes: { p10: number; p50: number; p90: number; p99: number; max: number; total: number; }; parseWarnings: Distribution[]; bodyKind: Distribution[]; structures: Distribution[]; charsets: Distribution[]; encodings: Distribution[]; traffic: Distribution[]; clients: Distribution[]; clientSources: Distribution[]; subjectPrefix: Distribution[]; replyStyle: Distribution[]; quoteDepth: Distribution[]; markers: Distribution[]; htmlHints: Distribution[]; languages: Distribution[]; duplicates: { distinctSha256: number; filesInDuplicateGroups: number; distinctSimhash: number; filesInNearDuplicateGroups: number; }; threading: { withMessageId: number; withInReplyTo: number; parentResolvedInCorpus: number; withReferences: number; ancestorResolvedInCorpus: number; }; humanSlice: { total: number; replies: number; repliesWithParentInCorpus: number; bothRepresentations: number; quoteMarkingDisagrees: number; }; contentAgreement: { messagesWithBoth: number; quoteMarkingDisagrees: number; }; } export declare function computeStats(store: CorpusStore): CorpusStats; export declare function pct(value: number, total: number): string; /** Render the statistics as a Markdown report. Safe to share: contains no message content. */ export declare function renderReport(stats: CorpusStats, root: string): string; //# sourceMappingURL=stats.d.ts.map