import type { DateHint } from './intent-router.js'; export type TimeRange = 'day' | 'week' | 'month' | 'year'; export declare function resolveTimeRange(range: TimeRange | undefined, now?: Date): DateHint | undefined; /** * Robust per-result window predicate: is a DATED result provably outside the * requested [fromDate, toDate] window? * * Returns true ONLY when `publishedDate` parses to a real calendar time that * falls before `fromDate` (day start) or after `toDate` (day end). Undated or * unparseable dates return false (kept — conservative, mirrors the pre-existing * "no parseable date -> survive" behaviour). Unparseable bounds are ignored so a * malformed filter never windows results out. * * Keys on parsed calendar time, NOT a string compare: the old * `published_date >= fromDate` form leaked any dated result whose format was not * lexically ISO-ordered (e.g. "Jan 15, 2026", "2026/01/15") — those compared * greater than "2026-06-27" and survived a week window despite being months old. */ export declare function isDatedOutOfWindow(publishedDate: string | undefined, fromDate: string | undefined, toDate: string | undefined): boolean; //# sourceMappingURL=time-range.d.ts.map