import type { DateRangeValue, PredefinedRange } from './types'; /** Direction the stepper arrows move the range: `-1` back, `1` forward. */ export type StepDirection = 1 | -1; /** * Computes the next range when the user clicks a stepper arrow. * * Resolution order for the active `range`: * 1. `range.step(value, direction)` — full override (e.g. fiscal calendar). * 2. `range.stepUnit` — shift both endpoints by one unit and snap to the * unit's start/end (so "This Week" becomes the previous/next full week). * 3. Default — shift the whole window by its own length: `(spanDays + 1)` * days. This covers single days (±1), trailing windows ("Last 7 Days" ±7), * and custom ranges. * * Returns the value unchanged when either endpoint is `null` (nothing to step). */ export declare function stepRange(value: DateRangeValue, direction: StepDirection, range?: PredefinedRange): DateRangeValue;