import type * as BundledReact from "react"; import type { RuntimeAdapter } from "../platform/adapters/base.js"; import type { EntityInfo, MdxBundle, MDXComponents, PageBundle } from "../types/index.js"; import type { DependencyPinningSourceInput } from "../transforms/esm/package-registry.js"; interface MDXPageResult { pageElement: BundledReact.ReactElement; pageBundle: PageBundle; collectedMetadata: Record; } interface PreparedMDXPageBundles { pageBundle: PageBundle; serverModuleCode: string; } interface StaleMdxEsmRecoveryOptions { adapter: RuntimeAdapter; projectId?: string; projectSlug?: string; contentSourceId?: string; slug: string; pagePath: string; } export declare function isMdxEsmExportMismatchError(error: unknown): boolean; export declare function recoverStaleMdxEsmPreviewCaches(options: StaleMdxEsmRecoveryOptions): Promise; export declare function prepareMDXPageBundles(pageInfo: EntityInfo, projectDir: string, options?: { precompiledModule?: string; studioEmbed?: boolean; }): Promise; export declare function handleMDXPage(pageInfo: EntityInfo, slug: string, projectDir: string, mergedComponents: MDXComponents, _compileMDX: (content: string, frontmatter?: Record, filePath?: string) => Promise, adapter: RuntimeAdapter, options?: { params?: Record; url?: URL; precompiledModule?: string; /** Project ID for cache isolation */ projectId?: string; /** Project slug for HTTP fallback in multi-project mode */ projectSlug?: string; /** Enable node position injection for Studio Navigator */ studioEmbed?: boolean; /** Content source identifier for cache isolation (branch name or release ID) */ contentSourceId?: string; /** React version resolved for this project. */ reactVersion?: string; /** Request-scoped dependency-pinning state used by transform caches. */ dependencyPinningCacheKey?: string; /** Immutable package map paired with dependencyPinningCacheKey. */ dependencyPinningDependencies?: Readonly>; /** Exact package source namespace paired with the immutable snapshot. */ dependencyPinningSource?: DependencyPinningSourceInput; /** Bare npm package roots that the runtime resolves without bundling. */ serverExternalPackages?: readonly string[]; /** Server-trusted local-project identity for dev-only module-server fallback. */ isLocalProject?: boolean; /** Request mode ("development" | "production") for the module compile mode */ mode?: string; }): Promise; export {}; //# sourceMappingURL=page-rendering.d.ts.map