import { MailClient } from "@clawemail/node-sdk"; import type { ParsedEmail } from "../types.js"; import type { EmailLogger } from "../utils/logger.js"; /** * Parse a raw RFC 5322 header string into a key→value record. * Keys are lowercased. Multi-line folded values are unfolded. */ export declare function parseHeaderRaw(headerRaw: string): Record; /** * Fetch and parse an email by mailId using the SDK. * Marks the email as read during the read call. */ export declare function fetchEmailById(params: { mailId: string; client: MailClient; log?: EmailLogger; }): Promise;