File size: 1,125 Bytes
fea495a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import type { DynamicParamTypesShort } from './types';
import type { ManifestNode } from '../../build/webpack/plugins/flight-manifest-plugin';
import type { HeadData, LoadingModuleData } from '../../shared/lib/app-router-context.shared-runtime';
import { type SegmentRequestKey } from '../../shared/lib/segment-cache/segment-value-encoding';
export type RootTreePrefetch = {
    buildId: string;
    tree: TreePrefetch;
    head: HeadData;
    isHeadPartial: boolean;
    staleTime: number;
};
export type TreePrefetch = {
    name: string;
    paramType: DynamicParamTypesShort | null;
    paramKey: string | null;
    slots: null | {
        [parallelRouteKey: string]: TreePrefetch;
    };
    isRootLayout: boolean;
};
export type SegmentPrefetch = {
    buildId: string;
    rsc: React.ReactNode | null;
    loading: LoadingModuleData | Promise<LoadingModuleData>;
    isPartial: boolean;
};
export declare function collectSegmentData(isClientParamParsingEnabled: boolean, fullPageDataBuffer: Buffer, staleTime: number, clientModules: ManifestNode, serverConsumerManifest: any): Promise<Map<SegmentRequestKey, Buffer>>;