<?php

declare(strict_types=1);

namespace ApiModel\Domain\Repository;

interface LeaveRepositoryInterface
{
    public function findById(string $id): ?array;

    /** @return list<array<string, mixed>> */
    public function listByCompany(string $companyId): array;

    public function insert(array $leave): void;

    public function update(string $id, array $leave): void;

    public function delete(string $id): void;
}
