<?php

namespace Velis\Config;

use ArrayAccess;
use Countable;

/**
 * @extends ArrayAccess<string, mixed>
 */
interface ConfigInterface extends ArrayAccess, Countable
{
    /**
     * @param mixed $default
     * @return mixed
     */
    public function get(string $key, $default = null, string $cast = null);
}
