import { Pausing } from "../../../nlcore/elements/character/pause"; import { Sentence } from "../../../nlcore/elements/character/sentence"; import { Word } from "../../../nlcore/elements/character/word"; import { GameState } from "../../../../game/nlcore/common/game"; import { Color } from "../../../../game/nlcore/types"; import React from "react"; import { DialogElementProps } from "./type"; import { DialogState } from "./UIDialog"; import type { NvlDialogEntry } from "../../gameState"; type BaseTextsProps = { /** * The default color of the text */ defaultColor?: Color; className?: string; style?: React.CSSProperties; dialog?: DialogState; } & React.HTMLAttributes; /** * Props-based wrapper component * Provides a clean interface for direct prop usage */ export interface TextsProps extends DialogElementProps { sentence: Sentence; gameState: GameState; useTypeEffect?: boolean; onCompleted?: () => void; finished?: boolean; count?: number; words?: Word[]; } export type EntryTextsProps = BaseTextsProps & { entry: NvlDialogEntry; gameState: GameState; words: Word[]; useTypeEffect: boolean; isActive: boolean; }; export declare function RawTexts(props: BaseTextsProps): React.JSX.Element; /** * Context-based wrapper component * Provides integration with the sentence context */ export declare function Texts(props: BaseTextsProps | EntryTextsProps): React.JSX.Element; export default Texts;