import type * as BABYLON from "@babylonjs/core"; import type { Base } from "./base-inputs"; /** * Parameters for engine-level import and export: the objects to write, the target format, and the * settings applied when reading a file back into the scene. */ export declare namespace BabylonIO { /** * Feeds `babylon.io.exportGLB` with the file name and whether to leave out the skybox and * ground this library adds. */ class ExportSceneGlbDto { constructor(fileName?: string, discardSkyboxAndGrid?: boolean, unit?: Base.unitOfLengthEnum); /** * Name of the downloaded glb file, without the extension * @default bitbybit-scene */ fileName?: string | undefined; /** * When true, the skybox and ground meshes this library adds are left out of the file * @default false */ discardSkyboxAndGrid?: boolean | undefined; /** * The unit the scene is modelled in. Given, the file is in metres, glTF's unit, through one * scaled root node; left out, the numbers are written as they are. * @default undefined * @optional true */ unit?: Base.unitOfLengthEnum | undefined; } /** * Feeds `babylon.io.exportGLBBytes` with the nodes to write, whether to leave out the skybox and * ground this library adds, and whether to compress the meshes with Draco. */ class ExportSceneGlbBytesDto { constructor(nodes?: BABYLON.Node[], discardSkyboxAndGrid?: boolean, compressWithDraco?: boolean, unit?: Base.unitOfLengthEnum); /** * The nodes to write; every ancestor of a chosen node is written too so it keeps its place, and when omitted the whole scene is written * @optional true */ nodes?: BABYLON.Node[] | undefined; /** * When true, the skybox and ground meshes this library adds are left out of the file * @default false */ discardSkyboxAndGrid?: boolean | undefined; /** * When true, the mesh geometry is compressed with Draco, which makes the file smaller and slower to open * @default false */ compressWithDraco?: boolean | undefined; /** * The unit the scene is modelled in. Given, the file is in metres, glTF's unit, through one * scaled root node; left out, the numbers are written as they are. * @default undefined * @optional true */ unit?: Base.unitOfLengthEnum | undefined; } /** * Feeds `babylon.io.exportBabylon` with the name of the downloaded `.babylon` file. */ class ExportSceneDto { constructor(fileName?: string); /** * Name of the downloaded file; `.babylon` is added when missing * @default bitbybit-scene */ fileName?: string | undefined; } /** * Feeds `babylon.io.exportMeshToStl` with the mesh to write, with its visible children, and the * file name. */ class ExportMeshToStlDto { constructor(mesh?: BABYLON.Mesh, fileName?: string); /** * The mesh written to the file together with its visible child meshes; lines are left out */ mesh: BABYLON.Mesh; /** * Name of the downloaded STL file * @default bitbybit-mesh */ fileName?: string | undefined; } /** * Feeds `babylon.io.exportMeshesToStl` with the meshes to write into one file and the file * name. */ class ExportMeshesToStlDto { constructor(meshes?: BABYLON.Mesh[], fileName?: string); /** * The meshes written to the file, each with its child meshes; lines are left out */ meshes: BABYLON.Mesh[]; /** * Name of the downloaded STL file * @default bitbybit-mesh */ fileName?: string | undefined; } }