/// import { IncomingMessage, ServerResponse } from 'http'; import webpack from '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, { pagesDir, pageExtensions, maxInactiveAge, pagesBufferLength, }: { pagesDir: string; pageExtensions: string[]; maxInactiveAge: number; pagesBufferLength: number; }): { ensurePage(page: string): Promise; middleware(req: IncomingMessage, res: ServerResponse, next: Function): any; };