import { type MeshCardLayout, type VertexLayoutProjection } from '@forgeax/engine-geometry'; import { type Result, type VertexAttributeMap } from '@forgeax/engine-types'; import { MeshBinAssetError } from '../errors/asset'; export interface UnpackedMeshBin { readonly version: 4 | 5; readonly projection: VertexLayoutProjection; readonly vertices: Float32Array; readonly attributes: VertexAttributeMap; readonly indices?: Uint16Array | Uint32Array; readonly submeshes: ReadonlyArray>; readonly cardLayout?: MeshCardLayout; readonly materialSlots: readonly { readonly slotName: string; readonly sourceKey?: string; readonly defaultMaterialRef?: number; }[]; readonly aabb?: Float32Array; readonly morphTargets?: ReadonlyArray>; readonly morphWeights?: Float32Array; /** Lower-detail mesh references encoded as indexes into the enclosing pack refs table. */ readonly lods?: readonly { readonly meshRef: number; readonly screenCoverage: number; }[]; readonly lodHysteresis?: number; } export declare function unpackMeshBin(bytes: Uint8Array, sourceKey: string): Result; //# sourceMappingURL=mesh-bin.d.ts.map