import { Material, Object3D, Sphere, Vector3 } from "three"; import { Chunk } from "../chunk/Chunk"; import { WORLD_TYPES } from "../chunk/types"; import { PlanetBuilderProps } from "./Planet.builder"; export interface PlanetProps { radius: number; inverted?: boolean; minCellSize: number; minCellResolution: number; material?: Material; position?: Vector3; workerProps: PlanetBuilderProps["workerProps"]; lodDistanceComparisonValue?: number; data: D; } export declare class Planet> extends Object3D { #private; readonly data: D; minCellSize: number; minCellResolution: number; radius: number; inverted: boolean; lodDistanceComparisonValue: number; sphere: Sphere; readonly worldType = WORLD_TYPES.PLANET; constructor({ radius, minCellSize, minCellResolution, material, data, workerProps, position, lodDistanceComparisonValue, inverted, }: PlanetProps); get material(): Material | undefined; set material(material: Material | undefined); rebuild(): void; update(lodOrigin: Vector3): void; get chunks(): Chunk[]; dispose(): void; }