securityos/node_modules/next/dist/export/routes/pages.d.ts

13 lines
982 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import type { ExportRouteResult, FileWriter } from '../types';
import type { RenderOpts } from '../../server/render';
import type { LoadComponentsReturnType } from '../../server/load-components';
import type { NextParsedUrlQuery } from '../../server/request-meta';
import type { MockedRequest, MockedResponse } from '../../server/lib/mock-request';
export declare const enum ExportedPagesFiles {
HTML = "HTML",
DATA = "DATA",
AMP_HTML = "AMP_HTML",
AMP_DATA = "AMP_PAGE_DATA"
}
export declare function exportPages(req: MockedRequest, res: MockedResponse, path: string, page: string, query: NextParsedUrlQuery, htmlFilepath: string, htmlFilename: string, ampPath: string, subFolders: boolean, outDir: string, ampValidatorPath: string | undefined, pagesDataDir: string, buildExport: boolean, isDynamic: boolean, hasOrigQueryValues: boolean, renderOpts: RenderOpts, components: LoadComponentsReturnType, fileWriter: FileWriter): Promise<ExportRouteResult | undefined>;