import { ReactNode } from 'react'; import { Color } from '../../tokens/colors.js'; import { Typography } from '../../tokens/typography.js'; import { Style } from 'inlines'; type TextProps = { children: ReactNode; variant?: Typography; align?: 'left' | 'center' | 'right'; color?: 'inherit' | Color; maxWidth?: number; singleLine?: boolean; selectableText?: boolean; style?: Style; }; declare const measureTextWidth: (text: string, variant: Typography) => number; declare const MemorizedText: import("react").MemoExoticComponent>>; export type { TextProps }; export { MemorizedText as Text, measureTextWidth };