import type { LinkComponentType } from './types';
/**
 * Resolves the link component to use.
 *
 * Priority: `as` prop > `LinkProvider` context > native `<a>`.
 *
 * When the resolved component is a custom component (not the native `<a>`),
 * it is wrapped to receive both `href` and `to` props set to the same value.
 * This allows `to`-based routers (React Router, TanStack Router) to work
 * out of the box without a manual adapter.
 *
 * @param as - Per-component override. If provided, takes highest priority.
 * @returns The resolved link component (with `to` injection for custom components).
 *
 * @example
 * ```
 * function MyComponent({ as }: { as?: LinkComponentType }) {
 *   const LinkComponent = useLinkComponent(as);
 *   return <LinkComponent href="/foo">Click me</LinkComponent>;
 * }
 * ```
 */
export declare function useLinkComponent(as?: LinkComponentType): LinkComponentType;
//# sourceMappingURL=useLinkComponent.d.ts.map