<?php

declare(strict_types=1);

namespace App\Services\Sitemaps;

use DateTimeInterface;

interface ShardableSitemapBuilder extends SitemapBuilder
{
    public function totalItems(): int;

    public function shardSize(): int;

    /**
     * @return list<SitemapUrl>
     */
    public function itemsForShard(int $shard): array;

    public function lastModifiedForShard(int $shard): ?DateTimeInterface;
}