/** * Creates a mask value for a specified bit position. * @param bitPosition The position of the bit to set, starting from 1 for the least significant bit. * @returns A mask value with a `1` bit set at the specified position. * @example * ```typescript * const mask = createMask(3); * // ^ 0b100 * const mask = createMask(1); * // ^ 0b1 * const mask = createMask(0); * // ^ -0b10000000000000000000000000000000 (-2147483648) * ``` */ export declare const createBinaryMask: (bitPosition: number) => number; /** * Applies a mask value to a binary flags value. * @param flags The input binary flags value. * @param mask The mask value to apply to the input flags value. * @returns A modified binary flags value that includes only the bits that are set in the mask value. * @example * ```typescript * const binaryFlags = 0b11110; * const mask = 0b10101; * const maskedFlags = applyBinaryMask(binaryFlags, mask); * // maskedFlags === 0b10100 * ``` */ export declare const applyBinaryMask: (flags: number, mask: number) => number;