import { PropsWithChildren } from 'react'; import { WithStyledProps, TypographyProps as StyledTypographyProps } from '@mapples/style'; import { TextProps as RNTextProps } from 'react-native'; /** * Props for the Typography component. * * @public */ export type TextProps = PropsWithChildren & { /** The text content to display */ text?: string; /** The typography variant to apply (e.g. `Headline`, `Body`, `Caption`) */ variant?: StyledTypographyProps['variant']; /** Colour that overrides the variant's colour, or `false` to apply none */ color?: StyledTypographyProps['color']; }>; /** * A styled typography component backed by the `@mapples/style` Typography * primitive. * * Accepts text content via the `text` prop; string and number values are * rendered, anything else falls back to `'Not a string'`. Style overrides are * applied through the `styled` prop. * * @example * ```tsx * * ``` * * @public */ declare const Typography: import("react").ForwardRefExoticComponent<{ styled?: import("@mapples/style").StyledProps> | undefined; } & RNTextProps & { /** The text content to display */ text?: string; /** The typography variant to apply (e.g. `Headline`, `Body`, `Caption`) */ variant?: StyledTypographyProps["variant"]; /** Colour that overrides the variant's colour, or `false` to apply none */ color?: StyledTypographyProps["color"]; } & { children?: import("react").ReactNode | undefined; } & import("react").RefAttributes<(props: Omit & { ref?: React.Ref | undefined; }) => React.ReactNode>>; export default Typography; //# sourceMappingURL=Typography.d.ts.map