/** * Packs a value into the stats array using a specific bit width. * Equivalent to C++ `set_compressed_integer`. * * @param stats The stats array (number[] representing int16s) * @param startIndex The index in the stats array where the packed region begins (e.g. STAT_AMMO_INFO_START) * @param id The ID of the item to set (0-based index within the packed region) * @param count The value to set * @param bitsPerValue Number of bits per item (e.g. 9 for ammo, 2 for powerups) */ export declare function setCompressedInteger(stats: number[], startIndex: number, id: number, count: number, bitsPerValue: number): void; /** * Unpacks a value from the stats array. * Equivalent to C++ `get_compressed_integer`. */ export declare function getCompressedInteger(stats: number[], startIndex: number, id: number, bitsPerValue: number): number; //# sourceMappingURL=bitpack.d.ts.map