/** * KTX2 header inspection for the scene perf byte rules (P03). Reads only the first 512 bytes: the fixed 80 byte header, * the level index (24 bytes per mip level, up to 15 levels for a 16k texture) and the start of the Data Format * Descriptor, whose colour model tells ETC1S from UASTC. The descriptor sits AFTER the level index, so a short read * cannot tell a mipped UASTC texture from an unknown one. */ export declare const KTX2_HEAD_BYTES = 512; export type Ktx2Info = { pixelWidth: number; pixelHeight: number; layerCount: number; faceCount: number; levelCount: number; vkFormat: number; supercompressionScheme: number; /** `uastc` or `etc1s` for a Basis Universal payload, `raw` for a pre-transcoded GPU format, `unknown` when the DFD is unreadable. */ codec: 'uastc' | 'etc1s' | 'raw' | 'unknown'; }; export declare function isKtx2(bytes: Buffer): boolean; export declare function parseKtx2Info(bytes: Buffer): Ktx2Info | null; /** Levels in a full mip chain down to 1x1. */ export declare function fullMipCount(width: number, height: number): number; /** Width and height of a PNG from its IHDR, or null when the bytes are not a PNG. */ export declare function pngSize(bytes: Buffer): { width: number; height: number; } | null;