lingjing/node_modules/next/dist/shared/lib/segment-cache/segment-value-encoding.d.ts
2026-02-23 09:51:43 +00:00

13 lines
791 B
TypeScript

import type { Segment as FlightRouterStateSegment } from '../app-router-types';
type Opaque<K, T> = T & {
__brand: K;
};
export type SegmentRequestKeyPart = Opaque<'SegmentRequestKeyPart', string>;
export type SegmentRequestKey = Opaque<'SegmentRequestKey', string>;
export declare const ROOT_SEGMENT_REQUEST_KEY: SegmentRequestKey;
export declare const HEAD_REQUEST_KEY: SegmentRequestKey;
export declare function createSegmentRequestKeyPart(segment: FlightRouterStateSegment): SegmentRequestKeyPart;
export declare function appendSegmentRequestKeyPart(parentRequestKey: SegmentRequestKey, parallelRouteKey: string, childRequestKeyPart: SegmentRequestKeyPart): SegmentRequestKey;
export declare function convertSegmentPathToStaticExportFilename(segmentPath: string): string;
export {};