securityos/node_modules/next/dist/server/lib/router-server.d.ts

23 lines
867 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import type { WorkerRequestHandler, WorkerUpgradeHandler } from './types';
import '../node-polyfill-fetch';
import '../node-environment';
import '../require-hook';
import '../../lib/polyfill-promise-with-resolvers';
export type RenderServer = Pick<typeof import('./render-server'), 'initialize' | 'deleteCache' | 'clearModuleContext' | 'deleteAppClientCache' | 'propagateServerField'>;
export interface LazyRenderServerInstance {
instance?: RenderServer;
}
export declare function initialize(opts: {
dir: string;
port: number;
dev: boolean;
server?: import('http').Server;
minimalMode?: boolean;
hostname?: string;
isNodeDebugging: boolean;
keepAliveTimeout?: number;
customServer?: boolean;
experimentalTestProxy?: boolean;
experimentalHttpsServer?: boolean;
}): Promise<[WorkerRequestHandler, WorkerUpgradeHandler]>;