import type { ToolResponse } from '@/tools/types'

export interface SmtpConnectionConfig {
  smtpHost: string
  smtpPort: number
  smtpUsername: string
  smtpPassword: string
  smtpSecure: 'TLS' | 'SSL' | 'None'
}

export interface SmtpSendMailParams extends SmtpConnectionConfig {
  // Email content
  from: string
  to: string
  subject: string
  body: string
  contentType?: 'text' | 'html'

  // Optional fields
  fromName?: string
  cc?: string
  bcc?: string
  replyTo?: string
  attachments?: any[]
}

export interface SmtpSendMailResult extends ToolResponse {
  output: {
    success: boolean
    messageId?: string
    to?: string
    subject?: string
  }
}
