/** * Traffic classification: is this message part of a human conversation, or machine generated? * * This matters more than it looks. Measured on the working corpus, only about 13 percent of * messages are human authored, roughly 40 percent are GitHub notifications, and 56 percent carry * mailing list or bulk headers. Sampling and evaluation target the human slice, so a reliable * split keeps the annotation budget from being spent on templated machine formats. * * The rules are header based and deliberately ordered from most to least specific. They classify * traffic, never content: a notification message is still extracted normally. */ import { type HeaderEntry, type MessageHeaders } from '../mime/model'; export type TrafficClass = 'human' | 'mailing-list' | 'bulk' | 'notification' | 'ticketing' | 'auto-reply' | 'unknown'; export interface TrafficVerdict { traffic: TrafficClass; /** Ids of the rules that fired, in order. */ signals: string[]; } /** * Classify message traffic. * * @param headers decoded well known headers * @param entries every header line of the outermost message */ export declare function classifyTraffic(headers: MessageHeaders, entries: readonly HeaderEntry[]): TrafficVerdict; //# sourceMappingURL=traffic.d.ts.map