import * as THREE from 'three/webgpu'; import type { TriangleMeshData } from './parse-mesh-ply'; /** One cell's collision mesh decoded from a `collision.lci`. */ export interface CollisionLciTile { readonly cellX: number; readonly cellY: number; readonly data: TriangleMeshData; /** * Cell-grid AABB in the file's source-local frame, clamped to the file's * scene bounds. Useful for culling before consulting the triangles. */ readonly bounds: THREE.Box3; } /** Everything {@link parseCollisionLci} extracts from one file. */ export interface CollisionLciFile { readonly version: number; readonly bounds: THREE.Box3; readonly cellLengthX: number; readonly cellLengthY: number; readonly tiles: readonly CollisionLciTile[]; } /** * Parses a classic-LCC `collision.lci` buffer into per-cell triangle meshes. * * @throws {Error} on bad magic, unsupported version, truncated payloads, * inconsistent size fields, or out-of-range face indices. */ export declare function parseCollisionLci(buffer: ArrayBuffer): CollisionLciFile;