import type { PartialResponse } from './cache.js'; import type { StreamingPartialResponse } from './streaming.js'; export interface PreloadContext { readonly basePath: string; readonly excludePaths: string[]; readonly currentRequestPath: string; readonly inventory: string; hasCache(requestPath: string): boolean; storeCache(requestPath: string, data: PartialResponse & { inventory?: string; }, preload: boolean, streaming: boolean): void; fetchPartial(requestPath: string, signal: AbortSignal, speculative: boolean): Promise; } export declare function setupPreloadListeners(ctx: PreloadContext): () => void;