import type { UIColorConfig } from "../../miscellaneous/color/UIColor.Internal"; import type { UIInsetsConfig } from "../../miscellaneous/insets/UIInsets.Internal"; import type { UITextStyleConfig } from "../../miscellaneous/text-style/UITextStyle.Internal"; import type { UIElementOptions } from "../UIElement/UIElement.Internal"; /** Base direction used for bidirectional text reordering */ export declare enum UITextDirection { /** Detect from the first strong directional character of the content */ AUTO = 0, /** Force left to right */ LTR = 1, /** Force right to left */ RTL = 2 } /** Controls how text adapts to element size */ export declare enum UITextResizeMode { /** Break text into multiple lines when narrower than content*/ BREAK = 0, /** Scale text to fit fixed element size */ SCALE = 1 } /** Configuration options for UIText */ export interface UITextOptions extends UIElementOptions { /** Multiplicative tint */ color: UIColorConfig; /** Text padding in world units */ padding: UIInsetsConfig; /** Default style applied to all spans */ commonStyle: Partial; /** How text adapts to size constraints */ resizeMode: UITextResizeMode; /** Maximum line width before wrapping in pixels */ maxLineWidth: number; /** Base direction used for bidirectional text reordering */ direction: UITextDirection; } export declare const TEXT_DEFAULT_MAX_LINE_WIDTH = 1024; export declare const TEXT_DEFAULT_RESIZE_MODE = UITextResizeMode.SCALE; export declare const TEXT_DEFAULT_DIRECTION = UITextDirection.AUTO;