import type Mesh from "../../../../geometry/Mesh.js"; import type PanoramicTilePyramid from "../../../../widgets/PanoramicViewer/support/PanoramicTilePyramid.js"; import type { AbortOptions } from "../../../../core/promiseUtils.js"; /** * @internal * @internal */ export interface LoadOptimizedImageMeshOptions { /** @internal */ url: string; /** @internal */ horizonPitch: number; /** @internal */ horizonYaw: number; /** @internal */ horizonRoll: number; } /** * Loads an optimized image mesh for panoramic viewing. This involves loading the raster data, creating an image pyramid based on the raster and the specified horizon orientation, and then loading the corresponding meshes for the low-resolution tiles of the pyramid. * * @param properties - The properties required to load the optimized image mesh, including the URL of the raster and the horizon orientation (pitch, yaw, roll). * @param options - Optional abort options to cancel the loading process if needed. * @returns A promise that resolves to an object containing the image pyramid, the loaded mesh or meshes, and optionally the keys of the tiles used. * @internal * @internal */ export function loadOptimizedImageMesh(properties: LoadOptimizedImageMeshOptions, options?: AbortOptions): Promise<{ imagePyramid: PanoramicTilePyramid; meshOrMeshes: Mesh | Mesh[]; tileKeys?: string[]; }>;