export type DataType = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array; export type PlyProperty = { /** * - E.g. 'float'. */ type: string; /** * - E.g. 'x', 'y', 'z', 'f_dc_0' etc. */ name: string; /** * - Data type, e.g. instance of Float32Array. */ storage: DataType; /** * - BYTES_PER_ELEMENT of given data type. */ byteSize: number; }; export type PlyElement = { /** * - E.g. 'vertex'. */ name: string; /** * - Given count. */ count: number; /** * - The properties. */ properties: PlyProperty[]; }; export class PlyParser { /** * @param {import('../../platform/graphics/graphics-device.js').GraphicsDevice} device - The graphics device. * @param {import('../asset/asset-registry.js').AssetRegistry} assets - The asset registry. * @param {number} maxRetries - Maximum amount of retries. */ constructor(device: import("../../platform/graphics/graphics-device.js").GraphicsDevice, assets: import("../asset/asset-registry.js").AssetRegistry, maxRetries: number); /** @type {import('../../platform/graphics/graphics-device.js').GraphicsDevice} */ device: import("../../platform/graphics/graphics-device.js").GraphicsDevice; /** @type {import('../asset/asset-registry.js').AssetRegistry} */ assets: import("../asset/asset-registry.js").AssetRegistry; /** @type {number} */ maxRetries: number; /** * @param {object} url - The URL of the resource to load. * @param {string} url.load - The URL to use for loading the resource. * @param {string} url.original - The original URL useful for identifying the resource type. * @param {import('../handlers/handler.js').ResourceHandlerCallback} callback - The callback used when * the resource is loaded or an error occurs. * @param {import('../asset/asset.js').Asset} asset - Container asset. */ load(url: { load: string; original: string; }, callback: import("../handlers/handler.js").ResourceHandlerCallback, asset: import("../asset/asset.js").Asset): Promise; /** * @param {string} url - The URL. * @param {GSplatResource} data - The data. * @returns {GSplatResource} Return the data. */ open(url: string, data: GSplatResource): GSplatResource; } import { GSplatResource } from './gsplat-resource.js';