13 lines
791 B
TypeScript
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 {};
|