import { S as StorageElementType } from './StorageElementType-C7ETezlL.cjs'; import { D as DialogueInterface } from './HistoryStep-WGB6nA4N.cjs'; type CloseType = "close"; type LabelRunModeType = "call" | "jump"; interface NarrationHistory { /** * Dialogue to be shown in the game */ dialogue?: DialogueInterface; /** * List of choices asked of the player */ choices?: HistoryChoiceMenuOption[]; /** * The player made a choice */ playerMadeChoice?: boolean; /** * The index of the step in the history. */ stepIndex: number; /** * The input value of the player */ inputValue?: StorageElementType; /** * The number of labels that were opened (via {@link NarrationManagerInterface.call} or {@link NarrationManagerInterface.jump}) when this step ran. * * This is the size of the label call-stack at this step, and can be used to split a page into paragraphs: * every time this number increases compared to the previous step, a `call` opened a new paragraph. A `jump` * instead starts a whole new page, so it is already reflected by {@link HistoryManagerInterface.currentLabelHistory} * starting over. */ openedLabelsNumber?: number; } /** * HistoryChoiceMenuOption is a type that contains the history information of a choice menu option. */ type HistoryChoiceMenuOption = { /** * Text to be displayed in the menu */ text: string | string[]; /** * Method used to open the label, or close the menu. */ type: CloseType | LabelRunModeType; /** * This choice is a response */ isResponse: boolean; /** * The choice is hidden */ hidden: boolean; }; export type { CloseType as C, HistoryChoiceMenuOption as H, LabelRunModeType as L, NarrationHistory as N };