export declare const CURRENT_VERSION = 11; export declare const HDC_SEED = 322420463; /** * Morton Order calculation for spatial sorting */ export declare function getMorton(x: number, y: number): number; /** * Packs 8-bit image data into 4-bit packed data */ export declare function pack4Bit(data: Uint8Array): Uint8Array; /** * Unpacks 4-bit data back to 8-bit image data */ export declare function unpack4Bit(packed: Uint8Array, width: number, height: number): Uint8Array; /** * Columnarizes point data for efficient storage and transfer */ export declare function columnarize(points: any[], tree: any, width: number, height: number, useHDC?: boolean): { x: Uint16Array; y: Uint16Array; a: Int16Array; s: Uint8Array; d: any; hdc: number; t: any; }; /** * Columnarizes point data with COMPACT 32-bit descriptors (XOR folding) * Reduces descriptor storage by 50% with minimal accuracy loss */ export declare function columnarizeCompact(points: any[], tree: any, width: number, height: number): { x: Uint16Array; y: Uint16Array; a: Int16Array; s: Uint8Array; d: Uint32Array; compact: number; t: any; }; /** * Compacts hierarchical clustering tree into a minimal array structure */ export declare function compactTree(node: any): any; /** * Expands a compacted tree back into an object structure */ export declare function expandTree(node: any): any; /** * Deserializes and normalizes .taar data from a buffer */ export declare function decodeTaar(buffer: ArrayBuffer | Uint8Array): { version: any; dataList: any; }; /** * Serializes target data into a .taar binary buffer */ export declare function encodeTaar(dataList: any[]): Uint8Array;