/** * Signature detection. * * Signatures are collapsed, never hidden, so this only needs to be good enough to demote a trailing * block. Two rules carry almost all the weight: * * - The RFC 3676 delimiter, a line containing exactly "-- " (trailing space) or "--". This is the * one high confidence signal. * - Position plus shape: a short block of short lines at the very end of a message, containing * contact-like content. * * A signature that contains quote-looking text, a legal footer, or a pasted email address must not * be promoted into reply history, which is why signature evidence is emitted for the block rather * than for individual lines. */ import { type Evidence } from '../segment/types'; import { type BlockFeatures } from '../segment/types'; export declare function detectSignatureDelimiter(line: string): Evidence | null; /** Phrase level evidence, such as "Sent from my phone" or a closing greeting. */ export declare function detectSignaturePhrases(lines: readonly string[]): Evidence[]; /** * Shape evidence for a whole block. * * Deliberately weak. It exists to nudge a genuine trailing signature over the collapse threshold * when combined with a phrase or a delimiter, not to classify on its own. */ export declare function detectSignatureShape(features: BlockFeatures): Evidence | null; //# sourceMappingURL=signature.d.ts.map