@promptbook/remote-server
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
13 lines (12 loc) • 447 B
TypeScript
/**
* Formats a Date as a locale-aware short time string (e.g. "5:30 PM" or "17:30").
*
* When omitted the browser/OS default locale is used.
*
* @param date - Date to format.
* @param locale - Optional BCP-47 locale string (e.g. `"en"`, `"cs"`).
* @returns Formatted time string such as `"5:30 PM"` or `"17:30"`.
*
* @private utility of `<Chat/>`
*/
export declare function formatToolCallLocalTime(date: Date, locale?: string): string;