/** * Module Collection Types and Utilities * * Types and helper functions for collecting and loading page/layout modules * during the data fetching phase of the render pipeline. * * @module rendering/orchestrator/module-collection */ /** Idle timeout for the module-loading stage. Any concrete module/transform progress resets it. */ export declare const MODULE_LOAD_TIMEOUT_MS = 40000; /** * Fallback cap when module loading is called without an owner signal. * Request and renderer entrypoints supply their own total deadline signal. */ export declare const MODULE_LOAD_HARD_TIMEOUT_MS = 45000; /** Timeout for data fetching (getStaticData, getServerData) */ export declare const DATA_FETCH_TIMEOUT_MS = 15000; /** Timeout for SSR rendering stage */ export declare const SSR_RENDER_TIMEOUT_MS = 20000; /** * Human-readable label for the module-loading timeout. * * Falls back to the route pathname when the slug is empty — the index route's * slug is `""`, which otherwise produced a blank timeout label * (`"Module loading for "`) that named no route when a cold load stalled. */ export declare function moduleLoadLabel(slug: string, pathname: string): string; /** Module to load for data fetching */ export interface ModuleToLoad { type: "page" | "layout"; id: string; path: string; } /** Result of loading a module */ export interface LoadedModule { type: "page" | "layout"; id: string; path: string; mod: unknown; } /** * Collect modules that need to be loaded for data fetching. * * @param pagePath - The path to the page component * @param isComponentPage - Whether the page is a component page (tsx, jsx, ts, js) * @param isInPagesOrAppDir - Whether the page is in /pages/ or /app/ directory * @param nestedLayouts - Array of layout items that may have component paths * @returns Array of modules to load */ export declare function collectModulesToLoad(pagePath: string, isComponentPage: boolean, isInPagesOrAppDir: boolean, nestedLayouts: Array<{ kind: string; componentPath?: string; }>): ModuleToLoad[]; /** * Check if a module has data fetching functions (getServerData or getStaticData). * * @param mod - The loaded module to check * @returns True if the module has data fetching functions */ export declare function hasDataFetchingFunction(mod: unknown): boolean; //# sourceMappingURL=module-collection.d.ts.map