/** * Safely convert a number value into number union type. * @param n number value * @param u tuple containing all the values in a number union * @returns value of type union * @note Outputs error to console if incoming number is not part of number union! */ export declare function numberToUnion>(n: number, u: U): (typeof u)[number]; /** * Convert a number value into number union type. * @param n number value * @param u tuple containing all the values in a number union * @returns value of type union or undefined if income number is not part of union * @note Outputs error to console if incoming number is not part of number union! */ export declare function numberToUnionStrict>(n: number, u: U): (typeof u)[number] | undefined;