<?php
namespace Bookaro\Contracts;

defined( 'ABSPATH' ) || exit;

/**
 * Abstraction for webhook dispatch (Pro).
 */
interface WebhookDispatcherInterface
{
    public function is_available(): bool;

    /**
     * @return bool|\WP_Error
     */
    public function dispatch( string $event, array $payload );
}
