export declare function tokenize(value?: string): string[]; export declare function stripAccents(value?: string): string; export declare function uniqueTerms(values: string[]): string[]; export declare function host(value?: string): string; export declare function canonicalUrl(value?: string): string; export declare function normalizeDate(value: string): string; /** * Local-timezone YYYY-MM-DD — the user's calendar day. The radar runs on * calendar days (one brief record per date), so the day must roll over at * local midnight, not UTC (a UTC date would file the record 3–7h early for * the Americas). DST-safe: callers shift the Date first, then format. */ export declare function localDateString(d?: Date): string; /** * Strict YYYY-MM-DD calendar check: rejects the shape-valid but impossible * dates ("2026-13-45", "2026-02-30") that a plain regex lets through. */ export declare function isValidCalendarDate(value: string): boolean; export declare function daysSince(value: string, now?: number): number | null; /** * Term-overlap similarity with phrase bonus. * * The radar is keyless: this IS the semantic signal, so multi-word concepts * matter as much as single terms. Bigram phrases ("open source", "café * especial") are matched as units — adjacency preserves meaning that loose * token overlap destroys. Terms weigh equally so a lone long generic stem * ("desenvolvimento") cannot dominate; the sqrt normalization keeps it a * bounded 0..1 similarity. */ export declare function lexicalSimilarity(a: string, b: string): number; export declare function clamp(value: number, min: number, max: number): number; //# sourceMappingURL=text.d.ts.map