/// /** * The method is to compress buffer data * @param data - The data to be compressed * @returns If the compressed data is less than the original * length after compression, otherwise return to the original data */ export declare function compressBytes(data: Buffer): Buffer; /** * Decompress data according to a given length * @param data - Data that needs to be decompressed * @param target - The length that the data should have after decompression * @returns Decompressed data */ export declare function decompressBytes(data: Buffer, target: number): Buffer;