import { Text, TextProps } from "react-native"; import React from "react"; import { Color, TypographyGroup, TypographyVariant } from "../../styling"; export type TypographyColorVariant = "primary" | "secondary" | "tertiary" | "primaryInverted" | "disabled" | "warning" | "success" | "danger"; export type TypographyProps = { /** * Typography groups, specifies which group to use. */ group?: TGroup; /** * Typography variants, specifies which variant to use. */ variant?: TypographyVariant; /** * Enable bold text. */ bold?: boolean; /** * Enable italic text. */ italic?: boolean; /** * Typography colors. */ color?: Color; /** * Reference to text object */ ref?: React.ForwardedRef; } & TextProps; export type TextChildren = { children: string | number | null | undefined | React.JSX.Element | (string | string[] | number | null | undefined | React.JSX.Element)[]; }; export declare const Typography: (p: TypographyProps & TextChildren & TextProps) => React.ReactElement;