@promptbook/templates
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
14 lines (13 loc) • 713 B
TypeScript
import type { ChatMessage } from '../../types/ChatMessage';
import type { ChatParticipant } from '../../types/ChatParticipant';
/**
* Builds a PDF from the same standalone HTML document used by the HTML chat download.
*
* @param title - Title used in the PDF heading and metadata.
* @param messages - Messages that should be included in the PDF export.
* @param participants - Participant metadata used by the HTML chat export.
* @returns Binary data for the generated PDF file.
*
* @private Internal helper used by `pdfSaveFormatDefinition`.
*/
export declare function buildChatPdf(title: string, messages: ReadonlyArray<ChatMessage>, participants: ReadonlyArray<ChatParticipant>): Promise<Uint8Array>;