import React, { ReactNode } from 'react'; import { CSS } from '../theme/stitches.config'; import { SimpleColors, TextTransforms } from '../utils/prop-types'; import { TextVariantsProps } from './text.styles'; declare type As = keyof JSX.IntrinsicElements | React.ComponentType; export interface Props { tag: keyof JSX.IntrinsicElements; children?: ReactNode; color?: SimpleColors | string; size?: string | number; margin?: string | number; transform?: TextTransforms; css?: CSS; as?: As; } declare const defaultProps: { color: string; }; declare type NativeAttrs = Omit, keyof Props>; export declare type TextChildProps = Props & typeof defaultProps & NativeAttrs & TextVariantsProps; export declare const TextChild: React.ForwardRefExoticComponent & React.RefAttributes>; declare const _default: React.ComponentType & Omit & React.RefAttributes, "color">>; export default _default;