export type DecodedTexture = { width: number; height: number; data: Uint8Array; }; /** * Decodes the subset of DDS actually present in the Bistro archive: BC1/DXT1 * (base color, with punch-through alpha), BC3/DXT5 (packed specular/ORM), and * BC5/ATI2 (DirectX tangent-space normals, X/Y only). Anything else fails * loudly so an unrecognized compression format becomes an explicit * unsupported-material receipt rather than a silently wrong texture. */ export declare function decodeDds(buffer: Buffer): DecodedTexture; /** Decodes uncompressed truecolor TGA (image types 2 and 10), 24 or 32 bpp. */ export declare function decodeTga(buffer: Buffer): DecodedTexture; /** DirectX (Y-down) tangent-space normal -> glTF/OpenGL (Y-up) normal, reconstructing Z. */ export declare function directXNormalToGlNormal(source: DecodedTexture): DecodedTexture; /** Resamples to a bounded resolution and encodes as PNG, keeping detail GLBs within the package cap. */ export declare function encodeBoundedPng(texture: DecodedTexture, maxDimension: number): Promise;