<?php

namespace NoahVet\Reef\Factory\RequestContext;

use Symfony\Component\HttpFoundation\Request;

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