export type MailAttachment = { filename: string | null; contentType: string; disposition: 'attachment' | 'inline'; contentId: string | null; bytes: Uint8Array; }; export type MailMessage = { headers: Record; text: string | null; html: string | null; attachments: MailAttachment[]; }; /** Encoded words in a header (`=?UTF-8?B?…?=`, `=?UTF-8?Q?…?=`), decoded (RFC 2047). */ export declare function mailWords(value: string): string; /** An address list's members as written (`Name ` or `a@b`), its encoded words decoded, split at the commas * outside quotes. */ export declare const mailAddressList: (v: string | undefined) => string[]; /** A message from the bytes a server took (a binary string, one character per byte): the first text/plain and text/html * leaves that are not attachments are its text and HTML, every other leaf an attachment. */ export declare function readMailMessage(data: string): MailMessage;