import { type ClickActionProps } from './utils/click-action'; import type { CommonInternalProps } from './utils/common-internal.props'; import type { ColorProp, CommonStyleProps, HexColor } from './utils/style.props'; interface TextWidgetInternalProps extends CommonInternalProps { text: string; fontSize: number; allowFontScaling: boolean; fontFamily?: string; fontStyle?: 'normal' | 'italic'; fontWeight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900'; adjustsFontSizeToFit?: boolean; textAlign?: 'center' | 'left' | 'right'; letterSpacing?: number; color?: HexColor; shadow?: { radius: number; dx: number; dy: number; color: HexColor; }; truncate?: 'START' | 'MIDDLE' | 'END'; maxLines?: number; } export interface TextWidgetStyle extends CommonStyleProps { color?: ColorProp; fontSize?: number; fontFamily?: string | undefined; fontStyle?: 'normal' | 'italic'; /** * Specifies font weight. The values 'normal' and 'bold' are supported * for most fonts. Not all fonts have a variant for each of the numeric * values, in that case the closest one is chosen. */ fontWeight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900'; adjustsFontSizeToFit?: boolean; textAlign?: 'center' | 'left' | 'right'; letterSpacing?: number; textShadowColor?: ColorProp; textShadowRadius?: number; textShadowOffset?: { height: number; width: number; }; } export interface TextWidgetProps extends ClickActionProps { style?: TextWidgetStyle; /** * Text to show */ text: string; /** * How to truncate the text if it cannot fit */ truncate?: 'START' | 'MIDDLE' | 'END'; /** * Maximum number of lines to if text overflows in next line */ maxLines?: number; /** * Specifies whether fonts should scale to respect Text Size accessibility settings. * @default true */ allowFontScaling?: boolean; } export declare function TextWidget(_: TextWidgetProps): null; export declare namespace TextWidget { var convertProps: (props: TextWidgetProps) => TextWidgetInternalProps; var __name__: string; } export {}; //# sourceMappingURL=TextWidget.d.ts.map