import { default as React } from 'react';
import { PolymorphicComponentProps } from '@entur/utils';
export type LinkOwnProps = {
    external?: boolean;
    /** HTML-elementet eller React-komponenten som rendres
     * @default "a"
     */
    as?: string | React.ElementType;
    /** Ekstra klassenavn */
    className?: string;
    /** Innholdet */
    children: React.ReactNode;
    /** Hvor du vil ha marginer
     * @default "both"
     */
    margin?: 'top' | 'bottom' | 'both' | 'none';
    ariaLabelExternalIcon?: string;
};
export type LinkProps<T extends React.ElementType = typeof defaultElement> = PolymorphicComponentProps<T, LinkOwnProps>;
declare const defaultElement = "a";
export declare const Link: <E extends React.ElementType = "a">({ external, ariaLabelExternalIcon, className, margin, children, as, ...rest }: LinkProps<E>) => JSX.Element;
export {};
