import type { Environment } from './Environment'; export interface BufferLocation { start: number; size: number; } /** * a format representing an env file and where the various parts are located in the buffer */ export interface EnvFormat { /** * size of the specular environment cube */ size: number; /** * number of mip levels of the textures */ mipLevels: number; /** * is the data compressed (affects how it is packed / unpacked) */ compress: boolean; /** * the location of the Spherical Harmonic data in the buffer */ sphericalHarmonics: BufferLocation; /** * location of all the textures and the mip levels within the main buffer * each cube side has an array of textures representing the mip map levels */ sides: { posx: BufferLocation[]; negx: BufferLocation[]; posy: BufferLocation[]; negy: BufferLocation[]; posz: BufferLocation[]; negz: BufferLocation[]; }; } /** * Takes an arraybuffer and unpacks it returning an Environment Object * * @param buffer - the buffer to unpack * @returns a shiny new environment object */ export declare function parseEnv(buffer: ArrayBuffer): Promise; //# sourceMappingURL=parseEnv.d.ts.map