import type { ButtonProps } from '../Button'; import type { WithAttributes, BaseProps, TestIdProp, AsProp } from '../../types'; export type LinkProps = WithAttributes<'a', BaseProps & TestIdProp & AsProp & { /** URL or DOM id to navigate to. */ href: string; /** * Controls the styling of the Link. * @default 'link' */ variant?: ButtonProps['variant']; /** * Hides new tab icon which appears for links with target="_blank". * @default false */ hideNewTabIcon?: boolean; /** * Set the Icon prop to `true` if you're using just an Icon in your Link. Make sure to pass an Icon as children if `true`. * @default false */ icon?: ButtonProps['icon']; /** * Determines if the Link should render a popover when focused or hovered over. * @default false */ previewable?: boolean; /** Callback function that is run when the preview popover is interacted with. */ onPreview?: (e: { href: string; }) => void; /** Optional link behavior. When omitted, legacy Link behavior is preserved. */ linkBehavior?: LinkBehavior; }>; declare const LINK_BEHAVIOR: { readonly PREVIEW: "preview"; readonly OPEN: "open"; readonly OPEN_IN_TAB: "openInTab"; }; type LinkBehavior = (typeof LINK_BEHAVIOR)[keyof typeof LINK_BEHAVIOR]; export declare const StyledLinkPopover: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute, HTMLDivElement>, { preview: boolean; }>> & string; export declare const StyledLinkPopoverBtn: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit & import("react").RefAttributes & import("../..").ForwardProps, "ref"> & { ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject | null | undefined; }, never>> & string & Omit, keyof import("react").Component>; export declare const StyledLinkPreviewPopoverText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit, HTMLDivElement>, never>> & string; export declare const StyledLinkPreviewPopoverBtn: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit & import("react").RefAttributes & import("../..").ForwardProps, "ref"> & { ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject | null | undefined; }, never>, never>> & string; export declare const StyledLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit & import("react").RefAttributes & import("../..").ForwardProps, "ref"> & { ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject | null | undefined; }, never>> & string & Omit, keyof import("react").Component>; declare const _default: import("react").ForwardRefExoticComponent & import("react").RefAttributes> & { getTestIds: (testIdProp?: TestIdProp["testId"]) => import("../..").TestIdsRecord; }; export default _default; //# sourceMappingURL=Link.d.ts.map