///
import { IncomingMessage, ServerResponse } from 'http';
import { ParsedUrlQuery } from 'querystring';
import React from 'react';
import { DocumentType, AppType, NextPageContext } from '../lib/utils';
import { BuildManifest } from './get-page-files';
import { PageConfig } from 'next-server/types';
export declare type ManifestItem = {
id: number | string;
name: string;
file: string;
publicPath: string;
};
declare type ReactLoadableManifest = {
[moduleId: string]: ManifestItem[];
};
declare type RenderOpts = {
documentMiddlewareEnabled: boolean;
ampBindInitData: boolean;
staticMarkup: boolean;
buildId: string;
canonicalBase: string;
runtimeConfig?: {
[key: string]: any;
};
dangerousAsPath: string;
assetPrefix?: string;
err?: Error | null;
nextExport?: boolean;
skeleton?: boolean;
dev?: boolean;
ampMode?: any;
ampPath?: string;
dataOnly?: boolean;
inAmpMode?: boolean;
hybridAmp?: boolean;
buildManifest: BuildManifest;
reactLoadableManifest: ReactLoadableManifest;
pageConfig: PageConfig;
Component: React.ComponentType;
Document: DocumentType;
DocumentMiddleware: (ctx: NextPageContext) => void;
App: AppType;
ErrorDebug?: React.ComponentType<{
error: Error;
}>;
ampValidator?: (html: string, pathname: string) => Promise;
};
export declare function renderToHTML(req: IncomingMessage, res: ServerResponse, pathname: string, query: ParsedUrlQuery, renderOpts: RenderOpts): Promise;
export {};