import type { VoxelEntry } from "./types.ts"; export declare const DEFAULT_CHUNK_SIZE = 16; export type VoxelLinearCoords = [number, number, number]; /** * A fixed-size 3-D grid of voxel data. * Local coordinates run from [0, size) on each axis. * Internally uses a sparse Map so empty chunks carry no memory cost. * * `dirty` is set to true by any write and cleared by VoxelRenderer after * the chunk's mesh has been rebuilt. */ export declare class VoxelChunk { #private; /** Chunk coordinates (not world coordinates) */ readonly cx: number; readonly cy: number; readonly cz: number; readonly size: number; dirty: boolean; constructor([cx, cy, cz]: [number, number, number], size?: number); linearIndex(lx: number, ly: number, lz: number): number; fromLinearIndex(idx: number): { lx: number; ly: number; lz: number; }; get(coords: VoxelLinearCoords): VoxelEntry | undefined; set(coords: VoxelLinearCoords, entry: VoxelEntry): void; delete(coords: VoxelLinearCoords): boolean; isEmpty(): boolean; entries(): IterableIterator<[number, VoxelEntry]>; get voxelCount(): number; toString(): string; } //# sourceMappingURL=VoxelChunk.d.ts.map