import './Typography.css'; import type { ElementType, ReactNode } from 'react'; import type { PolymorphicComponentPropsWithoutRef } from '../../utils/polymorphicComponentWithRef'; export declare const typographyVariant: readonly ["heading-4xl", "heading-3xl", "heading-2xl", "heading-xl", "text-4xl", "text-4xl_strong", "text-3xl", "text-3xl_strong", "text-2xl", "text-2xl_strong", "text-xl", "text-xl_strong", "text-l", "text-l_strong", "text-m", "text-m_strong", "text-s", "text-s_strong", "text-xs", "text-xs_strong", "text-2xs", "text-2xs_strong", "text-3xs", "text-3xs_strong", "caption-3xs", "caption-3xs_strong"]; export type TypographyVariant = (typeof typographyVariant)[number]; export declare const typographyDisplayVariant: readonly ["block", "inline", "inlineBlock"]; export type TypographyDisplayVariant = (typeof typographyDisplayVariant)[number]; export declare const typographyAlignVariant: readonly ["left", "center", "right"]; export type TypographyAlignVariant = (typeof typographyAlignVariant)[number]; export declare const typographyColorVariant: readonly ["primary", "secondary", "tertiary", "disabled", "action", "actionHover", "actionDark", "actionOn", "error", "errorDark", "warning", "warningDark", "success", "successDark", "info", "infoDark", "primaryInverse"]; export type TypographyColorVariant = (typeof typographyColorVariant)[number]; export type TypographyBaseProps = { /** * Вариант типографики * @default text-m */ variant?: TypographyVariant; /** * Цвет текста * @default primary */ color?: TypographyColorVariant; /** * Если {true} сокращает длинный текст * @default false */ noWrap?: boolean; /** * Если {true} добавляет отступы * @default false */ defaultMargin?: boolean; /** Выравнивание */ align?: TypographyAlignVariant; /** Задает поведение контейнера с типографикой в документе */ display?: TypographyDisplayVariant; /** Содержимое компонента */ children?: ReactNode; /** Дополнительные СSS-классы */ className?: string; /** Идентификатор компонента для тестов */ 'data-testid'?: string; }; export type TypographyProps = PolymorphicComponentPropsWithoutRef; export declare const cnTypography: import("@bem-react/classname").ClassNameFormatter; export declare const Typography: import("../../utils/polymorphicComponentWithRef").PolymorphicComponentWithRef;