<?php

namespace NoahVet\Reef\Domain\Http\Multipart;

interface ContentDecoderInterface
{
    public function decode(string $rawBody, string $encoding, ?string $contentType): string;

    /**
     * @param resource $stream
     *
     * @return resource
     */
    public function decodeToStream(mixed $stream, int $bodyOffset, string $encoding, ?string $contentType): mixed;
}
