import type { GraphClientConfig } from "../lib/graph-client.js"; export interface FetchBodyResult { id: string; subject: string | null; from: string | null; fromName: string | null; to: string[]; cc: string[]; receivedDateTime: string; conversationId: string | null; isRead: boolean; hasAttachments: boolean; contentType: "html" | "text"; body: string; } /** * Map Graph's `from.emailAddress` to the archive's { from, fromName } pair. * Exported so the mapping is unit-testable without a live Graph call. */ export declare function mapRawFrom(from?: { emailAddress?: { address?: string; name?: string; }; } | null): { from: string | null; fromName: string | null; }; /** * Read the COMPLETE body of one message by id. Graph's bodyPreview (returned by * outlook-mail-list/-search) is capped near 255 chars; this requests the full * `body` and decodes HTML to text. Never falls back to bodyPreview — an empty * body is returned as-is (empty), and the logged `bytes` surfaces a shortfall. */ export declare function runMailFetchBody(config: GraphClientConfig, args: { messageId: string; }): Promise; //# sourceMappingURL=mail-fetch-body.d.ts.map