<?php

declare (strict_types=1);
namespace PoPCMSSchema\CommentMeta\TypeAPIs;

use PoPCMSSchema\Meta\Exception\MetaKeyNotAllowedException;
use PoPCMSSchema\Meta\TypeAPIs\MetaTypeAPIInterface;
/** @internal */
interface CommentMetaTypeAPIInterface extends MetaTypeAPIInterface
{
    /**
     * If the allow/denylist validation fails, and passing option "assert-is-meta-key-allowed",
     * then throw an exception.
     * If the key is allowed but non-existent, return `null`.
     * Otherwise, return the value.
     *
     * @param array<string,mixed> $options
     * @throws MetaKeyNotAllowedException
     */
    public function getCommentMeta(string|int|object $commentObjectOrID, string $key, bool $single = \false, array $options = []) : mixed;
    /**
     * @return array<string,mixed>
     */
    public function getAllCommentMeta(string|int|object $commentObjectOrID) : array;
    /**
     * @return string[]
     */
    public function getCommentMetaKeys(string|int|object $commentObjectOrID) : array;
}
