import React from 'react'; /** * Anchor link that renders as text. */ declare const Link: React.ForwardRefExoticComponent>; export interface LinkProps { /** * Contents displayed within the anchor. */ children?: React.ReactNode; /** * Description of the link’s content. It is required if the link contains an icon and no * descriptive text. */ accessibilityLabel?: string; /** * Functionally disables the anchor. We discourage the use of this prop since it is difficult * to visually indicate that a link is disabled. Consider not rendering the link if it is not * interactive. */ isDisabled?: boolean; /** * Page to navigate to when the anchor is clicked. */ to?: string; /** * Function to fire when clicking on the anchor. This should be used alongside the `to` prop. */ onClick?: () => void; /** * Function that runs when the user hovers on the link. */ onMouseEnter?: () => void; /** * Function that runs when the user hovers on the link. Unlike `onMouseEnter`, `onMouseOver` * fires each time a child element receives focus. */ onMouseOver?: () => void; /** * Function that runs when the link receives focus. */ onFocus?: () => void; /** * Function that runs when the user hovers away from the link. */ onMouseLeave?: () => void; /** * Function that runs when the link loses focus. */ onBlur?: () => void; /** * The anchor `rel` attribute. Setting this value will add to any default values provided by * Thumbprint for the `rel` attribute. */ rel?: string; /** * Icon from [Thumbprint Icons](/icons/) to render left of the text within `Link`. */ iconLeft?: React.ReactNode; /** * Icon from [Thumbprint Icons](/icons/) to render right of the text within `Link`. */ iconRight?: React.ReactNode; /** * The anchor `target` attribute. Set this to `_blank` to open in a new tab, or to an arbitrary * string to open the link in an `