` without `href` has NO implicit role, so a screen reader would
* announce it as plain text and `aria-label` would be a prohibited attribute — which is exactly
* how the icon-only collapsed rail (where the label lives on `aria-label`) would have lost the
* name of every disabled row. Callers that supply their own role — the collapsed flyout's
* `menuitem` — still win, because `rest` is spread after it.
*
* Everything else — the icon, the label, the badge, `data-active`/`aria-current`, the collapsed
* rail's `aria-label` — is composed by the LIBRARY and arrives as `children`. The consumer never
* reconstructs row markup, which is what makes the reported "every sidebar icon disappeared"
* regression impossible.
*
* @example
* ```tsx
* // React Router / TanStack Router — destination prop is `to`.
* import { Link } from "react-router-dom";
* const RouterLink = createSidebarLink(Link, "to");
*
*
* // Inertia / Next.js — destination prop is `href` (the default).
* import { Link } from "@inertiajs/react";
* const InertiaLink = createSidebarLink(Link);
* ```
*/
export declare function createSidebarLink(Link: React.ComponentType
, hrefProp?: "href" | "to"): SidebarLinkComponentProp;