import type { ReactNode } from 'react'; import type { CacheNode } from '../../../shared/lib/app-router-context'; import type { FlightRouterState } from '../../../server/app-render'; import { CacheStates } from '../../../shared/lib/app-router-context'; export interface InitialRouterStateParameters { initialTree: FlightRouterState; initialCanonicalUrl: string; children: ReactNode; initialParallelRoutes: CacheNode['parallelRoutes']; isServer: boolean; location: Location | null; initialHead: ReactNode; } export declare function createInitialRouterState({ initialTree, children, initialCanonicalUrl, initialParallelRoutes, isServer, location, initialHead, }: InitialRouterStateParameters): { tree: FlightRouterState; cache: { status: CacheStates.READY; data: null; head?: ReactNode; subTreeData: ReactNode; parallelRoutes: Map; }; prefetchCache: Map; pushRef: { pendingPush: boolean; mpaNavigation: boolean; }; focusAndScrollRef: { apply: boolean; }; canonicalUrl: string; };