import React from "react"; import type { ForwardedRef, HTMLAttributes, ReactElement, ReactNode } from "react"; import { type PopoverProps } from "./popover"; export type TypographyVariant = "xs" | "sm" | "base" | "lg" | "xl" | "h1" | "h2" | "h3" | "h4"; export interface BaseTypographyProps { variant?: TypographyVariant; weight?: "normal" | "medium" | "bold"; uppercase?: boolean; truncate?: boolean; className?: { root?: string; truncatedTextPopover?: PopoverProps["className"]; }; children: ReactNode; } export type HTMLElementFromVariant = V extends "h4" | "h3" | "h2" | "h1" ? HTMLHeadingElement : HTMLParagraphElement; export type TypographyProps = Omit>, keyof BaseTypographyProps> & BaseTypographyProps; declare const Component: ({ variant, weight, uppercase, truncate, className, children, ...rest }: TypographyProps, ref: React.ForwardedRef>) => ReactElement; export declare const Typography: (props: Omit>, keyof BaseTypographyProps> & BaseTypographyProps & { ref?: React.ForwardedRef> | undefined; }) => ReturnType; export {}; //# sourceMappingURL=typography.d.ts.map