/** Key order for descending pages, so no page needs a separate reverse pass. */
export declare function compareKeysReversed(a: string | number, b: string | number): number;
/**
 * Finds the correct insert position for a value in a sorted array using binary search
 * @param sortedArray The sorted array to search in
 * @param value The value to find the position for
 * @param compareFn Comparison function to use for ordering
 * @returns The index where the value should be inserted to maintain order
 */
export declare function findInsertPositionInArray<T>(sortedArray: Array<T>, value: T, compareFn: (a: T, b: T) => number): number;
