type Json = Record; export type GlbImageUse = 'color' | 'data'; export type GlbImage = { index: number; name?: string; mimeType?: string; /** External reference as written in the file, or a `data:` URI. */ uri?: string; /** Bytes of an embedded image. */ embedded?: Buffer; /** How materials sample it. An image no material samples has no uses. */ uses: Set; }; export type GlbPrimitiveInfo = { mesh: number; mode: number; indexed: boolean; /** Vertices (POSITION count); 0 when absent. */ vertices: number; /** Elements drawn: indices when indexed, vertices otherwise. */ elements: number; triangles: number; /** A triangle primitive that cannot draw a single triangle. */ degenerate: boolean; }; export type GlbInspection = { sizeBytes: number; extensionsUsed: string[]; images: GlbImage[]; primitives: GlbPrimitiveInfo[]; /** Triangles one instantiation of the file draws (meshes counted once per node that uses them). */ triangles: number; /** Primitives submitted by one instantiation. */ drawCalls: number; /** SHA-256 of the BIN chunk, when present. */ binSha256?: string; }; export declare function readGlbChunks(buffer: Buffer): { json: Json; binOffset: number; binLength: number; } | null; export declare function inspectGlb(buffer: Buffer): GlbInspection | null; export {};