/**
 * Prerender Store
 *
 * Reads pre-rendered segment data from the worker bundle at build time.
 * The data is stored as globalThis.__PRERENDER_MANIFEST, a map of
 * "<routeName>/<paramHash>" to dynamic import functions that resolve
 * individual prerender entry modules.
 */
import type { SerializedSegmentData, SegmentHandleData } from "../cache/types.js";
export interface PrerenderEntry {
    segments: SerializedSegmentData[];
    handles: Record<string, SegmentHandleData>;
}
export interface PrerenderStore {
    get(routeName: string, paramHash: string, meta?: {
        pathname: string;
    }): PrerenderEntry | null | Promise<PrerenderEntry | null>;
}
declare global {
    var __PRERENDER_MANIFEST: Record<string, () => Promise<{
        default: PrerenderEntry;
    }>> | undefined;
    var __PRERENDER_DEV_URL: string | undefined;
}
/**
 * Create a dev-mode prerender store that fetches on-demand from the
 * Vite dev server's /__rsc_prerender endpoint (runs in Node.js where
 * node:fs works, unlike workerd).
 */
export declare function createDevPrerenderStore(devUrl: string): PrerenderStore;
/**
 * Create a prerender store.
 * Dev mode: on-demand fetch from Vite dev server (node:fs works there).
 * Production: backed by globalThis.__PRERENDER_MANIFEST injected at build time.
 * Returns null if no prerender data is available.
 */
export declare function createPrerenderStore(): PrerenderStore | null;
//# sourceMappingURL=store.d.ts.map