import { default as React } from 'react';
import { PolymorphicComponentProps } from '@entur/utils';
import { TypographySize, TypographyTextVariant, TypographyWeight, TypographySpacing } from '../types';
type TextBaseProps = {
    /** Visuell tekststørrelse (typografi-token) */
    size?: TypographySize;
    /** Fontvekt */
    weight?: TypographyWeight;
    /** Variant (kan brukes til spesielle typer tekst som for eksempel caption) */
    variant?: TypographyTextVariant;
    /** Innhold */
    children: React.ReactNode;
    /** Spacing around the component */
    spacing?: TypographySpacing;
    /** Ekstra klassenavn */
    className?: string;
};
export type TextProps<C extends React.ElementType> = PolymorphicComponentProps<C, TextBaseProps>;
export declare const Text: <C extends React.ElementType = "p">({ children, as, size, variant, weight, spacing, className, ...rest }: TextProps<C>) => React.JSX.Element;
export {};
