import type { ConvertTier } from './config'; import type { StageDef } from './stages'; import { type StartupPrediction } from './closure'; import { type PackSummary } from './packs'; export declare const STARTUP_PACKS_FILE = "startup-packs.json"; export declare const STREAMED_BYTES_FILE = "streamed-bytes.json"; /** helix-manifest `STREAMED_DATA_MAX_BYTES`: the manifest field is 1 byte to 4 GiB. */ export declare const STREAMED_DATA_MAX_BYTES: number; /** * Decoded bytes a cold first play downloads: the early, critical and deferred files plus the root document, each URL once, and each packed * content once. The part folders each keep a copy of the shared materials and textures (Leonida: 182 MB by path against 104 MB by * digest); a loose copy at another URL is another download, but the packs lay a copy out once and alias the other paths to it * (`buildPackGroups`), so the critical and deferred files count once per digest. */ export declare function streamedBytesOf(prediction: Pick): number; /** The manifest field for a World with several documents: the larger transfer, clamped to the range the manifest accepts. */ export declare function streamedBytesForManifest(perTier: Partial>): number | undefined; export interface TierPacksReceipt { tier: ConvertTier; root: string; index: string; summary: PackSummary; spawn: number[]; streamRadiusM: number; /** Decoded bytes of the predicted set by the class that put each file there. */ classes: Record; streamedDataBytes: number; warnings: string[]; } export interface StartupPacksReceipt { schema: 'helix.city-startup-packs/1'; tiers: Partial>; } export declare function readStartupPacksReceipt(out: string): StartupPacksReceipt | null; export declare function startupPacksStage(): StageDef; export declare function streamedBytesStage(): StageDef; export declare function readStreamedBytes(out: string): { streamedDataBytes: Partial>; streamedDataBytesForManifest?: number; } | null;