/** * Gmail raw message export — RFC 2822 / mbox format. * * Uses Gmail API `format=raw` to fetch the complete wire-format message. * This works for all messages including those with embedded message/rfc822 * attachments that fail with the attachments.get endpoint. */ import type { OAuth2Client } from 'google-auth-library'; /** * Fetch a single message as raw RFC 2822 bytes. * * Uses `format=raw` which returns the complete wire-format message including * all headers, body parts, and embedded attachments. This is the reliable * path for message/rfc822 embedded emails and nested attachments. */ export declare function getMessageRaw(auth: OAuth2Client, messageId: string): Promise; /** * Fetch all messages in a thread as a single mbox file (Buffer). * * The mbox format is the standard for storing multiple RFC 2822 messages in * one file. Each message is preceded by a "From " envelope line and separated * from the next by a blank line. Lines in the message body starting with * "From " are escaped with ">" (mboxo quoting). * * @param fromAddress - Used for the mbox envelope "From " line (typically the * authenticated account's email address). */ export declare function getThreadMbox(auth: OAuth2Client, threadId: string, fromAddress: string): Promise; //# sourceMappingURL=raw.d.ts.map