/** * 笔记内容获取工具(支持图片) */ import type { Page } from 'playwright'; import type { NoteContentWithImages } from '../types'; /** * 笔记内容获取选项 */ export interface NoteContentOptions { /** 是否包含图片 */ includeImages?: boolean; /** 是否包含详细数据(标签、点赞、收藏、评论) */ includeData?: boolean; /** 是否压缩图片 */ compressImages?: boolean; /** 图片质量 (50-95) */ imageQuality?: number; /** 最大图片尺寸(像素) */ maxImageSize?: number; } /** * 获取笔记的完整内容(包含文本和图片) * * @param page Playwright Page 实例 * @param noteUrl 笔记 URL * @param options 获取选项 * @returns 笔记完整内容(包含 Base64 图片) * * @example * ```typescript * const note = await getNoteContent(page, 'https://www.xiaohongshu.com/explore/xxx', { * includeImages: true, * compressImages: true, * imageQuality: 75 * }); * logger.debug(note.title); * logger.debug(note.images.length); // 图片数量 * ``` */ export declare function getNoteContent(page: Page, noteUrl: string, options?: NoteContentOptions): Promise; //# sourceMappingURL=noteContent.d.ts.map