import type { WakeState, Phase } from './types.js'; /** * Check if the current phase should advance based on elapsed time. * Automatically transitions ACTIVE → VIGIL when heartbeat is stale. * Returns the (possibly updated) phase. */ declare function checkAndAdvancePhase(state: WakeState): Phase; /** Milliseconds remaining before VIGIL triggers. Negative if already past. */ declare function msUntilVigil(state: WakeState): number; /** Whether the given phase allows will modifications. */ declare function canModifyWill(phase: Phase): boolean; /** Whether the given phase allows beneficiary data access. */ declare function canAccessData(phase: Phase): boolean; /** Validate a phase transition is legal. */ declare function isValidTransition(from: Phase, to: Phase): boolean; export { checkAndAdvancePhase, msUntilVigil, canModifyWill, canAccessData, isValidTransition };