import { MultiFileRuleset } from "../multi_file_editing"; import { Property } from "../util/property"; import { ModelFormat } from "./format"; interface ModelProjectOptions { format?: ModelFormat; } /** * A project instance. The tab bar can be used to switch between projects. */ export declare class ModelProject { uuid: UUID; selected: boolean; static properties: { [key: string]: Property; }; box_uv: boolean; model_identifier: string; parent: string; /** * When set to true, the project tab can no longer be selected or unselected */ locked: boolean; thumbnail: string; /** * The path under which a project file is saved, if available */ save_path: string; /** * The path under which an exported file is saved, if available */ export_path: string; added_models: number; BedrockEntityManager?: any; format: ModelFormat; mode: string; view_mode: string; multi_file_ruleset: string; previews: { [key: string]: any; }; EditSession: EditSession; elements: OutlinerElement[]; groups: Group[]; selected_elements: OutlinerElement[]; selected_group: Group | null; mesh_selection: { [element_key: string]: { vertices: string[]; edges: string[]; faces: string[]; }; }; selected_faces: any[]; textures: Texture[]; selected_texture: Texture | null; outliner: OutlinerNode[]; animations: BBAnimation[]; timeline_animators: []; display_settings: { [slot: string]: { translation: [number, number, number]; rotation: [number, number, number]; scale: [number, number, number]; mirror: [boolean, boolean, boolean]; export?(...args: any[]): any; }; }; overrides?: any; exploded_view: boolean; tool: string; uv_viewport: { zoom: number; offset: [number, number]; [key: string]: any; }; backgrounds: { [key: string]: any; }; unhandled_root_fields: any; ambientocclusion: boolean; front_gui_light: boolean; [key: string]: any; _static: any; private _texture_width; private _texture_height; private _name; private _saved; export_options: any; mirror_modeling_enabled: any; mirror_animating_enabled: any; reference_images: any; selected_groups: any; spline_selection: any; texture_groups: any; collections: Collection[]; animation_controllers: any; constructor(options?: ModelProjectOptions, uuid?: UUID); extend(object: any): void; get texture_width(): number; get texture_height(): number; set texture_width(n: number); set texture_height(n: number); get optional_box_uv(): boolean; get name(): string; set name(name: string); get undo(): UndoSystem; get saved(): boolean; set saved(saved: boolean); get geometry_name(): string; set geometry_name(val: string); get model_3d(): THREE.Object3D; get nodes_3d(): Record; getDisplayName(with_extension?: boolean): string; getFileExtension(): string; getProjectMemory(): import("../desktop").RecentProjectData; getMultiFileRuleset(): MultiFileRuleset | undefined; getUVWidth(texture?: Texture): number; getUVHeight(texture?: Texture): number; openSettings(): void; whenNextOpen(callback: () => void): void; saveEditorState(): this; loadEditorState(): this; select(): boolean; showContextMenu(event: Event): this; updateThumbnail(): void; /** * Run when unselecting the project * @param closing Set to true when the project is being closed */ unselect(closing?: boolean): void; closeOnQuit(): void; close(force?: boolean): Promise; static all: ModelProject[]; } export declare function setupProject(format: ModelFormat | string, uuid?: string): boolean; export declare function newProject(format: ModelFormat | string): boolean; export declare function selectNoProject(): void; export declare function updateTabBarVisibility(): void; /** * * @param projects * @returns Promise: true if all projects were saved, otherwise false */ export declare function showUnsavedWorkDialog(projects?: ModelProject[]): Promise; export declare function updateProjectResolution(): void; export declare function setStartScreen(state: any): void; declare const global: { ModelProject: typeof import("./project").ModelProject; ProjectData: {}; setupProject: typeof import("./project").setupProject; newProject: typeof import("./project").newProject; selectNoProject: typeof import("./project").selectNoProject; updateTabBarVisibility: typeof import("./project").updateTabBarVisibility; updateProjectResolution: typeof import("./project").updateProjectResolution; setStartScreen: typeof import("./project").setStartScreen; showUnsavedWorkDialog: typeof import("./project").showUnsavedWorkDialog; }; declare global { type ModelProject = import('./project').ModelProject; const ModelProject: typeof global.ModelProject; const ProjectData: typeof global.ProjectData; const setupProject: typeof global.setupProject; const newProject: typeof global.newProject; const selectNoProject: typeof global.selectNoProject; const updateTabBarVisibility: typeof global.updateTabBarVisibility; const updateProjectResolution: typeof global.updateProjectResolution; const setStartScreen: typeof global.setStartScreen; const showUnsavedWorkDialog: typeof global.showUnsavedWorkDialog; interface BarItemRegistry { project_window: Action; close_project: Action; duplicate_project: Action; convert_project: Action; switch_tabs: Action; tab_overview: Action; } } export {};