import type { BackendType } from './backends/types.js'; import type { HistoryMessage } from './history-message-transform.js'; export type SessionExportFormat = 'markdown' | 'html'; export interface SessionExportMetadata { sessionId: string; backend: BackendType; title?: string; workDir?: string; lastModified?: number; exportedAt?: string; } export interface SessionExportResult { format: SessionExportFormat; filename: string; contentType: string; content: string; } export declare function isSessionExportFormat(value: unknown): value is SessionExportFormat; export declare function formatSessionExport(metadata: SessionExportMetadata, messages: HistoryMessage[], format: SessionExportFormat): SessionExportResult;