/** * @dev Depth bands encoding/decoding functions */ /** * Encode depth bands data into two uint256 slots * @param totalDepthUsd Total depth in USD (must fit in uint32) * @param bandPercentagesBps Array of 30 band percentages in basis points * @returns Two slots as bigints */ export declare function encodeDepthBands(totalDepthUsd: number, bandPercentagesBps: number[]): { slot1: bigint; slot2: bigint; }; /** * Decode depth bands from two uint256 slots * @param slot1 First slot containing totalDepthUsd and bands 0-13 * @param slot2 Second slot containing bands 14-29 * @returns Total depth and array of band percentages */ export declare function decodeDepthBands(slot1: bigint, slot2: bigint): { totalDepthUsd: number; bands: number[]; }; /** * Encode depth bands mapping (global offsets for all pairs) * @param bands Array of 30 band offset values in ppm * @returns Two slots as bigints */ export declare function encodeDepthBandsMapping(bands: number[]): { slot1: bigint; slot2: bigint; }; /** * Decode depth bands mapping from two uint256 slots * @param slot1 First slot containing bands 0-13 (starting at bit 32, first 32 bits unused) * @param slot2 Second slot containing bands 14-29 * @returns Array of band offset values in ppm */ export declare function decodeDepthBandsMapping(slot1: bigint, slot2: bigint): number[];