/** * Byte-fetching helpers shared by the loading workers. * * These live outside `load-worker.ts` because there are two workers - the * streaming one and the one-shot one (see `one-shot-worker.ts`) - built as * separate bundles. Each bundle gets its own copy of this module; the point is * one source of truth for range semantics and progress accounting, not shared * bytes at runtime. */ import { type SplatProgressCallback, type SplatRequestOptions } from './loading'; /** Chunk URLs carry a `#cell-level` label for debugging; servers never see it. */ export declare function stripFragment(url: string): string; /** * Fetches exactly `[start, start + length)` of a file. * * A server that ignores `Range` answers 200 with the whole body - for a 300 MB * `data.bin` that would be a catastrophic download that still "works", so an * unranged response is rejected outright rather than decoded. */ export declare function fetchRange(url: string, start: number, length: number, request: SplatRequestOptions | undefined, signal: AbortSignal): Promise; export declare function fetchBuffer(url: string, request: SplatRequestOptions | undefined, signal: AbortSignal, onProgress?: SplatProgressCallback): Promise; /** Opens a whole-body fetch while preserving request and fetch-error policy. */ export declare function fetchWholeResponse(url: string, request: SplatRequestOptions | undefined, signal: AbortSignal): Promise; /** Stops rejected downloads without replacing their original error. */ export declare function discardResponseBody(response: Response): Promise;