// 提取的内容元数据 export interface ExtractedContent { title: string; url: string; content: string; markdown: string; excerpt?: string; } // 提取选项 export interface ExtractOptions { includeTitle: boolean; includeUrl: boolean; simplifyMode: boolean; } // 用户设置 export interface UserSettings { includeTitle: boolean; includeUrl: boolean; simplifyMode: boolean; imageMode: 'url' | 'base64' | 'download'; } // Chrome消息类型 export interface ChromeMessage { action: 'extract' | 'extractSelection' | 'preview' | 'copy' | 'download'; options?: ExtractOptions; } // 内容脚本响应 export interface ContentScriptResponse { success: boolean; data?: ExtractedContent; error?: string; }