securityos/node_modules/next/dist/build/webpack/loaders/metadata/discover.d.ts

11 lines
588 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import type { CollectingMetadata } from './types';
import type { MetadataResolver } from '../next-app-loader';
export declare function createStaticMetadataFromRoute(resolvedDir: string, { segment, metadataResolver, isRootLayoutOrRootPage, pageExtensions, basePath, }: {
segment: string;
metadataResolver: MetadataResolver;
isRootLayoutOrRootPage: boolean;
pageExtensions: string[];
basePath: string;
}): Promise<CollectingMetadata | null>;
export declare function createMetadataExportsCode(metadata: Awaited<ReturnType<typeof createStaticMetadataFromRoute>>): string;