UNPKG

@promptbook/remote-client

Version:

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

31 lines (30 loc) 939 B
import 'moment/locale/cs'; import type { ChatMessage } from '../types/ChatMessage'; /** * Display-ready timestamp values for a chat message. * * @private utility of `<Chat/>` component */ export type ChatMessageTimingDisplay = { /** * Short, UI-friendly time label (localized). */ readonly timeLabel: string; /** * Full timestamp label suitable for tooltips or exports. */ readonly fullLabel: string; /** * Optional duration label for agent message generation. */ readonly durationLabel?: string; }; /** * Builds display-ready timestamp and duration labels for a chat message. * * @param message - Message with optional timestamp metadata. * @param locale - Optional moment locale used for formatting. * * @private utility of `<Chat/>` component */ export declare function getChatMessageTimingDisplay(message: ChatMessage, locale?: string): ChatMessageTimingDisplay | null;