import type { ArrayOf, Temporal } from "../types.js";
/**
 * Returns the closest datetime object to the given datetime object from the passed array.
 * @param dateTimeToCompare the date to compare with
 * @param dateTimes array of datetime objects
 * @returns the closest datetime object
 */
export declare function closestTo<DateTime extends Temporal.Instant | Temporal.ZonedDateTime | Temporal.PlainDate | Temporal.PlainTime | Temporal.PlainDateTime | Temporal.PlainYearMonth>(dateTimeToCompare: DateTime, dateTimes: ArrayOf<DateTime>): DateTime;
//# sourceMappingURL=closestTo.d.ts.map