<?php

declare(strict_types=1);

namespace PhpWA\Media;

use PhpWA\Runtime\Deadline;

interface MediaHttpClientInterface
{
    /** Returns the bounded response body. */
    public function upload(string $url, string $filePath, int $length, Deadline $deadline): string;
    /** Streams a bounded HTTPS response into a new output file. */
    public function download(string $url, string $outputPath, int $maximumBytes, Deadline $deadline): void;
}
