import { Progress } from "../Progress"; /** * Generates the ranks of the values from highest to lowest. If one value is negative, it will be represented as `-1`. * * This function aims to resemble `argsort(argsort(-x))` of NumPy and `rank(-x)-1` of R (but filtering negative values) */ export declare const rank: (values: number[] | Uint32Array) => number[]; /** Maps the values from one array to another, using the given ranks and function */ export declare const remap: (fn: (value: From, oldIndex: number) => To, from: From[], ranks: number[], progress?: Progress) => To[];