import type { DateRange } from "../Date.typeutils";
/**
 * In the case where we have:
 * - Mode: "range"
 * - selected: { from: undefined, to: Date } or
 * - selected: { from: Date, to: undefined }
 *
 *
 * RDP returns undefined for newSelection. We need to manually handle these cases.
 */
declare function pickRangeSelection({ newSelection, currentSelection: selected, newDate, caller, }: {
    newSelection: DateRange | undefined;
    currentSelection: DateRange | undefined;
    newDate: Date;
    caller?: "from" | "to" | null;
}): DateRange | undefined;
export { pickRangeSelection };
