import { ComponentPropsWithRef, ElementType, ReactElement } from 'react'; import { TypographyProps } from './Typography.types'; type PolymorphicRef = ComponentPropsWithRef['ref']; /** * Typography * @param {Object} props * @param {React.ReactNode} props.children - Typography 내부에 들어갈 컨텐츠 * @param {string} props.variant - 텍스트 스타일 variant ('title48' | 'title32' | 'title24' | 'subTitle20' | 'subTitle18' | 'contents18' | 'contents16' | 'body16' | 'body14' | 'body13' | 'caption12' | 'caption11') * @param {string} [props.className] - 추가적인 CSS 클래스 * @param {keyof JSX.IntrinsicElements} [props.as='span'] - 렌더링할 HTML 요소 * @param {Ref} [props.ref] - 렌더된 요소로 forward되는 ref. as에 따라 추론 */ declare const Typography: (props: TypographyProps & { ref?: PolymorphicRef; }) => ReactElement | null; export { Typography };