import type { ComponentType } from 'react'; import type { RouteLoader } from './route-loader'; declare global { interface Window { __DEV_MIDDLEWARE_MANIFEST?: { location?: string; }; __DEV_PAGES_MANIFEST?: { pages: string[]; }; __SSG_MANIFEST_CB?: () => void; __SSG_MANIFEST?: Set; } } export declare type StyleSheetTuple = { href: string; text: string; }; export declare type GoodPageCache = { page: ComponentType; mod: any; styleSheets: StyleSheetTuple[]; }; export default class PageLoader { private buildId; private assetPrefix; private promisedSsgManifest; private promisedDevPagesManifest?; private promisedMiddlewareManifest?; routeLoader: RouteLoader; constructor(buildId: string, assetPrefix: string); getPageList(): string[] | Promise; getMiddleware(): { location?: string | undefined; } | Promise<{ location: string; }> | undefined; getDataHref(params: { asPath: string; href: string; locale?: string | false; skipInterpolation?: boolean; }): string; /** * @param {string} route - the route (file-system path) */ _isSsg(route: string): Promise; loadPage(route: string): Promise; prefetch(route: string): Promise; }