import "./link.css"; import type * as React from "react"; import { Button as Base } from "@base-ui/react/button"; import { type TextSize, type TextWeight } from "./text"; import { type StyleProps } from "./style_props"; export interface LinkProps extends StyleProps { children: React.ReactNode; /** Opening is the consumer's (openExternal, a route). */ onPress: () => void; size?: TextSize; /** Where the link is the thing it stands in for (a register subject). */ weight?: TextWeight; /** Clamps like every register cell. */ lines?: number; accessibilityLabel?: string; testID?: string; ref?: React.Ref; render?: Base.Props["render"]; } /** * An external destination: fixed link ink and `role="link"`. `TextLink` is the neutral, * optionally-pressable counterpart. The underline arrives on hover and focus only, since ink and * role already announce it and a record of six underlined facts reads as a page of hyperlinks. A * button with `role="link"`: with no URL, an `` would be unfocusable; a caller with a URL wants * `TextLink href`. */ export declare function Link({ children, onPress, size, weight, lines, accessibilityLabel, testID, render, ref, ...props }: LinkProps): React.JSX.Element;