<?php

declare(strict_types=1);

namespace ApiModel\Domain\Repository;

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

    public function insert(string $id, string $nameEs, string $nameEn, ?string $icon, int $orderIndex): void;

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

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

    public function update(string $id, string $nameEs, string $nameEn, ?string $icon, int $orderIndex, bool $isActive): void;

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