import React, { type ElementType, type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactElement } from "react"; import { type VariantProps } from "class-variance-authority"; declare const typographyVariants: (props?: ({ variant?: "body" | "caption" | "h1" | "h2" | "h3" | null | undefined; color?: "primary" | "success" | "secondary" | "danger" | null | undefined; align?: "center" | "left" | "right" | "justify" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined) => string; type TypographyProps = VariantProps & { text?: string; className?: string; children?: React.ReactNode; }; type PolymorphicProps = { as?: C; } & TypographyProps & Omit, keyof TypographyProps>; type PolymorphicRef = ComponentPropsWithRef["ref"]; export type TypographyComponent = (props: PolymorphicProps & { ref?: PolymorphicRef; }) => ReactElement | null; /** * Needed to allow typings to be autocompleted when using `as="..."` * */ export declare const Typography: TypographyComponent; export {};