/**
 * Charset normalization for incoming email bodies.
 *
 * Many senders (esp. PHPMailer-driven marketing) declare
 * `charset=iso-8859-1` but emit UTF-8 bytes. simpleParser honors the
 * declared charset and produces "â??" garbage for every non-ASCII
 * codepoint (em-dash, smart quotes, …). When the raw body bytes are
 * valid UTF-8, rewrite the charset header before parsing. We only
 * override the obviously-wrong legacy declarations; explicit utf-8 /
 * koi8 / etc. pass through.
 */
/** Returns either the original buffer (no change needed) or a copy with
 *  the leading charset declaration rewritten to utf-8. */
export declare function sniffAndFixCharset(raw: Buffer): Buffer;
//# sourceMappingURL=charset.d.ts.map