<?php

namespace MintyPHP\Repository\Mail;

interface MailLogRepositoryInterface
{
    public function create(array $data): ?int;

    public function markSent(int $id, ?string $providerMessageId = null): bool;

    public function markFailed(int $id, string $errorMessage): bool;

    public function listPaged(array $options): array;

    public function find(int $id): ?array;
}
