Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Resolved conflicts by taking GitHub versions for: - .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml Kept deploy.sh updated to: - Pull from GitHub (primary source) - Push to Gitea (push-mirror) - Build from site/ directory (GitHub structure) Co-Authored-By: Paperclip <noreply@paperclip.ing>
19 lines
1.1 KiB
TypeScript
19 lines
1.1 KiB
TypeScript
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<NextRouter, 'isReady' | 'query' | 'asPath'>): URLSearchParams;
|
|
export declare function adaptForPathParams(router: Pick<NextRouter, 'isReady' | 'pathname' | 'query' | 'asPath'>): Params | null;
|
|
export declare function PathnameContextProviderAdapter({ children, router, ...props }: React.PropsWithChildren<{
|
|
router: Pick<NextRouter, 'pathname' | 'asPath' | 'isReady' | 'isFallback'>;
|
|
isAutoExport: boolean;
|
|
}>): import("react/jsx-runtime").JSX.Element;
|