1 | import { IncomingMessage, ServerResponse } from 'http';
|
2 | import { webpack } from 'next/dist/compiled/webpack/webpack';
|
3 | export declare const ADDED: unique symbol;
|
4 | export declare const BUILDING: unique symbol;
|
5 | export declare const BUILT: unique symbol;
|
6 | export declare let entries: {
|
7 | [page: string]: {
|
8 | serverBundlePath: string;
|
9 | clientBundlePath: string;
|
10 | absolutePagePath: string;
|
11 | status?: typeof ADDED | typeof BUILDING | typeof BUILT;
|
12 | lastActiveTime?: number;
|
13 | };
|
14 | };
|
15 | export default function onDemandEntryHandler(watcher: any, multiCompiler: webpack.MultiCompiler, { pagesDir, pageExtensions, maxInactiveAge, pagesBufferLength, }: {
|
16 | pagesDir: string;
|
17 | pageExtensions: string[];
|
18 | maxInactiveAge: number;
|
19 | pagesBufferLength: number;
|
20 | }): {
|
21 | ensurePage(page: string): Promise<void>;
|
22 | middleware(req: IncomingMessage, res: ServerResponse, next: Function): any;
|
23 | };
|