import { default as React } from 'react';
import { TypographyHeadingVariant, TypographySize, TypographySpacing } from '../types';
import { PolymorphicComponentProps } from '@entur/utils';
type HeadingBaseProps = {
    /** Visuell variant som bestemmer styling (anbefalt over size) */
    variant?: TypographyHeadingVariant;
    /** Visuell tekststørrelse som overstyrer variant-styling */
    size?: TypographySize;
    /** Innholdet som skal vises */
    children: React.ReactNode;
    /** Ekstra klassenavn for tilpasset styling */
    className?: string;
    /** Inline CSS-stiler */
    style?: React.CSSProperties;
    /** Spacing around the component */
    spacing?: TypographySpacing;
};
export type HeadingProps<C extends React.ElementType> = PolymorphicComponentProps<C, HeadingBaseProps>;
export declare const Heading: <C extends React.ElementType = "h1">({ children, as, size, variant, spacing, className, ...rest }: HeadingProps<C>) => React.JSX.Element;
export {};
