/** * ISO-string based date calculations without timezone handling. * All operations work on local date/time values, ignoring timezone offsets. */ export type DurationUnit = "seconds" | "minutes" | "hours" | "days" | "weeks" | "months" | "years"; /** * Parses an ISO string to a Date object. * Accepts formats like "2024-01-15" or "2024-01-15T14:30:00". */ export declare function parseISODate(isoString: string): Date; /** * Formats a Date to ISO string (date only: YYYY-MM-DD). */ export declare function toISODateString(date: Date): string; /** * Formats a Date to ISO string (datetime: YYYY-MM-DDTHH:mm:ss). */ export declare function toISODateTimeString(date: Date): string; /** * Adds a duration to a date. */ export declare function addDuration(date: Date | string, amount: number, unit: DurationUnit): Date; /** * Subtracts a duration from a date. */ export declare function subDuration(date: Date | string, amount: number, unit: DurationUnit): Date; /** * Calculates the difference between two dates in the specified unit. */ export declare function dateDiff(dateLeft: Date | string, dateRight: Date | string, unit: DurationUnit): number; /** * Gets the start of a time period. */ export declare function startOf(date: Date | string, unit: "day" | "week" | "month" | "year"): Date; /** * Gets the end of a time period. */ export declare function endOf(date: Date | string, unit: "day" | "week" | "month" | "year"): Date; //# sourceMappingURL=isoDate.d.ts.map