import { ElementType, MouseEvent, Ref, ComponentPropsWithoutRef, ReactNode } from 'react'; import { Color } from '../types.js'; interface LinkOwnProps { /** Accent color token */ color?: Color; /** Link content. */ children?: ReactNode; /** Extra classes for the link element. */ className?: string; /** Native `disabled` attribute. */ disabled?: boolean; /** Native `readOnly` attribute. */ readOnly?: boolean; /** * Polymorphic element. When omitted, defaults to `'a'` if `href` is provided, otherwise `'button'`. Pass an explicit value to override (e.g. a router `Link` component). */ as?: C; /** Renders a `FocusableLayer` ring on keyboard focus. Defaults to `true`. */ focusable?: boolean; /** Click handler. */ onClick?: (e: MouseEvent) => void; /** Native `href` - when provided, the polymorphic default switches from `'button'` to `'a'`. */ href?: string; /** Forwarded to the polymorphic root element. */ ref?: Ref; } export type LinkProps = LinkOwnProps & Omit, keyof LinkOwnProps>; /** Shape of `Link` defaults that can be supplied via `CladdProvider`'s `defaults` prop. */ export type LinkDefaultProps = Partial>; export declare const Link: (props: LinkProps) => import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=Link.d.ts.map