import { GltfBinInterface } from './GltfBin'; import { GltfJsonInterface } from './GltfJson'; import '@babylonjs/loaders/glTF/2.0/glTFLoader.js'; export interface GlbInterface { arrayBuffer: ArrayBuffer; bin: GltfBinInterface; filename: string; json: GltfJsonInterface; loaded: boolean; getBase64String(): string; getBytes(): Uint8Array; initFromGlbFile(file: File): void; initFromGlbFilePath(filePath: string): void; initFromGltfFiles(files: File[]): void; initFromGltfFilePaths(filePaths: string[]): void; } export default class Glb implements GlbInterface { arrayBuffer: ArrayBuffer; bin: GltfBinInterface; filename: string; json: GltfJsonInterface; loaded: boolean; getBase64String(): string; getBytes(): Uint8Array; initFromGlbFile(file: File): Promise; initFromGlbFilePath(filePath: string): Promise; initFromGltfFiles(files: File[]): Promise; initFromGltfFilePaths(filePaths: string[]): Promise; private alignedLength; private combineBuffersToGlb; private loadBinAndJson; private getBufferFromFileInput; }