1 | import '../next-server/server/node-polyfill-fetch';
|
2 | import { CustomRoutes } from '../lib/load-custom-routes';
|
3 | import { GetStaticPaths } from 'next/types';
|
4 | import { BuildManifest } from '../next-server/server/get-page-files';
|
5 | import { UnwrapPromise } from '../lib/coalesced-function';
|
6 | export declare function collectPages(directory: string, pageExtensions: string[]): Promise<string[]>;
|
7 | export interface PageInfo {
|
8 | isHybridAmp?: boolean;
|
9 | size: number;
|
10 | totalSize: number;
|
11 | static: boolean;
|
12 | isSsg: boolean;
|
13 | ssgPageRoutes: string[] | null;
|
14 | initialRevalidateSeconds: number | false;
|
15 | }
|
16 | export declare function printTreeView(list: readonly string[], pageInfos: Map<string, PageInfo>, serverless: boolean, { distPath, buildId, pagesDir, pageExtensions, buildManifest, useStatic404, gzipSize, }: {
|
17 | distPath: string;
|
18 | buildId: string;
|
19 | pagesDir: string;
|
20 | pageExtensions: string[];
|
21 | buildManifest: BuildManifest;
|
22 | useStatic404: boolean;
|
23 | gzipSize?: boolean;
|
24 | }): Promise<void>;
|
25 | export declare function printCustomRoutes({ redirects, rewrites, headers, }: CustomRoutes): void;
|
26 | declare type ComputeManifestShape = {
|
27 | commonFiles: string[];
|
28 | uniqueFiles: string[];
|
29 | sizeUniqueFiles: {
|
30 | [file: string]: number;
|
31 | };
|
32 | sizeCommonFile: {
|
33 | [file: string]: number;
|
34 | };
|
35 | sizeCommonFiles: number;
|
36 | };
|
37 | export declare function computeFromManifest(manifest: BuildManifest, distPath: string, gzipSize?: boolean, pageInfos?: Map<string, PageInfo>): Promise<ComputeManifestShape>;
|
38 | export declare function difference<T>(main: T[] | Set<T>, sub: T[] | Set<T>): T[];
|
39 | export declare function getJsPageSizeInKb(page: string, distPath: string, buildManifest: BuildManifest, gzipSize?: boolean, computedManifestData?: ComputeManifestShape): Promise<[number, number]>;
|
40 | export declare function buildStaticPaths(page: string, getStaticPaths: GetStaticPaths, locales?: string[], defaultLocale?: string): Promise<Omit<UnwrapPromise<ReturnType<GetStaticPaths>>, 'paths'> & {
|
41 | paths: string[];
|
42 | encodedPaths: string[];
|
43 | }>;
|
44 | export declare function isPageStatic(page: string, distDir: string, serverless: boolean, runtimeEnvConfig: any, locales?: string[], defaultLocale?: string, parentId?: any): Promise<{
|
45 | isStatic?: boolean;
|
46 | isAmpOnly?: boolean;
|
47 | isHybridAmp?: boolean;
|
48 | hasServerProps?: boolean;
|
49 | hasStaticProps?: boolean;
|
50 | prerenderRoutes?: string[];
|
51 | encodedPrerenderRoutes?: string[];
|
52 | prerenderFallback?: boolean | 'blocking';
|
53 | isNextImageImported?: boolean;
|
54 | }>;
|
55 | export declare function hasCustomGetInitialProps(page: string, distDir: string, isLikeServerless: boolean, runtimeEnvConfig: any, checkingApp: boolean): Promise<boolean>;
|
56 | export declare function getNamedExports(page: string, distDir: string, isLikeServerless: boolean, runtimeEnvConfig: any): Promise<Array<string>>;
|
57 | export declare function detectConflictingPaths(combinedPages: string[], ssgPages: Set<string>, additionalSsgPaths: Map<string, string[]>): void;
|
58 | export declare function getCssFilePaths(buildManifest: BuildManifest): string[];
|
59 | export {};
|