import type { Vec3 } from './types'; export declare const MESH_CELLS_SCHEMA = "helix.mesh-cells/1"; export declare const MESH_CELLS_INDEX = "mesh-cells.json"; /** One file of the folder, as the index records it. `file` is relative to the folder root. */ export interface MeshCellsFile { file: string; bytes: number; sha256: string; } export interface MeshCellsBounds { min: Vec3; max: Vec3; } export interface MeshCellsRenderCell extends MeshCellsFile { cx: number; cz: number; triangles: number; materials: number; bounds: MeshCellsBounds; } export interface MeshCellsCollisionCell extends MeshCellsFile { cx: number; cz: number; triangles: number; bounds: MeshCellsBounds; } /** One chosen variant group: the element picks `markings: 'a'`, these are that choice's extra render cells. */ export interface MeshCellsSelectedVariant { key: string; name: string; cells: MeshCellsRenderCell[]; } export interface MeshCellsIndex { dir: string; id: string; cellSizeM: number; originX: number; originZ: number; giContribute?: boolean; textures: MeshCellsFile[]; render: MeshCellsRenderCell[]; collision: MeshCellsCollisionCell[]; selectedVariants: MeshCellsSelectedVariant[]; } /** * The folder's file table — paths, byte lengths and verified digests — for the cells this compile will ship. Textures * are keyed by bare filename inside the GLBs, so two names over one file would leave a mesh reaching for a dropped url. */ export declare function readMeshCellsIndex(dir: string, variants?: Record): MeshCellsIndex;