UNPKG

@promptbook/google

Version:

Promptbook: Turn your company's scattered knowledge into AI ready books

27 lines (26 loc) 767 B
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. * * @private utility of `<Chat/>` component */ export declare function getChatMessageTimingDisplay(message: ChatMessage): ChatMessageTimingDisplay | null;