// 项目内补的最小 turndown 类型声明(社区 @types/turndown 不维护)。 // 只覆盖 webfetch.ts 用到的两个 API:constructor + turndown(html)。 declare module 'turndown' { export interface TurndownOptions { headingStyle?: 'setext' | 'atx'; hr?: string; bulletListMarker?: '-' | '+' | '*'; codeBlockStyle?: 'indented' | 'fenced'; emDelimiter?: '_' | '*'; strongDelimiter?: '__' | '**'; linkStyle?: 'inlined' | 'referenced'; linkReferenceStyle?: 'full' | 'collapsed' | 'shortcut'; } export default class TurndownService { constructor(options?: TurndownOptions); turndown(html: string): string; use(plugin: unknown): this; addRule(name: string, rule: unknown): this; keep(filter: unknown): this; remove(filter: unknown): this; } }