import { Box2, Box3, Vector2, Vector2Like, Vector3, Vector3Like } from 'three'; import { ChunkKey, PatchId, PatchKey } from './common_types.js'; declare const asVect2: (v3: Vector3Like) => Vector2; declare const asVect3: (v2: Vector2Like, yVal?: number) => Vector3; declare const asVect2Like: ({ x, z }: Vector3Like) => { x: number; y: number; }; declare const asVect3Like: ({ x, y }: Vector2Like, yVal?: number) => { x: number; y: number; z: number; }; declare const asBox2: (box3: Box3) => Box2; declare const asBox3: (box2: Box2, ymin?: number, ymax?: number) => Box3; declare const isVect3Stub: (stub: Vector3Like) => boolean; declare const parseThreeStub: (stub: any) => any; declare const parsePatchKey: (patchKey: PatchKey) => Vector2 | undefined; declare const patchUpperId: (position: Vector2, patchSize: Vector2) => Vector2; declare const serializePatchId: (patchId: PatchId | undefined) => string; declare const asPatchBounds: (patchKey: string, patchDims: Vector2) => Box2; declare const getScalarId: (scalarValue: number, size: number) => number; declare const getUpperScalarId: (scalarValue: number, size: number) => number; declare const getPatchId: (position: T, patchSize: T) => T; declare const patchRangeFromMapCenterRad: (patchMapCenter: Vector2, patchMapRadius: number) => Box2; declare const patchIndexFromMapRange: (mapRange: Box2) => Record; declare const patchRangeFromBounds: (bounds: Box2, patchDims: Vector2) => Box2; declare const getPatchIds: (bounds: Box2, patchDims: Vector2) => Vector2[]; declare const getRoundedBox: (bounds: Box2, patchDims: Vector2) => Box2; declare const getChunkId: (position: Vector3Like, chunkSize: Vector3Like) => Vector3 | { x: number; y: number; z: number; }; declare const parseChunkKey: (chunkKey: ChunkKey) => Vector3 | undefined; declare const serializeChunkId: (chunkId: Vector3Like) => string; declare const asChunkBounds: (chunkKey: string, chunkDims: Vector3Like) => Box3; declare function genChunkIds(patchId: PatchId, ymin: number, ymax: number): Vector3[]; export { isVect3Stub, parseThreeStub, asVect2, asVect3, asVect2Like, asVect3Like, asBox2, asBox3, parsePatchKey, getScalarId, getUpperScalarId, getPatchId, patchUpperId, serializePatchId, patchRangeFromBounds, patchRangeFromMapCenterRad, patchIndexFromMapRange, getPatchIds, getRoundedBox, asPatchBounds, getChunkId, parseChunkKey, serializeChunkId, asChunkBounds, genChunkIds, };