import type { ActionReturn } from "svelte/action"; import type { Params, NavigationOptions } from "@real-router/core"; export interface LinkActionParams { name: string; params?: Params; options?: NavigationOptions; } type LinkAction = (node: HTMLElement, params: LinkActionParams) => ActionReturn; /** * Factory function that captures router context during component initialization. * Must be called during component init (not inside event handlers or effects). * * @returns Action function for use with `use:` directive * @throws Error if called outside RouterProvider * * @example * ```svelte * * * * User Profile * ``` */ export declare function createLinkAction(): LinkAction; export {};