/** * CRC32 calculation core (shared between Node.js and browser). * * Implements CRC-32 IEEE 802.3 using the reversed polynomial 0xEDB88320. * * Notes: * - Uses a lazily-initialized 256-entry lookup table. * - Exposes an incremental update API for streaming use cases. */ /** * Update a CRC32 value with a new data chunk. * * The CRC state here is the non-finalized (inverted) form: * - initial state: 0xffffffff * - finalize: xor with 0xffffffff */ export declare function crc32UpdateJS(crc: number, data: Uint8Array): number; /** * Finalize CRC32 calculation. */ export declare function crc32Finalize(crc: number): number; /** * Compute CRC32 for the full input using the JS table implementation. */ export declare function crc32JS(data: Uint8Array): number; /** * Single-byte CRC32 update for ZipCrypto key derivation. * This uses the non-inverted form (raw table lookup). * * @param crc - Current CRC value (non-inverted) * @param byte - Single byte to process * @returns Updated CRC value */ export declare function crc32UpdateByte(crc: number, byte: number): number;