import type { UITextAlign, UITextStyleConfig } from "./UITextStyle.Internal"; /** Text style configuration for UI text rendering */ export declare class UITextStyle { private colorInternal?; private alignInternal?; private fontFamilyInternal?; private fontSizeInternal?; private fontStyleInternal?; private fontWeightInternal?; private lineHeightInternal?; private enableShadowInternal?; private shadowOffsetXInternal?; private shadowOffsetYInternal?; private shadowBlurInternal?; private shadowColorInternal?; private enableStrokeInternal?; private strokeColorInternal?; private strokeThicknessInternal?; private dirtyInternal; /** @param config Partial style configuration. Unspecified properties remain undefined. */ constructor(config?: Partial); /** Text color */ get color(): string | undefined; /** Text alignment */ get align(): UITextAlign | undefined; /** Font family name */ get fontFamily(): string | undefined; /** Font size in pixels */ get fontSize(): number | undefined; /** Font style */ get fontStyle(): "normal" | "italic" | "oblique" | undefined; /** Font weight */ get fontWeight(): "normal" | "bold" | "bolder" | "lighter" | number | undefined; /** Line height in pixels */ get lineHeight(): number | undefined; /** Whether shadow is enabled */ get enableShadow(): boolean | undefined; /** Shadow horizontal offset in pixels */ get shadowOffsetX(): number | undefined; /** Shadow vertical offset in pixels */ get shadowOffsetY(): number | undefined; /** Shadow blur radius in pixels */ get shadowBlur(): number | undefined; /** Shadow color */ get shadowColor(): string | undefined; /** Whether stroke is enabled */ get enableStroke(): boolean | undefined; /** Stroke color */ get strokeColor(): string | undefined; /** Stroke thickness in pixels */ get strokeThickness(): number | undefined; set color(value: string | undefined); set align(value: UITextAlign | undefined); set fontFamily(value: string | undefined); set fontSize(value: number | undefined); set fontStyle(value: "normal" | "italic" | "oblique" | undefined); set fontWeight(value: "normal" | "bold" | "bolder" | "lighter" | number | undefined); set lineHeight(value: number | undefined); set enableShadow(value: boolean | undefined); set shadowOffsetX(value: number | undefined); set shadowOffsetY(value: number | undefined); set shadowBlur(value: number | undefined); set shadowColor(value: string | undefined); set enableStroke(value: boolean | undefined); set strokeColor(value: string | undefined); set strokeThickness(value: number | undefined); /** * Resolves complete style from primary and fallback sources. * @param primary First style to check for each property * @param fallback Second style to check if primary is undefined * @returns Complete style configuration with all defaults applied */ static resolve(primary?: UITextStyle, fallback?: UITextStyle): UITextStyleConfig; /** Sets all properties to default values */ setDefaults(): void; /** Sets all properties to undefined */ clear(): void; /** Copies from another style instance */ copy(value: UITextStyle): void; /** * Calculates maximum padding required for stroke and shadow. * @returns Padding in pixels needed on all sides */ calculatePadding(): number; }