main repo

This commit is contained in:
Basilosaurusrex
2025-11-24 18:09:40 +01:00
parent b636ee5e70
commit f027651f9b
34146 changed files with 4436636 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
import type { ReactNode } from 'react';
import type { CacheNode } from '../../../shared/lib/app-router-context.shared-runtime';
import type { FlightRouterState } from '../../../server/app-render/types';
import { CacheStates } from '../../../shared/lib/app-router-context.shared-runtime';
export interface InitialRouterStateParameters {
buildId: string;
initialTree: FlightRouterState;
initialCanonicalUrl: string;
children: ReactNode;
initialParallelRoutes: CacheNode['parallelRoutes'];
isServer: boolean;
location: Location | null;
initialHead: ReactNode;
}
export declare function createInitialRouterState({ buildId, initialTree, children, initialCanonicalUrl, initialParallelRoutes, isServer, location, initialHead, }: InitialRouterStateParameters): {
buildId: string;
tree: FlightRouterState;
cache: {
status: CacheStates.READY;
data: null;
head?: ReactNode;
subTreeData: ReactNode;
parallelRoutes: Map<string, import("../../../shared/lib/app-router-context.shared-runtime").ChildSegmentMap>;
};
prefetchCache: Map<any, any>;
pushRef: {
pendingPush: boolean;
mpaNavigation: boolean;
};
focusAndScrollRef: {
apply: boolean;
onlyHashChange: boolean;
hashFragment: null;
segmentPaths: never[];
};
canonicalUrl: string;
nextUrl: string | null;
};