export interface BudgetCell { bounds: { min: number[]; max: number[]; }; } export interface BudgetGroup { id: string; mode: string; estimatedMemoryMiB?: number; cells: BudgetCell[]; } export interface BudgetRoot { profiles: { world: { runtimePolicy: { memoryBudgetMiB: number; streamRadiusM: number; }; }; }; streamGroups: BudgetGroup[]; } /** The shared HLOD appearance (decoded city materials) the engine reserves once an HLOD layer is active, MiB (measured, systems/scene hlod/resources.ts). */ export declare const HLOD_APPEARANCE_RESERVE_MIB: Readonly>; /** The search stops splitting squares at this side, metres: the bound it gates on then overstates the radius by at most 0.36 m. */ export declare const AUDIT_RESOLUTION_M = 0.5; /** Bumped when the audit bills differently; the stages that gate on it (street furniture, validate) carry it in their signature. 3: searched worst point. */ export declare const ROAD_BUDGET_AUDIT_VERSION = 3; export interface RoadBudgetAudit { eagerMiB: number; hlodMiB: number; budgetMiB: number; streamRadiusM: number; /** The worst resident total anywhere: eager + HLOD reserve + every non-eager group within the stream radius (an upper bound, within AUDIT_RESOLUTION_M). */ worstMiB: number; worstAt: [number, number]; worstRoadMiB: number; roadGroups: number; headroomMiB: number; ok: boolean; } export declare function auditRoadBudget(root: BudgetRoot, tier: 'desktop' | 'phone', hasHlod: boolean, roadPrefix?: string): RoadBudgetAudit; /** * The pipeline's gate on the audit: a root whose worst camera position bills more than its authored budget does not get published, on either * tier. (It was only the desktop that refused; a phone overshoot was "recorded", and two Leonida builds shipped with `ok: false` at up to * 235.6 of 192 MiB. The engine does not save a phone from this: it admits the groups under the camera past the budget and reports the * overshoot, so the player's phone holds the extra memory.) A person who accepts a specific overshoot passes the reason (`--allow-over-budget`); * it is recorded in the receipt, never the default. */ export declare function enforceRoadBudget(audit: RoadBudgetAudit, rootName: string, allowReason?: string): { overByMiB: number; overridden: string | null; };