/** * Temporal expression resolver for search queries. * * Parses relative time expressions ("N days ago", "last Saturday", etc.) * into absolute date ranges that can be used to filter search candidates. * * Pure deterministic logic — no LLM calls. */ export interface TemporalRange { /** Start of range (inclusive) */ start: Date; /** End of range (inclusive) */ end: Date; /** Confidence level for the resolution */ confidence: 'high' | 'medium' | 'low'; /** The matched temporal expression */ matched: string; } /** * Resolve a relative temporal expression in a query to an absolute date range. * Returns null if no temporal expression is found. * * @param query The search query that may contain temporal expressions * @param referenceDate The anchor date (typically the query/session date) */ export declare function resolveTemporalRange(query: string, referenceDate: Date | string | number): TemporalRange | null; /** * Strip temporal expressions from a query string so downstream BM25/vector * search focuses on the content keywords rather than date noise. * * Example: "jewelry from my aunt last Saturday" → "jewelry from my aunt" */ export declare function stripTemporalExpressions(query: string): string; /** * Check whether a date falls within a temporal range. */ export declare function inTemporalRange(date: Date | string | number, range: TemporalRange): boolean; //# sourceMappingURL=temporal-resolver.d.ts.map