/** * Options for updating number values with step constraints. */ export interface NumberUpdateOptions { /** Step increment/decrement amount */ step?: string | null; /** Minimum allowed value */ min?: string | null; /** Maximum allowed value */ max?: string | null; } /** * Updates a number value according to step constraints and min/max bounds. * * Logic (compliant with Google Chrome behavior): * 0. Valid output range: min <= value <= max, and (value - min) is a multiple of step, or value equals min/max * 1. If max < min, direction up goes to min (max value), direction down goes to max (min value) * 2. If value is out of range or not on step boundary, round to nearest step in the direction and finish * 3. Otherwise, increment/decrement by step * * @param currentValue Current value as string * @param direction Direction: 1 for increment, -1 for decrement * @param options The update options * @returns The new value as string */ export declare function updateNumberValue(currentValue: string, direction: 1 | -1, options: NumberUpdateOptions): string;