import { type AnchorHTMLAttributes, type AriaRole, type ReactNode } from "react";
import { type SX, type ThemeKeys } from "../../theme";
interface BaseTextProps {
display?: "inline-flex";
align?: "inherit" | "start" | "center" | "end";
children?: ReactNode;
color?: ThemeKeys<"color">;
component?: Component;
noWrap?: boolean;
variant?: keyof typeof textVariantMapping;
noSelect?: boolean;
htmlFor?: string;
underline?: boolean;
highlight?: boolean;
highlightColor?: ThemeKeys<"color">;
highlightBorderRadius?: ThemeKeys<"borderRadius">;
sx?: SX;
/**
* Standard HTML title attribute
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/title
*/
title?: string;
hyphens?: boolean;
overflowWrap?: "anywhere";
/**
* Standard HTML id attribute
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id
*/
id?: string;
/**
* Standard ARIA role attribute
* https://www.w3.org/TR/wai-aria-1.1/#role_definitions
*/
role?: AriaRole;
}
interface LinkProps extends BaseTextProps {
href: string;
color?: "indigo11" | "purple11" | "tomato11" | "white" | "grey11" | "grey12";
underline?: boolean;
inline?: boolean;
component?: "a";
target?: AnchorHTMLAttributes["target"];
rel?: AnchorHTMLAttributes["rel"];
onClick?: AnchorHTMLAttributes["onClick"];
}
interface NonLinkProps extends BaseTextProps {
component?: Exclude;
href?: never;
inline?: never;
onClick?: never;
}
export type TextProps = NonLinkProps | LinkProps;
export declare const Text: (props: TextProps & import("react").RefAttributes) => import("react").ReactElement> | null;
type Component = "code" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "header" | "kbd" | "p" | "pre" | "span" | "label" | "a";
export declare const textVariantMapping: {
readonly normal: "p";
readonly bold: "p";
readonly italic: "p";
readonly small: "p";
readonly extraSmall: "p";
readonly smallBold: "p";
readonly smallItalic: "p";
readonly emphasized: "p";
readonly h1: "h1";
readonly h2: "h2";
readonly h3: "h3";
readonly h4: "h4";
readonly h5: "h5";
readonly h6: "h6";
readonly inherit: "p";
};
export {};