<?php

declare(strict_types=1);

namespace App\Framework\Analytics;

interface AnalyticsInterface
{
    public function track(AnalyticsEvent $event): void;

    public function trackPageView(string $path, array $context = []): void;

    public function trackUserAction(string $action, string $userId, array $data = []): void;

    public function trackPerformance(string $metric, float $value, array $context = []): void;

    public function flush(): void;

    public function isEnabled(): bool;
}
