import type { WebNextRequest, WebNextResponse } from './base-http/web'; import type { RenderOpts } from './render'; import type RenderResult from './render-result'; import type { NextParsedUrlQuery, NextUrlWithParsedQuery } from './request-meta'; import type { Params } from '../shared/lib/router/utils/route-matcher'; import type { PayloadOptions } from './send-payload'; import type { LoadComponentsReturnType } from './load-components'; import type { Options } from './base-server'; import BaseServer from './base-server'; interface WebServerOptions extends Options { webServerConfig: { page: string; loadComponent: (pathname: string) => Promise; extendRenderOpts: Partial & Pick; }; } export default class NextWebServer extends BaseServer { constructor(options: WebServerOptions); protected generateRewrites(): { beforeFiles: never[]; afterFiles: never[]; fallback: never[]; }; protected handleCompression(): void; protected getRoutesManifest(): { headers: never[]; rewrites: { fallback: never[]; afterFiles: never[]; beforeFiles: never[]; }; redirects: never[]; }; protected getPagePath(): string; protected getPublicDir(): string; protected getBuildId(): string; protected loadEnvConfig(): void; protected getHasStaticDir(): boolean; protected generateImageRoutes(): never[]; protected generateStaticRoutes(): never[]; protected generateFsStaticRoutes(): never[]; protected generatePublicRoutes(): never[]; protected generateCatchAllMiddlewareRoute(): never[]; protected getFontManifest(): undefined; protected getPagesManifest(): { [x: string]: string; }; protected getAppPathsManifest(): { [x: string]: string; }; protected getFilesystemPaths(): Set; protected attachRequestMeta(req: WebNextRequest, parsedUrl: NextUrlWithParsedQuery): void; protected getPrerenderManifest(): { version: 3; routes: {}; dynamicRoutes: {}; notFoundRoutes: never[]; preview: { previewModeId: string; previewModeSigningKey: string; previewModeEncryptionKey: string; }; }; protected getServerComponentManifest(): undefined; protected renderHTML(req: WebNextRequest, _res: WebNextResponse, pathname: string, query: NextParsedUrlQuery, renderOpts: RenderOpts): Promise; protected sendRenderResult(_req: WebNextRequest, res: WebNextResponse, options: { result: RenderResult; type: 'html' | 'json'; generateEtags: boolean; poweredByHeader: boolean; options?: PayloadOptions | undefined; }): Promise; protected runApi(): Promise; protected findPageComponents(pathname: string, query?: NextParsedUrlQuery, params?: Params | null): Promise<{ query: { [x: string]: any; __nextNotFoundSrcPage?: string | undefined; __nextDefaultLocale?: string | undefined; __nextFallback?: "true" | undefined; __nextLocale?: string | undefined; __nextSsgPath?: string | undefined; _nextBubbleNoFallback?: "1" | undefined; __nextDataReq?: "1" | undefined; amp?: "1" | undefined; }; components: LoadComponentsReturnType; } | null>; } export {};