import { HeadingProps as ChakraHeadingProps } from '@chakra-ui/react';
type KeysOfValue<T, TCondition> = {
    [K in keyof T]: T[K] extends TCondition ? K : never;
}[keyof T];
declare const sizeToVariant: {
    readonly xl: "xl";
    readonly lg: "xl";
    readonly md: "lg";
    readonly sm: "md";
    readonly xs: "sm";
};
type As = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
type Variants = (typeof sizeToVariant)[keyof typeof sizeToVariant];
type Sizes = KeysOfValue<typeof sizeToVariant, string>;
type BaseHeadingProps = Omit<ChakraHeadingProps, 'as' | 'variant' | 'size'> & {
    as?: As;
};
type HeadingWithVariant = BaseHeadingProps & {
    variant: Variants;
    size?: never;
};
type HeadingWithSize = BaseHeadingProps & {
    /** @deprecated use 'variant' instead */
    size?: Sizes;
    variant?: never;
};
export type HeadingProps = HeadingWithVariant | HeadingWithSize;
declare const Heading: ({ variant, size, as, ...rest }: HeadingProps) => import("react/jsx-runtime").JSX.Element;
export default Heading;
