import { default as React } from 'react';
import { PolymorphicComponentProps } from '@entur/utils';
export type PreformattedTextOwnProps = {
    /** HTML-elementet eller React-komponenten som rendres
     * @default "pre"
     */
    as?: string | React.ElementType;
    /** Ekstra klassenavn */
    className?: string;
    /** Innholdet */
    children: React.ReactNode;
};
export type PreformattedTextProps<T extends React.ElementType> = PolymorphicComponentProps<T, PreformattedTextOwnProps>;
declare const defaultElement = "pre";
export declare const PreformattedText: <E extends React.ElementType = "pre">({ className, as, ...rest }: PreformattedTextProps<E>) => JSX.Element;
export {};
