UNPKG

@promptbook/remote-client

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

38 lines (37 loc) 1.07 kB
/** * Locale-aware date/time labels derived from one tool-call timestamp. * * @private utility of `<Chat/>` */ type ToolCallDateTimeLabels = { /** * Primary local time label shown in chips and clock panels. */ readonly localTimeLabel: string; /** * Local calendar date label shown under the primary time. */ readonly localDateLabel: string; /** * Exact local timestamp label used in detail sections. */ readonly localDateTimeLabel: string; /** * Relative label such as `in 5 minutes` or `2 minutes ago`. */ readonly relativeTimeLabel: string | null; }; /** * Formats one tool-call timestamp into shared locale-aware labels. * * @param date - Timestamp to format. * @param options - Optional locale and relative-time reference point. * @returns Shared labels consumed by tool-call chips and modals. * * @private utility of `<Chat/>` */ export declare function formatToolCallDateTime(date: Date, options?: { locale?: string; currentDate?: Date; }): ToolCallDateTimeLabels; export {};