import React from "react"; import { type VariantProps } from "../utils.js"; type TextTags = "span" | "div"; declare const textVariants: (props?: ({ size?: "sm" | "md" | "lg" | "xl" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined) => string; interface TextProps extends React.HTMLAttributes, VariantProps { as?: TextTags; } declare const Text: (({ children, size, className, as: Tag, ...props }: TextProps) => React.JSX.Element) & { original: ({ children, size, className, as: Tag, ...props }: TextProps) => React.JSX.Element; originalName: string; displayName: string; } & { original: (({ children, size, className, as: Tag, ...props }: TextProps) => React.JSX.Element) & { original: ({ children, size, className, as: Tag, ...props }: TextProps) => React.JSX.Element; originalName: string; displayName: string; }; originalName: string; displayName: string; } & { createDecorator: (decorator: import("@webiny/react-composition/types").ComponentDecorator<(({ children, size, className, as: Tag, ...props }: TextProps) => React.JSX.Element) & { original: ({ children, size, className, as: Tag, ...props }: TextProps) => React.JSX.Element; originalName: string; displayName: string; }>) => (props: unknown) => React.JSX.Element; }; export { Text, type TextProps, type TextTags };