<?php

namespace NoahVet\Reef\Domain\Serialization\Jane;

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