/** * Static utility class for wheel animation calculations and helpers. * All methods are static and pure for easy testing. */ export declare class WheelUtils { /** * Calculate exact target angle for a segment with pseudorandom position * @param segmentIndex - Index of winning segment (0-based) * @param totalSegments - Total number of segments * @param betId - UUID to seed random position * @returns Target angle in degrees (0-360) */ static calculateTargetAngle(segmentIndex: number, totalSegments: number, betId: string): number; /** * Generate deceleration frame offsets using exponential decay * Uses the physics formula: v(t) = v₀ × e^(-k×t) * * @param initialVelocityDpf - Initial velocity in degrees per frame * @param decayConstant - Decay rate constant k (higher = faster decay) * @returns Array of position offsets from deceleration start point * - Total distance is the last element * - Number of frames emerges naturally from the decay */ static generateDecelerationOffsets(initialVelocityDpf: number, decayConstant: number): number[]; /** * Calculate the angle where deceleration should start * @param currentAngle - Current wheel angle * @param targetAngle - Final target angle * @param decelerationDistance - Total degrees to decelerate over * @returns Angle at which to start decelerating */ static calculateDecelerationStartAngle(currentAngle: number, targetAngle: number, decelerationDistance: number): number; /** * Hash UUID to get pseudorandom offset within a segment * @param uuid - Bet ID (UUID) * @param segmentSizeDegrees - Size of segment in degrees * @returns Offset in degrees within the segment (0 to segmentSizeDegrees) * @private Internal helper method */ private static hashUuidToSegmentOffset; }