import { ManipulateType } from 'dayjs'; import { ISO8601Duration } from '../types/plans.types'; export declare const defaultDateFormat = "YYYY-MM-DD"; export declare const defaultDateTimeFormat = "YYYY-MM-DDTHH:mm:ss"; export declare const timestampDateFormat = "YYYY-MM-DD[T]HH:mm:ss"; export declare const altDatetimeFormat = "YYYY-MM-DDTHH:mm:ss.SSSSSS"; export declare const displayDateFormat = "MMM DD, YYYY"; export declare const setTimeOfDay: (date: string | null | undefined, time: "SOD" | "EOD", format?: string) => string | null; export declare const getDateForDuration: (isoDuration: ISO8601Duration, anchorDate: string | null, format?: string) => string; export declare const getPreviousMonthFirstDate: (count: number, format?: string, timeOfDay?: "SOD" | "EOD") => string | null; /** * Calculates a future date based on the given parameters. * * @param {number} value - The number of units to subtract from the anchor date. * @param {ManipulateType} unit - The unit of time to subtract (e.g., 'day', 'month', 'year'). * @param {string | null | undefined} [anchorDate] - The reference date for the calculation. * - If undefined: Uses the current date (today) as the anchor. * - If null: The function will return null. * - If a valid date string: Uses this date as the anchor. * @param {string} [format] - The format string for the output date. * @param {'SOD' | 'EOD'} [timeOfDay] - Specifies whether to set the time to Start of Day (SOD) or End of Day (EOD). * * @returns {string | null} * - A formatted date string representing the calculated previous date. * - Null if the anchorDate parameter is explicitly set to null. */ export declare const getNextDate: (value: number, unit: ManipulateType, anchorDate?: string | null, format?: string, timeOfDay?: "SOD" | "EOD") => string | null; export declare const getTodayDate: (format?: string, timeOfDay?: "SOD" | "EOD") => string; /** * Converts a UTC timestamp string to a human-readable string in the user's * local timezone, formatted in 12-hour AM/PM format. * * @param timestamp - A UTC datetime string (e.g. "2025-07-22 13:12:09.625743") * @returns Formatted datetime string in local timezone (e.g. "July 22, 2025 01:12:09 PM") */ export declare function formatToLocalTime(timestamp?: string | null): string;