import { default as React, AnchorHTMLAttributes, MouseEvent, ReactNode } from 'react'; /** * @figmaNode wXrXt5uKNNzV2DnQCgyYZH#14472-14569 (Design-System · "Link") * * Underlined SemiBold text link. Enabled/Visited = gama-500, Hover = gama-600, Pressed = gama-500, * Disabled = delta-300; Focused/Pressed adds a 1px gama-400 rounded indicator (radius 4, px4/py2). * State is derived at runtime from `:hover`/`:focus`/`disabled`, not a prop. */ /** @deprecated ASMA-8705 — `small` → use `large`, `xs` → use `medium`. */ type LegacyLinkSize = 'small' | 'xs'; export type StyledLinkProps = Omit, 'onClick'> & { onClick?: (event: MouseEvent) => void; /** @figmaProp State = true→"Disabled" (renders a non-interactive , delta-300) */ disabled?: boolean; /** * @figmaProp none — behavioral. Why the link is unavailable. With `disabled` the link stays * focusable (`aria-disabled`), does not navigate and shows the reason on hover, focus and tap * (disabled-states DIS-1…DIS-3). Without it a disabled link stays a plain ``. */ disabledReason?: ReactNode; /** * @figmaProp Body Base = large→on ("Links/Base link", 16/24) | medium→off ("Links/Helper link", 14/20). * The design system has these two sizes only (ASMA-8705). * * `small` and `xs` are deprecated aliases kept so existing callers keep compiling: `small` renders as * `large` (was 14/20) and `xs` as `medium` (was 12/20). Use `large` / `medium` instead. */ size?: 'medium' | 'large' | LegacyLinkSize; /** @figmaProp none — ref */ reflink?: React.Ref; /** @figmaProp none — test hook */ dataTest?: string; /** @figmaProp none — deprecated content slot (use contentNode) */ content?: ReactNode; /** @figmaProp none — the link label slot */ contentNode?: ReactNode; }; /** * Developer: bularga.alexandru@carasent.com * * Custom props: * @param content - content of the link - deprecated, has conflicts with HTMLAnchorElement content option * @param contentNode - content of the link * @param disabled = disabled * @param size - 'large' (Base, 16/24) | 'medium' (Helper, 14/20); deprecated: 'small' → large, 'xs' → medium * @param refLink - ref to component * @param dataTest - data-test tag * @param classTest - test jsDoc */ export declare const StyledLink: React.FC; export {};