/** * factorial `n!` * * @example * * factorial(3) * // => 3 * 2 * 1 = 6 */ export declare function factorial(n: number): number; /** * count permutations `P(n,k) n <= k` * * @example * * permutations(3, 2) * // => 3! / (3 - 2)! = 6 */ export declare function permutations(n: number, k: number): number; /** * count combinations `C(n,k) n <= k` * * @example * * combinations(3, 2) * // => 3! / (2! * (3 - 2)!) = 3 */ export declare function combinations(n: number, k: number): number;