import type { AnchorHTMLAttributes, ReactElement, ReactNode, Ref } from 'react'; import { type PrefetchOptions } from '../client-core-utils/caches.js'; import type { NavigationHref } from '../isomorphic-utils/build-route-href.js'; type NavigationStatus = { pending?: boolean; }; /** * Returns the navigation status of the enclosing `Link`, like React's * `useFormStatus`. `pending` is `true` while the navigation transition is in * flight, until the destination route's async components resolve. Returns an * empty object when called outside a `Link`. */ export declare function useNavigationStatus(): NavigationStatus; export type LinkProps = { to: NavigationHref; children: ReactNode; /** * Whether the link should scroll on navigation. * - `true`: always scroll * - `false`: never scroll * - `undefined`: scroll on path/hash change or repeated same-hash click (not query-only) */ scroll?: boolean; /** * Commit instantly: paint the cached shell + its `` fallbacks right * away and stream the dynamic parts in. */ unstable_instant?: boolean; unstable_prefetchOnEnter?: PrefetchOptions; unstable_prefetchOnView?: PrefetchOptions; ref?: Ref | undefined; } & Omit, 'href'>; /** * Client-side navigation link. Renders an ``; click handling pushes through * the router unless the click is modified or prevented. A non-`_self` `target` * is discouraged and still routes in place (use `` instead). A `to` on * another origin is a failure; use `` for external URLs. Failures surface * through the router error boundary rather than a returned promise. */ export declare function Link({ to, children, scroll, unstable_instant, unstable_prefetchOnEnter, unstable_prefetchOnView, ref: refProp, ...props }: LinkProps): ReactElement; export {};