<?php

namespace NoahVet\Reef\Factory\RequestContext;

use Symfony\Component\HttpFoundation\Request;

/**
 * @psalm-import-type WhitelistShape from \NoahVet\Reef\Factory\RequestContext\ApplierInterface
 */
interface SortingApplierInterface
{
    /**
     * @param WhitelistShape $whitelist
     *
     * @return array<string, mixed>
     */
    public function apply(Request $request, array $whitelist): array;
}
