import * as react from 'react'; import { MouseEventHandler } from 'react'; import * as _heroui_system from '@heroui/system'; import { HTMLHeroUIProps, PropGetter } from '@heroui/system'; import { AriaLinkProps } from '@react-types/link'; import { LinkVariantProps } from '@heroui/theme'; import { ReactRef } from '@heroui/react-utils'; interface Props extends HTMLHeroUIProps<"a">, LinkVariantProps { /** * Ref to the DOM node. */ ref?: ReactRef; /** * Whether the link is external. * @default false */ isExternal?: boolean; /** * Whether to show the icon when the link is external. * @default false */ showAnchorIcon?: boolean; /** * The icon to display right after the link. * @default */ anchorIcon?: React.ReactNode; /** * The native link click event handler. * use `onPress` instead. * @deprecated */ onClick?: MouseEventHandler; } type UseLinkProps = Props & AriaLinkProps; declare function useLink(originalProps: UseLinkProps): { Component: _heroui_system.As; children: react.ReactNode; anchorIcon: react.ReactNode; showAnchorIcon: boolean; getLinkProps: PropGetter; }; type UseLinkReturn = ReturnType; export { type UseLinkProps, type UseLinkReturn, useLink };