///
import type { Options as DevServerOptions } from './dev/next-dev-server';
import './node-polyfill-fetch';
import { default as Server } from './next-server';
import { IncomingMessage, ServerResponse } from 'http';
import { NextUrlWithParsedQuery } from './request-meta';
export declare type NextServerOptions = Partial;
export interface RequestHandler {
(req: IncomingMessage, res: ServerResponse, parsedUrl?: NextUrlWithParsedQuery | undefined): Promise;
}
export declare class NextServer {
private serverPromise?;
private server?;
private reqHandlerPromise?;
private preparedAssetPrefix?;
options: NextServerOptions;
constructor(options: NextServerOptions);
get hostname(): string | undefined;
get port(): number | undefined;
getRequestHandler(): RequestHandler;
setAssetPrefix(assetPrefix: string): void;
logError(...args: Parameters): void;
render(...args: Parameters): Promise;
renderToHTML(...args: Parameters): Promise;
renderError(...args: Parameters): Promise;
renderErrorToHTML(...args: Parameters): Promise;
render404(...args: Parameters): Promise;
serveStatic(...args: Parameters): Promise;
prepare(): Promise;
close(): Promise;
private createServer;
private loadConfig;
private getServer;
private getServerRequestHandler;
}
declare function createServer(options: NextServerOptions): NextServer;
export default createServer;