UNPKG

@promptbook/templates

Version:

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

31 lines (30 loc) 1.21 kB
import type { ChatMessage } from '../../types/ChatMessage'; import type { ChatParticipant } from '../../types/ChatParticipant'; /** * Class name that gives the PDF renderer the same root styles as the standalone HTML document body. * * @private Internal helper shared by HTML and PDF chat exports. */ export declare const CHAT_HTML_EXPORT_RENDER_ROOT_CLASS_NAME = "chat-html-export-render-root"; /** * Builds the standalone HTML chat export document shared by HTML downloads and PDF rendering. * * @private Internal helper shared by HTML and PDF chat exports. */ export declare function buildChatHtml(title: string, messages: ReadonlyArray<ChatMessage>, participants: ReadonlyArray<ChatParticipant>): string; /** * HTML export plugin * * @public exported from `@promptbook/components` */ export declare const htmlSaveFormatDefinition: { readonly formatName: "html"; readonly label: "HTML"; readonly getContent: ({ title, messages, participants }: { readonly title: string; readonly messages: readonly ChatMessage[]; readonly participants: readonly ChatParticipant[]; }) => string; readonly mimeType: "text/html"; readonly fileExtension: "html"; };