mono/packages/ui/dist-lib/utils/textUtils.d.ts
babayaga 7f63b07df5 lib
2026-01-20 12:14:45 +01:00

11 lines
414 B
TypeScript

/**
* Formats a date string to a relative time (e.g. "5m ago", "2h ago", "3d ago")
* if less than 7 days, otherwise returns a short date (e.g. "Oct 24").
*/
export declare const formatDate: (dateStr?: string) => string;
/**
* Checks if a title string looks like a filename.
* Used to hide titles that aren't meaningful user descriptions.
*/
export declare const isLikelyFilename: (title: string) => boolean;