import { type Recipient } from "./recipients.js"; /** * Build a Microsoft Graph message resource from the tool input shape shared by * outlook-mail-send and outlook-draft. Graph stores one body with a single * contentType, so `isHtml` chooses HTML vs Text for the whole message. * * `MessageInput` is the TOOL INPUT shape, not the Graph message shape — * `GraphMessage` below is the latter. That is why `attachments` lives here but * never reaches `buildMessage`'s output. */ export interface MessageInput { to: string[]; cc?: string[]; bcc?: string[]; subject: string; body: string; isHtml?: boolean; /** Absolute paths inside the account directory. Attachments are separate Graph * POSTs against the created draft, NOT part of the message resource, so * `buildMessage` deliberately ignores this field. */ attachments?: string[]; } export interface GraphMessage { subject: string; body: { contentType: "HTML" | "Text"; content: string; }; toRecipients: Recipient[]; ccRecipients?: Recipient[]; bccRecipients?: Recipient[]; } export declare function buildMessage(input: MessageInput): GraphMessage; //# sourceMappingURL=message.d.ts.map