<?php

declare(strict_types=1);

namespace App\Administration\Application\Port;

use App\Administration\Application\Dto\PaginatedResult;
use App\Administration\Application\Query\GetUsers\UserDto;

/**
 * Read-model port for paginated user queries (CQRS read side).
 *
 * @phpstan-type Result = PaginatedResult<UserDto>
 */
interface PaginatedUsersReader
{
    /**
     * @return PaginatedResult<UserDto>
     */
    public function findPaginated(
        string $tenantId,
        ?string $role,
        ?string $statut,
        ?string $search,
        int $page,
        int $limit,
    ): PaginatedResult;
}
