type Pair = [bigint, bigint]; /** The CityHash 1.0.2 checksum used by ClickHouse native compression frames. */ export declare function cityHash128(bytes: Uint8Array): Pair; export declare const MAX_COMPRESSED_BLOCK_SIZE = 1073741824; export declare const MAX_DECOMPRESSED_BLOCK_SIZE = 1073741824; /** LZ4 block sequences. Validate all lengths before allocating the output buffer. */ export declare function decodeLz4Block(input: Uint8Array, size: number): Uint8Array; /** A valid literal-only LZ4 block. */ export declare function encodeLz4Literals(input: Uint8Array): Uint8Array; export declare class ClickHouseCompressionError extends Error { readonly code: number; constructor(code: number, message: string); } /** ClickHouse compressed frame, including its sixteen-byte checksum. * ICompressionCodec.cpp:62–69,102–116 (SHA2562cfbdbd7…) writes the9-byte header. * CompressedReadBufferBase.cpp:193–194,255–256 (SHA2566f5af3a8…) reads low/high * little-endian checksum words and verifies the complete header+payload before decompressing. */ export declare function encodeFrame(input: Uint8Array, method?: 0x82 | 0x02): Uint8Array; /** Decode one frame; undefined means the input has not yet supplied the whole frame. * Sizes are validated from the header before waiting for its body, and the checksum * precedes decompression. bytesRead allows the caller to retain subsequent frames. */ export declare function decodeFrame(input: Uint8Array): { data: Uint8Array; bytesRead: number; } | undefined; export {};