import { UiElement } from '../shared/element.js'; export type LinkSize = 'sm' | 'md' | 'lg'; /** * Carbon-style link (`Link`): `--ui-link` text, underline on hover, Carbon focus ring, sizes * sm (helper-text-01) / md (body-compact-01) / lg (body-compact-02), `inline` (always underlined, * for links inside running text), `visited` styling opt-in and a `disabled` state that renders * plain text with `aria-disabled`. * * @slot - Link text * @slot icon - A 16px (lg: 20px) icon after the text (Carbon `renderIcon`; not shown when `inline`) * @csspart base - The anchor * @csspart icon - The icon wrapper * @fires ui-navigate - detail: { href } (cancelable) on a plain click of the link; cancel it to route client-side (README: SPA router) * @cssprop --ui-link-focus-radius - Corners of the focus ring (default 0; Kanok: 4px) */ export declare class UiLink extends UiElement { /** `el.focus()` lands on the control inside. */ static readonly shadowRootOptions: ShadowRootInit; static readonly styles: import("lit").CSSResult; href: string; target: string; rel: string; download: string; size: LinkSize; /** Underlined at rest, for links inside a sentence. */ inline: boolean; /** Opt into Carbon's visited colour (browser `:visited`). */ visited: boolean; /** Renders as inert text with `aria-disabled`. */ disabled: boolean; private readonly slots; render(): import("lit-html").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'ui-link': UiLink; } }