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