///
import { IncomingMessage, ServerResponse } from 'http';
import { webpack } from 'next/dist/compiled/webpack/webpack';
export declare const ADDED: unique symbol;
export declare const BUILDING: unique symbol;
export declare const BUILT: unique symbol;
export declare let entries: {
[page: string]: {
serverBundlePath: string;
clientBundlePath: string;
absolutePagePath: string;
status?: typeof ADDED | typeof BUILDING | typeof BUILT;
lastActiveTime?: number;
};
};
export default function onDemandEntryHandler(watcher: any, multiCompiler: webpack.MultiCompiler, { pagesDirs, pageExtensions, maxInactiveAge, pagesBufferLength, }: {
pagesDirs: string[];
pageExtensions: string[];
maxInactiveAge: number;
pagesBufferLength: number;
}): {
ensurePage(page: string): Promise;
middleware(req: IncomingMessage, res: ServerResponse, next: Function): any;
};