<?php

namespace NoahVet\Reef\Domain\Serialization\Jane;

interface JaneDenormalizerInterface
{
    /**
     * @template T of object
     *
     * @param array<string, mixed> $data
     * @param class-string<T>      $type
     *
     * @return T
     */
    public function denormalize(array $data, string $type): object;
}
