import type { SortChunk } from '.'; /** * @param chunk - chunk information needed to start sorting * @returns - output file that it created */ export declare function sortChunk(chunk: SortChunk): Promise; /** * A Key is a 16 byte buffer that contains a uint64 id split into lo and hi. * The last 8 bytes contains the u32 offset and u32 length */ export interface Key { lo: number; hi: number; offset: number; length: number; } /** * @param buffer - buffer containing an encoded list of keys * @returns - decoded list of keys */ export declare function bufferToKeys(buffer: Buffer): Key[]; /** * @param keys - list of keys * @returns - buffer containing an encoded list of keys */ export declare function keysToBuffer(keys: Key[]): Buffer; /** * @param a - key A * @param b - key B * @returns - ordered answer between A and B */ export declare function keySort(a: Key, b: Key): -1 | 0 | 1; //# sourceMappingURL=sortChunk.d.ts.map