19 lines
1.0 KiB
TypeScript
19 lines
1.0 KiB
TypeScript
import type { ReactNode } from 'react';
|
|
import type { CacheNode } from 'next/dist/shared/lib/app-router-context.shared-runtime';
|
|
import type { ErrorComponent } from 'next/dist/client/components/error-boundary';
|
|
import type { ServerActionDispatcher } from 'next/dist/client/components/router-reducer/router-reducer-types';
|
|
import type { InitialRouterStateParameters } from 'next/dist/client/components/router-reducer/create-initial-router-state';
|
|
export declare function getServerActionDispatcher(): ServerActionDispatcher | null;
|
|
export declare function urlToUrlWithoutFlightMarker(url: string): URL;
|
|
type AppRouterProps = Omit<Omit<InitialRouterStateParameters, 'isServer' | 'location'>, 'initialParallelRoutes'> & {
|
|
buildId: string;
|
|
initialHead: ReactNode;
|
|
assetPrefix: string;
|
|
missingSlots: Set<string>;
|
|
};
|
|
export declare function createEmptyCacheNode(): CacheNode;
|
|
export default function AppRouter(props: AppRouterProps & {
|
|
globalErrorComponent: ErrorComponent;
|
|
}): import("react/jsx-runtime").JSX.Element;
|
|
export {};
|