/** * (To be filled) */ export declare class WeightedRandomSelector { private readonly candidateList; private candidateCount; private totalProbabiligyWeight; constructor(); /** * Adds one element with provided weight of probability. * @param element * @param probabilityWeight * @chainable */ push(element: T, probabilityWeight: number): WeightedRandomSelector; /** * Clears all elements. * @chainable */ clear(): WeightedRandomSelector; /** * Returns one element randomly. * The probability for each element is: * (probability weight of the element) / (total probability weight) */ get(): T; }