import type { ComPlainDate } from "../PlainDate.js"; import { type WeekDayNumber } from "../constants.js"; /** * Get a function curried with a weekday to jump to * from its plain-date arguments. * * The curried function will return the given date if matching the target weekday. * * @param targetWeekDay ISO weekday number (1-7) starting with Monday * @returns A curried function that operates on plain-dates * * @example * ```ts * // Seeking the first Monday backwards from `date` * const addOneDay = addDays(1); * const subOneWeek = addDays(-7); * const firstMonday = firstWeekDay(WeekDay.MONDAY); * subOneWeek(firstMonday(addOneDay(date))); * ``` */ export declare function firstWeekDay(targetWeekDay: WeekDayNumber): (date: T) => T; //# sourceMappingURL=firstWeekDay.d.ts.map