import { sizes } from '../../const'; import { ComponentProps, ComponentPropsWithoutRef, ElementType } from 'react'; import { default as Caption } from '../Caption/Caption'; type HeadingOwnProps = { level?: 1 | 2 | 3 | 4 | 5 | 6; size?: keyof typeof sizes; caption?: string; captionSize?: ComponentProps['size']; }; export type HeadingProps = HeadingOwnProps & Omit, keyof HeadingOwnProps | 'as'> & { as?: T; }; export default function Heading({ as, level, size, className, children, caption, captionSize, ...props }: HeadingProps): import("react/jsx-runtime").JSX.Element; export {};