<?php

declare(strict_types=1);

namespace ApiModel\Domain\Repository;

interface MessageRepositoryInterface
{
    /** @return array<string, mixed>|null */
    public function findByCode(string $code): ?array;

    public function insert(string $id, string $code, string $subjectEs, string $subjectEn, string $bodyHtmlEs, string $bodyHtmlEn): void;

    public function update(string $id, string $code, string $subjectEs, string $subjectEn, string $bodyHtmlEs, string $bodyHtmlEn, bool $isActive): void;

    /** @return list<array<string, mixed>> */
    public function listAll(): array;
}
