import { MailClient } from "@clawemail/node-sdk"; import type { EmailLogger } from "../utils/logger.js"; export interface SendMailViaSdkOptions { /** Original mail ID to reply to */ originalMailId: string; /** Reply to all recipients (sender + to) */ replyAll: boolean; /** Override recipient list */ overrideTo?: string[]; /** Extra CC recipients */ extraCc?: string[]; /** Email body (HTML preferred) */ body: string; /** Whether body is HTML */ html?: boolean; /** Attachment file paths */ attachmentPaths?: string[]; /** Account email address for signature */ accountEmail: string; /** A2A context for signature link data attributes */ a2a?: { agentId: string; turn: number; }; } /** * Send email reply via @clawemail/node-sdk (WS transport) */ export declare function sendMailViaSdk(client: MailClient, options: SendMailViaSdkOptions, log?: EmailLogger): Promise<{ ok: boolean; error?: string; }>;