<?php

declare(strict_types=1);

namespace FecaMailshots\Application;

interface SmtpSender
{
    /**
     * @param array<string, mixed> $credentials
     * @param list<string> $to
     * @param list<string> $cc
     * @param list<string> $bcc
     * @param list<array{filename:string,mime_type:string,content_bytes:string}> $attachments
     * @return array{raw_mime:string}
     */
    public function send(array $credentials, array $to, array $cc, array $bcc, string $subject, string $htmlBody, ?string $replyTo = null, array $attachments = []): array;
}
