export interface DecodedPrimitive { /** Lattice coordinates (1/60 m) in the global frame, three per vertex. */ lattice: Int32Array; normal: Int8Array; road: Uint8Array; colour: Uint8Array | null; uv: Uint16Array | null; indices: Uint32Array; materialName: string; baseColour: number[]; alphaMode: string; attributeTypes: Record; } export interface DecodedCell { primitives: DecodedPrimitive[]; extensionsUsed: string[]; extensionsRequired: string[]; json: { materials?: Array<{ extensions?: Record; }>; }; } /** Decodes a cell (or collider) GLB. Positions come back as global lattice integers regardless of the cell's node transform. */ export declare function decodeCell(bytes: Uint8Array): Promise; /** Signed y-component of the triangle normal in lattice space (counter-clockwise seen from above is positive). */ export declare function triangleUp(lattice: Int32Array, a: number, b: number, c: number): number; /** * Samples (on a `step` metre plan grid inside the square [x0, x0+size] x [z0, z0+size]) covered by two or more up-facing * triangles of the surface primitives (0 and 1) whose heights agree within `tolerance` metres: places the GPU would * z-fight. Samples on a shared edge are not counted (a triangle must contain the sample strictly inside). Overlaps of two * triangles of one of the `ignoreSameKind` surface kinds are not counted: identical material at one height cannot flicker. */ export declare function coplanarOverlapSamples(cell: DecodedCell, x0: number, z0: number, size: number, step?: number, tolerance?: number, ignoreSameKind?: readonly number[]): number;