Source path: app/Services/Publishers/Publisher.php
Extracted from supplied specification. Review before copying into application.

<?php
namespace App\Services\Publishers;

use App\Models\PostTarget;
use App\Models\SocialAccount;

interface Publisher
{
    /** @return array{id:string, url:?string} */
    public function publish(PostTarget $target): array;
    public function refreshToken(SocialAccount $account): void;
}
