import type React from 'react'; import type { AccessibilityRole, StyleProp, TextProps as RNTextProps, TextStyle } from 'react-native'; import type { TypographyScale, TypographyMD2Variant } from '../../tokens/typography'; import type { SizeProp } from '../../tokens/size'; import type { SxProps } from '../../types/shared'; /** All 15 MD3 type-scale roles */ export type TypeScaleVariant = keyof TypographyScale; export type { TypographyMD2Variant }; /** * Props for the MD3 Text component. */ export interface TextProps extends Omit { /** Style override — merged after the variant style. */ style?: StyleProp; /** MD3 type-scale variant or MUI MD2 variant (resolved to MD3 equivalent). Controls font size, weight, line-height, etc. */ variant: TypeScaleVariant | TypographyMD2Variant; /** Text color override. Defaults to `theme.colorScheme.onSurface`. */ color?: string; /** Size variant. */ size?: SizeProp; /** Extended style system. */ sx?: SxProps; /** Text alignment. */ align?: TextStyle['textAlign']; /** Content */ children?: React.ReactNode; /** Accessibility role. Defaults to `'text'`. */ accessibilityRole?: AccessibilityRole; /** Test id for automated queries. */ testID?: string; } //# sourceMappingURL=types.d.ts.map