export interface CoverFetchResult { success: boolean; localPath?: string; imageUrl?: string; error?: string; } /** * 根据标题获取封面图片 * @param title 文章标题 * @param options 配置选项 * @returns 封面图片本地路径 */ export declare function fetchCoverByTitle(title: string, options?: { headless?: boolean; timeout?: number; outputDir?: string; }): Promise; /** * 清理临时封面文件 */ export declare function cleanupCoverFile(localPath: string | undefined): Promise; /** * 下载远程封面图片到本地临时目录 * @param coverUrl 远程图片 URL * @param options 配置选项 * @returns 本地临时文件路径 */ export declare function downloadCoverUrl(coverUrl: string, options?: { timeout?: number; outputDir?: string; }): Promise;