/** * Date parsing utilities for CLI commands. * Supports relative dates (today, yesterday, 7d, 1w, 1m) and ISO formats. */ /** * Parse a date string into a Date object. * Supports: * - Relative dates: "today", "yesterday", "7d", "1w", "1m", "3h" * - ISO dates: "2026-01-27", "2026-01-27T10:00:00Z" * * @param dateStr - Date string to parse * @returns Parsed Date object or null if invalid */ export declare function parseDate(dateStr: string): Date | null; /** * Get the start of day (midnight) for a given date. * * @param date - Date to get start of day for * @returns New Date object set to midnight */ export declare function getStartOfDay(date: Date): Date; /** * Get the start of today (midnight). * * @returns Date object set to today at midnight */ export declare function getStartOfToday(): Date; /** * Get a date representing N hours ago. * * @param hours - Number of hours ago * @returns Date object */ export declare function hoursAgo(hours: number): Date; /** * Format a date for display in CLI output. * * @param date - Date to format * @returns Formatted string (e.g., "Jan 27" or "Jan 27, 2026") */ export declare function formatDateForDisplay(date: Date): string; /** * Format a date range for display. * * @param since - Start date * @param until - End date (optional, defaults to now) * @returns Formatted string describing the range */ export declare function formatDateRange(since: Date, until?: Date): string; //# sourceMappingURL=dateParser.d.ts.map