/opt/canhelp/node_modules/next/dist/shared/lib/router
Edit: /opt/canhelp/node_modules/next/dist/shared/lib/router/adapters.d.ts (1099B)
import type { AppRouterInstance } from '../app-router-context.shared-runtime';
import type { Params } from '../../../server/request/params';
import type { NextRouter } from './router';
import React from 'react';
/** It adapts a Pages Router (`NextRouter`) to the App Router Instance. */
export declare function adaptForAppRouterInstance(pagesRouter: NextRouter): AppRouterInstance;
/**
* adaptForSearchParams transforms the ParsedURLQuery into URLSearchParams.
*
* @param router the router that contains the query.
* @returns the search params in the URLSearchParams format
*/
export declare function adaptForSearchParams(router: Pick
): URLSearchParams;
export declare function adaptForPathParams(router: Pick): Params | null;
export declare function PathnameContextProviderAdapter({ children, router, ...props }: React.PropsWithChildren<{
router: Pick;
isAutoExport: boolean;
}>): import("react/jsx-runtime").JSX.Element;