<?php

declare(strict_types=1);

namespace CalendarPlugin\Contracts;

interface AuthAdapterInterface
{
    public function currentUserId(): int;

    public function currentUserCan(string $capability): bool;

    public function verifyNonce(string $nonce, string $action): bool;

    public function currentUserEmail(): string;
}
