securityos/node_modules/next/dist/export/routes/app-route.d.ts

11 lines
609 B
TypeScript

import type { ExportRouteResult, FileWriter } from '../types';
import type { IncrementalCache } from '../../server/lib/incremental-cache';
import type { MockedRequest, MockedResponse } from '../../server/lib/mock-request';
export declare const enum ExportedAppRouteFiles {
BODY = "BODY",
META = "META"
}
export declare function exportAppRoute(req: MockedRequest, res: MockedResponse, params: {
[key: string]: string | string[];
} | undefined, page: string, incrementalCache: IncrementalCache | undefined, distDir: string, htmlFilepath: string, fileWriter: FileWriter): Promise<ExportRouteResult>;