import type { ValidationResult } from '../../model/component-types.js'; import type { ScenarioModel } from '../../model/scenario-model.js'; /** Valkyrie treats a QItem without `starting` as a starting item (format 3 legacy, QuestData.QItem) */ export declare const isStartingItem: (data: Record) => boolean; export interface Reachability { /** Components that can run as an event (triggered, referenced from a reachable event, or a clicked board item) */ runs: Set; /** Components placed on the board or given to the investigators by a reachable `add` */ added: Set; } /** * Follow the scenario the way Valkyrie runs it: from events with a real trigger, through eventN * references, board items added by `add` (clicking them runs their eventN), items gained (their * inspect event), spawned monsters (evade/horror events, and Defeated<...> triggers). */ export declare function computeReachability(model: ScenarioModel): Reachability; /** * Checks that the scenario can be played to an end, and flags setups that silently misbehave: * - Error: no reachable event sets $end — the game can never be won or lost * - Warning: no defeat condition (no Eliminated or NoMorale event) * - Warning: base-game mythos events are never enabled ($mythosMinor/Major/Deadly never set) * - Warning: board components never added by a reachable event * - Warning: TokenInvestigators added and removed by the same event (never visible) * - Warning: an item given at the start that a search also hands out * - Warning: a quest item renamed via localization (Valkyrie shows the catalog item's name) * - Warning: a token removed as soon as it's clicked while its event offers a "leave" button */ export declare function checkGameFlow(model: ScenarioModel): ValidationResult[]; //# sourceMappingURL=game-flow.d.ts.map