type RouterLike = { push: (to: unknown) => Promise | unknown; }; /** * Returns true when href is a relative URL suitable for in-app navigation * (e.g. `/dashboard`, `page`, `./page`) — not absolute, protocol-relative, or hash-only. */ export declare const isRelativeHref: (href: string) => boolean; /** * Resolves an anchor href to a value suitable for `router.push`. * Returns `null` when the link should use normal browser navigation. */ export declare const resolveRouterLinkTarget: (anchor: HTMLAnchorElement) => string | null; /** * Interceptar klick på relativa `` och navigerar med `router.push` * i stället för full sidladdning. Användbart för HTML/JSON från t.ex. Payload CMS * eller Poeditor där `router-link` inte kan användas direkt. * * Anropa en gång vid app-start: * ```ts * setupRouterLinkInterceptor(router) * ``` * * HTML-exempel: * ```html * Öppna dashboard * ``` */ export declare const setupRouterLinkInterceptor: (router: RouterLike) => void; /** Tar bort den globala router-link-interceptorn. */ export declare const teardownRouterLinkInterceptor: () => void; export {};