import { ReactNode } from 'react'; /** A same-page anchor (`#frag`): scrolls the addressed section into view on click * **without a route change** (MARKDOWN_SYNTAX_SPEC §13.5). The default behavior of a * bare `#`-href is intercepted so the sandbox URL the host owns is never mutated * out from under it; a fragment that names nothing leaves the scroll position * untouched (a soft failure). */ declare const FragmentLink: ({ href, children, onClick, ...props }: React.DetailedHTMLProps, HTMLAnchorElement>) => ReactNode; /** An `` that performs in-sandbox navigation on click (prevents the default * full-page load and routes via {@link navigate}). * * A consumer-supplied `onClick` is COMPOSED with the router interception, never * substituted for it (`useComposedAnchorClick`, `../anchorClick`): it runs first, and * calling `preventDefault()` opts out of routing. Regression guard: `...props` * used to spread AFTER `onClick={clickHandler}`, so a consumer `onClick` (e.g. a * drawer's close-on-navigate) silently REPLACED the interception — the default * anchor action then navigated the sandboxed iframe itself to the host URL, * reloading the whole app (and framing the host inside its own sandbox). * * Modifier/middle clicks and explicit non-self `target`s keep the browser * default: the rendered href is a real host URL, so open-in-new-tab works. */ declare const InternalLink: ({ href, children, onClick, target, ...props }: React.DetailedHTMLProps, HTMLAnchorElement>) => ReactNode; /** A link that routes same-app hrefs through the sandbox router (as an * {@link InternalLink}) and renders external hrefs as a plain ``. */ declare const Link: ({ href, children, ...properties }: React.DetailedHTMLProps, HTMLAnchorElement>) => ReactNode; export { FragmentLink, InternalLink, Link };