export interface PreviewSceneOptions { name?: string; description?: string; category?: string; web_config?: string; require_minecraft_eula?: boolean; light_color?: { r: number; g: number; b: number; }; light_side?: number; condition?: ConditionResolvable; cubemap?: string[]; fog?: { type: 'linear' | 'exponential'; color: any; near?: number; far?: number; density?: number; }; fov?: number; preview_models?: (string | PreviewModel | PreviewModelOptions)[]; } export declare class PreviewScene { id: string; loaded: boolean; require_minecraft_eula: boolean; name: string; description?: string; category: string; light_color: { r: number; g: number; b: number; }; light_side: number; condition: ConditionResolvable; fov: number; web_config_path?: string; fog?: THREE.Fog | THREE.FogExp2; cubemap?: THREE.CubeTexture; preview_models: PreviewModel[]; constructor(id: string, data?: PreviewSceneOptions); extend(data: PreviewSceneOptions): void; lazyLoadFromWeb(): Promise; /** * Selects this preview scene */ select(): Promise; /** * Unselects this preview scene */ unselect(): void; static updateVisibility(): void; delete(): void; /** * All preview scenes, listed by ID */ static scenes: Record; /** * The currently active scene */ static active: PreviewScene | null; static select_options: {}; /** * The URL to the source repository that scenes are pulled from */ static source_repository: string; static menu_categories: { [category_id: string]: { [id: string]: string; }; }; } interface PreviewModelCubeTemplate { prefab?: string; offset?: ArrayVector3; offset_space?: 'block' | 'pixel'; position?: ArrayVector3; size?: ArrayVector3; origin?: ArrayVector3; rotation?: ArrayVector3; faces?: { north?: { uv: ArrayVector4; }; east?: { uv: ArrayVector4; }; west?: { uv: ArrayVector4; }; south?: { uv: ArrayVector4; }; up?: { uv: ArrayVector4; }; down?: { uv: ArrayVector4; }; }; } type PrefabTemplate = PreviewModelCubeTemplate; export interface PreviewModelOptions { id?: string; name?: string; internal?: boolean; condition?: ConditionResolvable; cubes?: PreviewModelCubeTemplate[]; prefabs?: Record; /** * Source of the model's texture */ texture?: string; /** * Model tint color */ color?: string; /** * Enable shading on the material */ shading?: boolean; /** * THREE.JS material render side */ render_side?: number; texture_size?: [number, number]; position?: ArrayVector3; rotation?: ArrayVector3; scale?: ArrayVector3; onUpdate?(): void; } export declare class PreviewModel implements Deletable { id: string; name: string; internal: boolean; condition: ConditionResolvable; model_3d: THREE.Object3D; onUpdate?: () => void; enabled: boolean; build_data: { prefabs?: Record; cubes?: PreviewModelCubeTemplate[]; texture?: string; position?: ArrayVector3; rotation?: ArrayVector3; scale?: ArrayVector3; }; color: string; shading: boolean; render_side: THREE.Side; texture_size: ArrayVector2; cubes: PreviewModelCubeTemplate[]; texture?: string; [idkey: string]: any; constructor(id: string, data: PreviewModelOptions); /** * Enables the model in the preview */ enable(): void; /** * Disables the model in the preview */ disable(): void; /** * Update the appearance and visibility of the model */ update(): void; buildModel(): this; delete(): void; static generateModelFromProject(): string; static models: Record; static getActiveModels: () => PreviewModel[]; static transform_model: PreviewModel | null; } export declare const player_preview_model: PreviewModel; export declare const MinecraftEULA: { isAccepted(key: string): any; promptUser(key: string): Promise; }; declare const global: { PreviewScene: typeof import("./preview_scenes").PreviewScene; PreviewModel: typeof import("./preview_scenes").PreviewModel; MinecraftEULA: { isAccepted(key: string): any; promptUser(key: string): Promise; }; player_preview_model: import("./preview_scenes").PreviewModel; }; declare global { type PreviewScene = import('./preview_scenes').PreviewScene; const PreviewScene: typeof global.PreviewScene; type PreviewModel = import('./preview_scenes').PreviewModel; const PreviewModel: typeof global.PreviewModel; const MinecraftEULA: typeof global.MinecraftEULA; const player_preview_model: PreviewModel; } export {};