@promptbook/legacy-documents
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
12 lines (11 loc) • 486 B
TypeScript
/**
* Builds one normalized filename for a chat export download.
*
* @param title - Human-readable chat title.
* @param fileExtension - Output file extension without a leading dot.
* @param date - Export date used in the filename.
* @returns Stable filename suitable for browser downloads and HTTP headers.
*
* @private Internal helper shared by chat export flows.
*/
export declare function createChatExportFilename(title: string, fileExtension: string, date?: Date): string;