/** * Finds the index of the most significant bit (MSB) in a 256-bit number. * * Uses binary search to find the MSB in exactly 8 comparisons, regardless of input. * This is a direct port of Uniswap V3's BitMath.sol implementation. * * @param n - The input bigint (expected to be a 256-bit value) * @returns The index of the most significant bit (0-255), or 0 if n is 0 * * @example * mostSignificantBit(0n) // returns 0 * mostSignificantBit(1n) // returns 0 * mostSignificantBit(255n) // returns 7 * mostSignificantBit(256n) // returns 8 */ export declare function mostSignificantBit(n: bigint): number; /** * Finds the index of the least significant bit (LSB) in a 256-bit number. * * Uses binary search to find the LSB in exactly 8 comparisons, regardless of input. * This is a direct port of Uniswap V3's BitMath.sol implementation. * * @param n - The input bigint (expected to be a 256-bit value) * @returns The index of the least significant bit (0-255), or 255 if n is 0 * * @example * leastSignificantBit(0n) // returns 255 * leastSignificantBit(1n) // returns 0 * leastSignificantBit(256n) // returns 8 * leastSignificantBit(512n) // returns 9 */ export declare function leastSignificantBit(n: bigint): number; //# sourceMappingURL=bitMath.helper.d.ts.map