import { clearEncounter, type DomainError, type DomainEvent, } from "@initiative/domain"; import type { EncounterStore } from "./ports.js"; import { runEncounterAction } from "./run-encounter-action.js"; export function clearEncounterUseCase( store: EncounterStore, ): DomainEvent[] | DomainError { return runEncounterAction(store, (encounter) => clearEncounter(encounter)); }