import * as React from 'react'; import type { DOMProps, QAProps } from "../types.js"; import type { ColorTextBaseProps } from "./colorText/colorText.js"; import type { TextBaseProps } from "./text/text.js"; export interface TextProps extends Omit, ColorTextBaseProps, QAProps, DOMProps { /** * Ability to override default html tag */ as?: C; ellipsisLines?: number; } type TextRef = React.ComponentPropsWithRef['ref']; type TextPropsWithTypedAttrs = TextProps & Omit, keyof TextProps>; /** * A component for working with typography. * * Storybook: https://preview.gravity-ui.com/uikit/?path=/story/components-text--default * * **Hint:** Hover on props in your editor to read jsdoc * * Provides a convenient API for working with mixins of typography and text colors. Just point at the prop in you favorite code editor and read the accompanying documentation via `jsdoc` on where to apply this or that font or color. * * ```jsx * import {Text} from '@gravity-ui/uikit'; * * some test * ``` * * You can also use a more flexible way of setting the style. "Gravity UI" also provide `text` utility function. * *```jsx * import {text} from '@gravity-ui/uikit'; * * // textStyles = 'text text_variant_display-1 some-class-name' * const textStyles = text({variant: 'display-1'}, 'some-class-name'); * * some text * ``` */ export declare const Text: (({ ref, ...props }: TextPropsWithTypedAttrs & { ref?: TextRef; }) => React.ReactElement) & { displayName: string; }; export {};