import * as React$1 from 'react'; type As = (React.ComponentPropsWithRef & { as?: DefaultTag; }) | (React.ComponentPropsWithRef & { as: T1; }) | (React.ComponentPropsWithRef & { as: T2; }) | (React.ComponentPropsWithRef & { as: T3; }) | (React.ComponentPropsWithRef & { as: T4; }) | (React.ComponentPropsWithRef & { as: T5; }); interface Margin { m?: number | string; mx?: number | string; my?: number | string; mt?: number | string; mr?: number | string; mb?: number | string; ml?: number | string; } type HeadingAs = As<"h1", "h2", "h3", "h4", "h5", "h6">; type HeadingProps = HeadingAs & Margin; declare const Heading: React$1.ForwardRefExoticComponent<(Omit & React$1.HTMLAttributes & { as?: "h1" | undefined; } & Margin>, "ref"> | Omit & React$1.HTMLAttributes & { as: "h2"; } & Margin>, "ref"> | Omit & React$1.HTMLAttributes & { as: "h3"; } & Margin>, "ref"> | Omit & React$1.HTMLAttributes & { as: "h4"; } & Margin>, "ref"> | Omit & React$1.HTMLAttributes & { as: "h5"; } & Margin>, "ref"> | Omit & React$1.HTMLAttributes & { as: "h6"; } & Margin>, "ref">) & React$1.RefAttributes>; export { Heading, type HeadingAs, type HeadingProps };