/** * djb2 hash algorithm - simple and effective string hash function * @param str - String to hash * @returns 32-bit unsigned integer hash */ export declare const hashString: (str: string) => number; /** * Get partition index from a key using consistent hashing * Handles negative modulo correctly and ensures result is in [0, numPartitions) * * @param key - The shard key * @param numPartitions - Number of partitions * @returns Partition index in range [0, numPartitions) */ export declare const getPartitionIndex: (key: string, numPartitions: number) => number;