Files
lcbp3.np-dms.work/frontend/node_modules/next/dist/lib/metadata/get-metadata-route.d.ts
2025-09-21 20:29:15 +07:00

20 lines
693 B
TypeScript
Executable File

/**
* Fill the dynamic segment in the metadata route
*
* Example:
* fillMetadataSegment('/a/[slug]', { params: { slug: 'b' } }, 'open-graph') -> '/a/b/open-graph'
*
*/
export declare function fillMetadataSegment(segment: string, params: any, lastSegment: string): string;
/**
* Map metadata page key to the corresponding route
*
* static file page key: /app/robots.txt -> /robots.xml -> /robots.txt/route
* dynamic route page key: /app/robots.tsx -> /robots -> /robots.txt/route
*
* @param page
* @returns
*/
export declare function normalizeMetadataRoute(page: string): string;
export declare function normalizeMetadataPageToRoute(page: string, isDynamic: boolean): string;