import type { NavigationClient, RscBrowserDependencies } from "./types.js"; /** * Create a navigation client for fetching RSC payloads * * The client handles building URLs with RSC parameters and * deserializing the response using the RSC runtime. * * @param deps - RSC browser dependencies (createFromFetch) * @returns NavigationClient instance * * @example * ```typescript * import { createFromFetch } from "@vitejs/plugin-rsc/browser"; * * const client = createNavigationClient({ createFromFetch }); * * const payload = await client.fetchPartial({ * targetUrl: "/shop/products", * segmentIds: ["root", "shop"], * previousUrl: "/", * }); * ``` */ export declare function createNavigationClient(deps: Pick): NavigationClient; //# sourceMappingURL=navigation-client.d.ts.map