import type { CityBuilding } from '../source/types'; /** `_unresolved_prefabs.json` as HelixCityExportNative writes it (`helix.cs2-unresolved-prefabs/1`), copied into the bundle root. */ export interface UnresolvedPrefabsFile { schema: 'helix.cs2-unresolved-prefabs/1'; summary?: { unknownPrefabs: number; resolvedPrefabs: number; unresolvedPrefabs: number; unknownPlacements: number; resolvedPlacements: number; unresolvedPlacements: number; }; prefabs: Array<{ obsoleteId: string; type?: string; name?: string; resolvedTo: string | null; resolvedFrom?: string | null; placements: Record; }>; } export interface MissingPack { /** The prefab-name prefix the missing assets share (`StarQ_SP USSW`): the pack, or the family of packs, they belong to. */ pack: string; prefabs: number; buildings: number; examples: string[]; } export interface PlaceholderAudit { buildings: number; /** Buildings drawn as a footprint mass because the bundle has no mesh for them. */ footprintMasses: number; /** Of those, the ones whose prefab the capture could not read or match: the failure. */ unresolvedBuildings: number; /** Of those, named prefabs with no mesh in the bundle (parking, parks, courts, decal-only blocks). */ footprintByDesign: number; /** Buildings the capture re-identified through the name lookup (placed with a retired mod identity, drawn with the real prefab). */ migratedBuildings: number; migratedPrefabs: number; /** The share of all buildings that are unresolved. */ unresolvedShare: number; missingPacks: MissingPack[]; /** True when the capture carried no `unresolved-prefabs.json`: unnamed prefabs can be counted but not named. */ captureReportMissing: boolean; } /** Refuse above this share of all buildings (and above `PLACEHOLDER_MIN_BUILDINGS`): a handful of strays is a map (Leonida ships 60 of 8,896, 0.7%, and warns), a block of boxes is a defect (Pacifica 1,867 of 7,484, 25%). */ export declare const PLACEHOLDER_MAX_SHARE = 0.01; export declare const PLACEHOLDER_MIN_BUILDINGS = 10; /** The part of a prefab name that says which pack it came from: `StarQ_SP USSW_Motel04_L5_6x4` -> `StarQ_SP USSW`, `FR_OfficeHigh01` -> `FR`. */ export declare function packHint(name: string): string; export declare function auditPlaceholders(buildings: readonly CityBuilding[], report?: UnresolvedPrefabsFile | null): PlaceholderAudit; export declare function placeholderRefused(audit: PlaceholderAudit): boolean; export declare function describePlaceholders(audit: PlaceholderAudit): string; /** Throws when the audit refuses and no reason is given; returns the reason it was overridden with, or null. */ export declare function enforcePlaceholders(audit: PlaceholderAudit, allow?: string): string | null;