/** * Working hours utilities for business time calculations */ import type { WorkingHoursConfig } from './types.js'; export declare const DEFAULT_WORKING_HOURS: WorkingHoursConfig; /** Check if a date is a configured working day */ export declare function isWorkingDay(date: Date, config?: WorkingHoursConfig): boolean; /** Check if inside working hours (excluding breaks) */ export declare function isWorkingTime(date: Date, config?: WorkingHoursConfig): boolean; /** Move date forward to next working minute */ export declare function nextWorkingTime(date: Date, config?: WorkingHoursConfig): Date; /** Compute working time (ms) between two dates */ export declare function workingTimeBetween(start: Date, end: Date, config?: WorkingHoursConfig): number; /** Advance by working hours amount (simple iterative approach) */ export declare function addWorkingHours(start: Date, hours: number, config?: WorkingHoursConfig): Date; /** * Add working days to a date * @param start - start date * @param days - number of working days to add * @param config - working hours configuration */ export declare function addWorkingDays(start: Date, days: number, config?: WorkingHoursConfig): Date; /** * Subtract working days from a date * @param start - start date * @param days - number of working days to subtract * @param config - working hours configuration */ export declare function subtractWorkingDays(start: Date, days: number, config?: WorkingHoursConfig): Date; /** * Get the next working day from a given date * @param date - start date * @param config - working hours configuration */ export declare function getNextWorkingDay(date: Date, config?: WorkingHoursConfig): Date; /** * Get the previous working day from a given date * @param date - start date * @param config - working hours configuration */ export declare function getPreviousWorkingDay(date: Date, config?: WorkingHoursConfig): Date; /** * Get the number of working days in a month * @param year - year * @param month - month (0-11) * @param config - working hours configuration */ export declare function getWorkingDaysInMonth(year: number, month: number, config?: WorkingHoursConfig): number; /** * Get all working days in a month as an array of dates * @param year - year * @param month - month (0-11) * @param config - working hours configuration */ export declare function getWorkingDaysInMonthArray(year: number, month: number, config?: WorkingHoursConfig): Date[]; /** * Get working days between two dates (inclusive) * @param start - start date * @param end - end date * @param config - working hours configuration */ export declare function workingDaysBetween(start: Date, end: Date, config?: WorkingHoursConfig): number; /** * Check if a date is during work break * @param date - date to check * @param config - working hours configuration */ export declare function isBreakTime(date: Date, config?: WorkingHoursConfig): boolean; /** * Get the start of the work day for a given date * @param date - date to get work start for * @param config - working hours configuration */ export declare function getWorkDayStart(date: Date, config?: WorkingHoursConfig): Date; /** * Get the end of the work day for a given date * @param date - date to get work end for * @param config - working hours configuration */ export declare function getWorkDayEnd(date: Date, config?: WorkingHoursConfig): Date; /** * Get the total working hours per day (excluding breaks) * @param config - working hours configuration */ export declare function getWorkingHoursPerDay(config?: WorkingHoursConfig): number; //# sourceMappingURL=workingHours.d.ts.map