import React from 'react'; import '../../styles/base.module.css'; import { AllElementPropsWithRef, MergeAndOverrideProps } from '../../utils/elementTypings'; export declare enum LinkSize { Small = "small", Medium = "medium", Large = "large" } export type LinkProps = MergeAndOverrideProps, { /** * Link content */ children: React.ReactNode; /** * Boolean indicating whether visited styles of the link are applied */ disableVisitedStyles?: boolean; /** * Boolean indicating whether the link will lead user to external domain. */ external?: boolean; /** * Hypertext Reference of the link. */ href: string; /** * Element placed on the start side of the link text */ iconStart?: React.ReactNode; /** * Element placed on the end side of the link text */ iconEnd?: React.ReactNode; /** * Boolean indicating whether the link will open in new tab or not. */ openInNewTab?: boolean; /** * Visible label appended when the link opens in a new tab (default: '(avautuu uudessa välilehdessä)'). */ openInNewTabLabel?: string; /** * The aria-label for opening link in an external domain */ openInExternalDomainAriaLabel?: string; /** * Size of the link */ size?: LinkSize; /** * Additional styles */ style?: React.CSSProperties; /** * Style the link as a button */ useButtonStyles?: boolean; }>; export declare const Link: ({ "aria-label": ariaLabel, children, className, disableVisitedStyles, external, href, iconStart, iconEnd, openInNewTab, openInExternalDomainAriaLabel, openInNewTabLabel, style, size, useButtonStyles, ref, ...rest }: LinkProps) => React.JSX.Element;