UNPKG

mcp-crawl4ai-ts

Version:

TypeScript MCP server for Crawl4AI - web crawling and content extraction

68 lines 1.75 kB
import { BaseHandler } from './base-handler.js'; import { BatchCrawlOptions } from '../types.js'; export declare class CrawlHandlers extends BaseHandler { batchCrawl(options: BatchCrawlOptions): Promise<{ content: { type: string; text: string; }[]; }>; smartCrawl(options: { url: string; max_depth?: number; follow_links?: boolean; bypass_cache?: boolean; }): Promise<{ content: { type: string; text: string; }[]; }>; crawlRecursive(options: { url: string; max_depth?: number; max_pages?: number; include_pattern?: string; exclude_pattern?: string; }): Promise<{ content: { type: string; text: string; }[]; }>; parseSitemap(options: { url: string; filter_pattern?: string; }): Promise<{ content: { type: string; text: string; }[]; }>; crawl(options: Record<string, unknown>): Promise<{ content: ({ type: string; text: string; data?: undefined; mimeType?: undefined; resource?: undefined; } | { type: string; data: string; mimeType: string; text?: undefined; resource?: undefined; } | { type: string; resource: { uri: string; mimeType: string; blob: string; }; text?: undefined; data?: undefined; mimeType?: undefined; })[]; }>; } //# sourceMappingURL=crawl-handlers.d.ts.map