import { GUI3DManager, NearMenu, TextBlock, TouchHolographicButton } from "@babylonjs/gui"; import * as BABYLON from "@babylonjs/core"; import type { Context } from "../../../context"; import type * as Inputs from "../../../inputs"; /** * One-call entry points into virtual and augmented reality on a WebXR-capable browser and headset: * an immersive AR session, or a VR session with teleportation over the ground meshes you name. For * finer control, `webXr.base` creates the experience from full options. */ export declare class BabylonWebXRSimple { private readonly context; constructor(context: Context); /** * Starts a default WebXR experience in immersive AR mode, showing the scene over the camera * view of the room on a device that supports it. * @returns The default XR experience * @group scene * @shortname simple immersive ar experience * @disposableOutput true * @example * ```typescript * const xr = await bitbybit.babylon.webXr.simple.createImmersiveARExperience(); * ``` */ createImmersiveARExperience(): Promise; /** * Starts a default WebXR experience in VR with teleportation over the given ground meshes, * enough for simple walkthroughs; nothing is given back. * @param inputs - The meshes the user can teleport onto * @group scene * @shortname simple xr with teleportation * @example * ```typescript * await bitbybit.babylon.webXr.simple.createDefaultXRExperienceWithTeleportation({ groundMeshes: [ground] }); * ``` */ createDefaultXRExperienceWithTeleportation(inputs: Inputs.BabylonWebXR.DefaultWebXRWithTeleportationDto): Promise; /** * Starts a default WebXR experience in VR with teleportation over the given ground meshes, as * `createDefaultXRExperienceWithTeleportation` does, and gives back the experience with the * near menu, button and text it created plus a `dispose` function to end it. * @param inputs - The meshes the user can teleport onto * @returns The experience, its menu parts and a dispose function * @group scene * @shortname simple xr with teleportation return * @disposableOutput true * @example * ```typescript * const session = await bitbybit.babylon.webXr.simple.createDefaultXRExperienceWithTeleportationReturn({ groundMeshes: [ground] }); * session.dispose(); * ``` */ createDefaultXRExperienceWithTeleportationReturn(inputs: Inputs.BabylonWebXR.DefaultWebXRWithTeleportationDto): Promise<{ xr: BABYLON.WebXRDefaultExperience; torusMat: BABYLON.PBRMetallicRoughnessMaterial; manager: GUI3DManager; near: NearMenu; button: TouchHolographicButton; text: TextBlock; dispose: () => void; }>; }