/** * Chunk Fetcher Module * Handles fetching and caching of individual chunks * * Note: This module provides reference implementations. * The actual code is inlined into the generated Service Worker by serviceWorkerGenerator.ts */ import type { StreamConfig } from './types.js'; /** * Fetches a chunk with cache-first strategy * @param chunkUrlPath - URL path to the chunk (e.g., /content/txid_vout) * @param config - Stream configuration with baseUrl and cacheName * @returns ArrayBuffer containing the chunk data */ export declare function fetchChunk(chunkUrlPath: string, config: StreamConfig): Promise; /** * Prefetches chunks in the background to improve seeking performance * @param chunkUrlPaths - Array of chunk URL paths to prefetch * @param config - Stream configuration */ export declare function prefetchChunks(chunkUrlPaths: string[], config: StreamConfig): Promise; //# sourceMappingURL=ChunkFetcher.d.ts.map