<?php

declare(strict_types=1);

namespace App\Administration\Domain\Repository;

use App\Administration\Domain\Model\Import\KnownImportFormat;
use App\Administration\Domain\Model\Import\TeacherImportField;
use App\Shared\Domain\Tenant\TenantId;

interface SavedTeacherColumnMappingRepository
{
    /**
     * @param array<string, TeacherImportField> $mapping
     */
    public function save(TenantId $tenantId, KnownImportFormat $format, array $mapping): void;

    /**
     * @return array<string, TeacherImportField>|null
     */
    public function findByTenantAndFormat(TenantId $tenantId, KnownImportFormat $format): ?array;
}
