<?php

declare(strict_types=1);

namespace Webmozart\Assert\Tests\StaticAnalysis;

use Countable;
use Webmozart\Assert\Assert;

/**
 * @param Countable|array $value
 * @param int|float $min
 * @param int|float $max
 */
function countBetween(mixed $value, $min, $max): Countable|array
{
    return Assert::countBetween($value, $min, $max);
}

/**
 * @param null|Countable|array $value
 * @param int|float $min
 * @param int|float $max
 */
function nullOrCountBetween(mixed $value, $min, $max): Countable|array|null
{
    return Assert::nullOrCountBetween($value, $min, $max);
}

/**
 * @param iterable<Countable|array> $value
 * @param int|float $min
 * @param int|float $max
 */
function allCountBetween(iterable $value, $min, $max): iterable
{
    return Assert::allCountBetween($value, $min, $max);
}

/**
 * @param iterable<Countable|array|null> $value
 * @param int|float $min
 * @param int|float $max
 */
function allNullOrCountBetween(iterable $value, $min, $max): iterable
{
    return Assert::allNullOrCountBetween($value, $min, $max);
}
