<?php

namespace App\Modules\AntiTheft\Application;

use App\Modules\AntiTheft\Domain\SecuritySignal;
use App\Modules\AntiTheft\Domain\TheftRule;

interface RuleTriggerStore
{
    /** @return array<string, int> Unix timestamps keyed by rule code. */
    public function lastTriggeredAt(string $deviceUuid): array;

    /** @param array<int, TheftRule> $rules */
    public function record(SecuritySignal $signal, array $rules): void;
}
