UNPKG

@promptbook/vercel

Version:

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

70 lines (69 loc) 2.72 kB
/** * Registry of all built-in chat save plugins * * @public exported from `@promptbook/components` */ export declare const CHAT_SAVE_FORMATS: readonly [{ readonly formatName: "json"; readonly label: "Json"; readonly getContent: ({ messages }: { readonly title: string; readonly messages: readonly import("../types/ChatMessage").ChatMessage[]; readonly participants: readonly import("../types/ChatParticipant").ChatParticipant[]; }) => string; readonly mimeType: "application/json"; readonly fileExtension: "json"; }, { readonly formatName: "txt"; readonly label: "Plain Text"; readonly getContent: ({ messages }: { readonly title: string; readonly messages: readonly import("../types/ChatMessage").ChatMessage[]; readonly participants: readonly import("../types/ChatParticipant").ChatParticipant[]; }) => string; readonly mimeType: "text/plain"; readonly fileExtension: "txt"; }, { readonly formatName: "md"; readonly label: "Markdown"; readonly getContent: ({ messages }: { readonly title: string; readonly messages: readonly import("../types/ChatMessage").ChatMessage[]; readonly participants: readonly import("../types/ChatParticipant").ChatParticipant[]; }) => string; readonly mimeType: "text/markdown"; readonly fileExtension: "md"; }, { readonly formatName: "html"; readonly label: "Html"; readonly getContent: ({ messages }: { readonly title: string; readonly messages: readonly import("../types/ChatMessage").ChatMessage[]; readonly participants: readonly import("../types/ChatParticipant").ChatParticipant[]; }) => string; readonly mimeType: "text/html"; readonly fileExtension: "html"; }, { readonly formatName: "jsx"; readonly label: "React"; readonly getContent: (chatExportData: { readonly title: string; readonly messages: readonly import("../types/ChatMessage").ChatMessage[]; readonly participants: readonly import("../types/ChatParticipant").ChatParticipant[]; }) => string; readonly mimeType: "application/javascript"; readonly fileExtension: "jsx"; }, { readonly formatName: "pdf"; readonly label: "Pdf"; readonly getContent: (chatExportData: { readonly title: string; readonly messages: readonly import("../types/ChatMessage").ChatMessage[]; readonly participants: readonly import("../types/ChatParticipant").ChatParticipant[]; }) => Promise<string>; readonly mimeType: "application/pdf"; readonly fileExtension: "pdf"; }]; /** * Note: [💞] Ignore a discrepancy between file name and entity name */