import { PropsWithChildren } from 'react'; import { WithStyledProps } from '@mapples/style'; import { TextProps as RNTextProps } from 'react-native'; /** * Props for the Text component. * * @public */ export type TextProps = PropsWithChildren & { /** The text content to display */ text?: string; }>; /** * A customizable text component with built-in styling support. * * The Text component extends React Native's Text with additional styling * capabilities through the @mapples/style system. Flat text content is supplied * via the `text` prop; string and number values are rendered. Nested `Text` * children (the React Native styled-span pattern) are rendered inline after the * `text`, so a node mixing plain runs and styled runs — e.g. produced by a * Figma import of mixed-style text — flows as a single inline run with native * style inheritance (children inherit the parent typography, their own style * applied on top). * * @example * ```tsx * // Flat text * * * // Inline styled spans: renders "Hello bold world" as one run * * * * * * ``` * * @public */ declare const Text: import("react").ForwardRefExoticComponent<{ styled?: import("@mapples/style").StyledProps> | undefined; } & RNTextProps & { /** The text content to display */ text?: string; } & { children?: import("react").ReactNode | undefined; } & import("react").RefAttributes>; export default Text; //# sourceMappingURL=Text.d.ts.map