<?php

declare(strict_types=1);

namespace ApiModel\Domain\Repository;

interface RoleRepositoryInterface
{
    /** @return array<string, mixed>|null */
    public function findById(string $id): ?array;

    /** @return array<string, mixed>|null */
    public function findByName(string $nameEsOrEn): ?array;

    public function insert(string $id, string $nameEs, string $nameEn, ?string $descEs, ?string $descEn): void;

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

    public function update(string $id, string $nameEs, string $nameEn, ?string $descEs, ?string $descEn, bool $isActive): void;

    public function delete(string $id): void;
}
