text: /** @typedef {import('@loaders.gl/loader-utils').LoaderObject} LoaderObject */
  import {VERSION} from './lib/utils/version';
  import parseGLBSync from './lib/parsers/parse-glb';
  
  /**
   * GLB Loader -
   * GLB is the binary container format for GLTF
   * @type {LoaderObject}
   */
  export const GLBLoader = {
    name: 'GLB',
    id: 'glb',
    module: 'gltf',
    version: VERSION,
    extensions: ['glb'],
    mimeTypes: ['model/gltf-binary'],
    binary: true,
    parse: async (arrayBuffer, options) => parseSync(arrayBuffer, options),
    parseSync,
    options: {
      glb: {
        strict: false // Enables deprecated XVIZ support (illegal CHUNK formats)
      }
    }
  };
  
  function parseSync(arrayBuffer, options) {
    const {byteOffset = 0} = options;
    const glb = {};
    parseGLBSync(glb, arrayBuffer, byteOffset, options);
    return glb;
  }
  