import { BoxProps, MantineFontSize, MantineGradient, MantineLineHeight, PolymorphicFactory, StylesApiProps } from '../../core'; type TextTruncate = 'end' | 'start' | boolean; export type TextStylesNames = 'root'; export type TextVariant = 'text' | 'gradient'; export type TextCssVariables = { root: '--text-gradient' | '--text-line-clamp' | '--text-fz' | '--text-lh'; }; export interface TextProps extends BoxProps, StylesApiProps { __staticSelector?: string; /** Controls `font-size` and `line-height` @default 'md' */ size?: MantineFontSize | MantineLineHeight; /** Number of lines after which Text will be truncated */ lineClamp?: number; /** Side on which Text must be truncated, if `true`, text is truncated from the start */ truncate?: TextTruncate; /** Sets `line-height` to 1 for centering @default false */ inline?: boolean; /** Determines whether font properties should be inherited from the parent @default false */ inherit?: boolean; /** Gradient configuration, ignored when `variant` is not `gradient` @default theme.defaultGradient */ gradient?: MantineGradient; /** Shorthand for `component="span"` */ span?: boolean; } export type TextFactory = PolymorphicFactory<{ props: TextProps; defaultComponent: 'p'; defaultRef: HTMLParagraphElement; stylesNames: TextStylesNames; vars: TextCssVariables; variant: TextVariant; }>; export declare const Text: ((props: import("../..").PolymorphicComponentProps) => React.ReactElement) & Omit & { ref?: any; renderRoot?: (props: any) => any; }) | (TextProps & { component: React.ElementType; renderRoot?: (props: Record) => any; })>, never> & import("../..").ThemeExtend<{ props: TextProps; defaultComponent: "p"; defaultRef: HTMLParagraphElement; stylesNames: TextStylesNames; vars: TextCssVariables; variant: TextVariant; }> & import("../..").ComponentClasses<{ props: TextProps; defaultComponent: "p"; defaultRef: HTMLParagraphElement; stylesNames: TextStylesNames; vars: TextCssVariables; variant: TextVariant; }> & { varsResolver: import("../..").VarsResolver<{ props: TextProps; defaultComponent: "p"; defaultRef: HTMLParagraphElement; stylesNames: TextStylesNames; vars: TextCssVariables; variant: TextVariant; }>; } & import("../..").PolymorphicComponentWithProps<{ props: TextProps; defaultComponent: "p"; defaultRef: HTMLParagraphElement; stylesNames: TextStylesNames; vars: TextCssVariables; variant: TextVariant; }> & Record; export declare namespace Text { type Props = TextProps; type StylesNames = TextStylesNames; type CssVariables = TextCssVariables; type Factory = TextFactory; type Variant = TextVariant; } export {};