import React from 'react'; import type { Polymorphic } from '../core/polymorphism'; import { type BoxBaseProps } from '../layout/Box'; export declare const textDefaultElement = 'span'; export type TextDefaultElement = typeof textDefaultElement; export type TextBaseProps = Polymorphic.ExtendableProps< BoxBaseProps, { numberOfLines?: number; disabled?: boolean; /** * Activates the set of figures where numbers are all of the same size, allowing them to be easily aligned. * @link [MDN Docs](https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-numeric) | [React Native Docs](https://reactnative.dev/docs/text-style-props#fontvariant) * @default false */ tabularNumbers?: boolean; /** * Use character for number zero with a slash through it to differentiate it from the letter 'O'. * @link [MDN Docs](https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-numeric) * @default false */ slashedZero?: boolean; /** * Set text decoration to underline. * @link [MDN Docs](https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration) | [React Native Docs](https://reactnative.dev/docs/text-style-props#textdecorationline) * @default false */ underline?: boolean; /** * Use monospace font family. */ mono?: boolean; /** * Set text to be in a single line. * @link [MDN Docs](https://developer.mozilla.org/en-US/docs/Web/CSS/white-space) * @default false */ noWrap?: boolean; /** * Set overflow behavior. * @link [MDN Docs](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow) */ overflow?: 'truncate' | 'clip' | 'wrap' | 'break'; /** @danger This is a migration escape hatch. It is not intended to be used normally. */ dangerouslySetColor?: string; /** * @deprecated Do not use this prop, it is a migration escape hatch. This will be removed in a future major release. * @deprecationExpectedRemoval v9 */ renderEmptyNode?: boolean; } >; export type TextProps = Polymorphic.Props< AsComponent, TextBaseProps >; type TextComponent = (( props: TextProps, ) => Polymorphic.ReactReturn) & Polymorphic.ReactNamed; export declare const Text: TextComponent; export {}; //# sourceMappingURL=Text.d.ts.map