import type {Character, GameState} from '../types'; export type CommitGeneratedState = ( nextState: GameState, character: Character, actionText: string, resultText: string, lastFunctionId?: string, ) => Promise | void;