export declare function probeRemoteMedia(fetchImpl: typeof fetch, url: string): Promise<{
    contentLength: number | null;
    mediaType: string | null;
    filename: string | null;
}>;
export declare function downloadCappedBytes(fetchImpl: typeof fetch, url: string, maxBytes: number, options?: {
    rejectAboveBytes?: number;
    totalBytes: number | null;
    onProgress?: ((downloadedBytes: number) => void) | null;
} | null): Promise<Uint8Array>;
export declare function downloadToFile(fetchImpl: typeof fetch, url: string, filePath: string, options?: {
    maxBytes?: number;
    totalBytes: number | null;
    onProgress?: ((downloadedBytes: number) => void) | null;
}): Promise<number>;
export declare function remoteMediaTooLargeError(bytes: number, maxBytes: number): Error;
export declare function normalizeHeaderType(value: string | null): string | null;
export declare function parseContentLength(value: string | null): number | null;
export declare function parseContentRangeTotal(value: string | null): number | null;
export declare function filenameFromUrl(url: string): string | null;
export declare function formatBytes(bytes: number): string;
