/** * Web clipper command for converting web pages to markdown. * * @file Implements comprehensive web page to markdown conversion with multiple extraction * strategies * * @category Commands */ import { type WebClipperOptions } from "../core/web-clipper.js"; export interface ClipCliOptions { /** Output file path */ output?: string; /** Output directory for clipped files */ outputDir?: string; /** Output results in JSON format */ json?: boolean; /** Process multiple URLs from a file */ batch?: boolean; /** Custom selectors as comma-separated string */ selectors?: string; /** Custom headers as JSON string */ headers?: string; /** Cookies file path */ cookies?: string; /** Don't follow redirects */ followRedirects?: boolean; /** Include frontmatter */ frontmatter?: boolean; /** Extraction strategy to use */ strategy?: WebClipperOptions["strategy"]; /** How to handle images */ imageStrategy?: WebClipperOptions["imageStrategy"]; /** Directory to save downloaded images */ imageDir?: string; /** Request timeout in milliseconds */ timeout?: number; /** Custom User-Agent string */ userAgent?: string; /** Maximum redirects to follow */ maxRedirects?: number; /** Show detailed output */ verbose?: boolean; /** Show what would be done without doing it */ dryRun?: boolean; } /** * Clip web pages to markdown files. * * @category Commands * * @example * Basic usage * ```typescript * await clipCommand(['https://example.com/article'], { * output: 'article.md', * strategy: 'readability' * }); * ``` * * @example * Batch processing * ```typescript * await clipCommand(['urls.txt'], { * batch: true, * outputDir: './clipped', * downloadImages: true * }); * ``` * * @param urls - URLs to clip or paths to files containing URLs * @param options - Clipping options * * @returns Promise resolving to clipping results */ export declare function clipCommand(urls: string[], options?: ClipCliOptions): Promise; //# sourceMappingURL=clip.d.ts.map