import { default as React } from 'react'; import { PolymorphicComponentProps } from '@entur/utils'; type BaseHeadingOwnProps = { /** HTML-elementet eller React-komponenten som rendres */ as: string | React.ElementType; /** Ekstra klassenavn */ className?: string; /** Innholdet */ children: React.ReactNode; /** Hvor du vil ha marginer */ margin: 'top' | 'bottom' | 'both' | 'none'; /** Nivået på overskriften */ level: 1 | 2 | 3 | 4 | 5 | 6; }; declare const defaultElement = "h1"; export type BaseHeadingProps = PolymorphicComponentProps; export declare const BaseHeading: ({ className, level, margin, as, ...rest }: BaseHeadingProps) => JSX.Element; export {};