import { type AppSegmentTree, type ParamMatching } from '../segment-config/app/app-segments'; import type { FallbackRouteParam } from './types'; import { FallbackMode } from '../../lib/fallback'; export declare function resolveParamMatching(page: string, segmentTree: readonly AppSegmentTree[], pathnameSegments: ReadonlyArray<{ readonly paramName: string; }>): Promise; /** * Validate closure after every page's policies have been evaluated and merged. * Identify each parameter definition by its normalized URL prefix, including * the parameter name. /blog/[slug] and /shop/[slug] are independent; route * groups and parallel slots are removed by normalization and share the same * definition when their URL prefixes match. */ export declare function validateParamMatchingCoherence(paramMatchingByRoute: ReadonlyMap): void; export declare function getParamMatchingFallbackMode(paramMatching: Readonly, fallbackRouteParams: readonly Pick[], inferredFallbackMode: FallbackMode | undefined, rootParamKeys: ReadonlySet): FallbackMode | undefined; export declare function validateParamMatchingParams(page: string, paramMatching: Readonly, generatedParamNames: ReadonlySet, missingParamNames: ReadonlySet, pathnameSegments: ReadonlyArray<{ readonly paramName: string; }>, output: 'export' | 'standalone' | undefined): void;