import type { RefAttributes } from "react"; import type { TextElementType, TextProps } from "../Text/Text"; export type HTMLElementType = "span" | "div"; export interface TextOrHTMLProps extends Omit, RefAttributes { /** HTML string to be rendered with dangerouslySetInnerHTML */ text: string; /** Custom class name for the dangerous HTML element */ htmlClassName?: string; /** HTML element type for the dangerous HTML element */ htmlElementType?: HTMLElementType; /** If true, wraps the dangerous HTML element inside a Text component */ textWrapper?: boolean; /** If true, auto-detects whether text is HTML or plain text to determine wrapping and element type */ autoDetect?: boolean; } declare function TextOrHTML({ ref, text, htmlClassName, htmlElementType, textWrapper, autoDetect, ...textProps }: TextOrHTMLProps): import("react/jsx-runtime").JSX.Element; declare namespace TextOrHTML { var displayName: string; } export { TextOrHTML };