This commit is contained in:
2026-04-12 01:02:14 +08:00
parent 509487f155
commit 9b053e302b
14085 changed files with 2680009 additions and 12 deletions

View File

@@ -0,0 +1,16 @@
import type { DynamicParamTypesShort } from '../server/app-render/types';
import type { NormalizedSearch } from './components/segment-cache';
import type { RSCResponse } from './components/router-reducer/fetch-server-response';
export type RouteParamValue = string | Array<string> | null;
export type RouteParam = {
name: string;
value: RouteParamValue;
type: DynamicParamTypesShort;
};
export declare function getRenderedSearch(response: RSCResponse): NormalizedSearch;
export declare function getRenderedPathname(response: RSCResponse): string;
export declare function parseDynamicParamFromURLPart(paramType: DynamicParamTypesShort, pathnameParts: Array<string>, partIndex: number): RouteParamValue;
export declare function doesStaticSegmentAppearInURL(segment: string): boolean;
export declare function getCacheKeyForDynamicParam(paramValue: RouteParamValue, renderedSearch: NormalizedSearch): string;
export declare function urlToUrlWithoutFlightMarker(url: URL): URL;
export declare function getParamValueFromCacheKey(paramCacheKey: string, paramType: DynamicParamTypesShort): string | string[];