/** * Returns the meshopt compression extension of a glTF buffer or buffer view. * * @param {object} gltfObject - The glTF buffer or buffer view. * @returns {object|undefined} The extension object, if present. */ export function getMeshoptCompression(gltfObject: object): object | undefined; /** * Returns whether a buffer holding only uncompressed fallback data for meshopt compressed buffer * views should not be loaded. A fallback buffer without a uri holds no data, unless it is the * binary chunk of a glb, and one with a uri is not downloaded when a decoder is available. * * @param {object} gltfBuffer - The glTF buffer. * @param {number} index - The index of the buffer. * @returns {boolean} True if the buffer should resolve to no data. */ export function skipMeshoptFallbackBuffer(gltfBuffer: object, index: number): boolean; /** * Decodes a buffer view compressed with meshopt. * * @param {object} gltfBufferView - The glTF buffer view. * @param {Promise[]} buffers - The loaded glTF buffers. * @returns {Promise|null} The decoded data, or null if the buffer view is not * compressed, or no decoder is available so its fallback data must be used. */ export function decodeMeshoptBufferView(gltfBufferView: object, buffers: Promise[]): Promise | null;