import type { ComponentPropsWithRef, MouseEvent } from 'react'; /** Where a control navigates, for any component that can be a link instead of a button. */ export interface LinkTarget { /** Navigates there: a plain click goes through the host's router, and a * modified or middle click opens it as any link would. */ href?: string | undefined; /** Loads the page instead of routing, for paths the host's router doesn't serve. */ reloadDocument?: boolean | undefined; /** Such as `_blank`, which also cuts the opened page's hold on this one. */ target?: string | undefined; } export type AppLinkProps = Omit, 'href' | 'target'> & LinkTarget & { /** Keeps it a link that goes nowhere: no href, `aria-disabled`, still * focusable so a tooltip saying why stays reachable. */ disabled?: boolean | undefined; }; /** True for a click the browser would open in place: the primary button with * no modifier. A link's own onClick work, such as closing a drawer or clearing * state, belongs to that click only; the others open a new tab or window and * leave this page as it is. */ export declare function isPlainClick(event: MouseEvent): boolean; /** A link through the host's router (`useLink`): the one way a component * renders an `href`. In-app paths route client-side; `reloadDocument` and * URLs that leave the app get a plain anchor. Every href passes `safeUrl`, * and one that doesn't, or a disabled link, renders without an href. */ export declare function AppLink({ href, reloadDocument, target, disabled, rel, onClick, children, ...props }: AppLinkProps): import("react").JSX.Element;