<?php

namespace App\Campaigns\Manager;

use App\Models\Campaign;

/**
 * Reads a published campaign's live structure from one platform.
 *
 * Implementations throw when the campaign cannot be read at all. They must
 * never answer an unreadable campaign with an empty snapshot: empty means "the
 * platform says there is nothing here", which the synchronizer records as
 * removals.
 */
interface StructureReader
{
    public function read(Campaign $campaign, ?string $actor = null): PlatformSnapshot;
}
