/**
 * Multiply number of elements in Array by weight value, and return random element from it.
 */
export declare const drawRandomlyWeightedItem: <T extends {
    weight: number;
}>(collection: T[]) => T;
/**
 * Encode Base64-encoded ASCII string
 * https://developer.mozilla.org/en-US/docs/Web/API/btoa
 */
export declare const decode: <T>(value: T) => string;
/**
 * Decode Base64-encoded ASCII string
 * https://developer.mozilla.org/en-US/docs/Web/API/atob
 */
export declare const encode: <T>(value: string) => T;
//# sourceMappingURL=helpers.d.ts.map